-
Notifications
You must be signed in to change notification settings - Fork 26
Update redfish grafana dashboard. #2518
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
claudia-lola
wants to merge
1
commit into
stackhpc/2026.1
Choose a base branch
from
claudia-redfish-dashboard
base: stackhpc/2026.1
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: stackhpc/stackhpc-kayobe-config
Length of output: 21416
🏁 Script executed:
Repository: stackhpc/stackhpc-kayobe-config
Length of output: 31094
🌐 Web query:
stackhpc redfish exporter redfish_system_power_state system_id server metric💡 Result:
The metric redfish_system_power_state is commonly used in various Redfish Prometheus exporter implementations to report the power status of a managed server (ComputerSystem) [1]. It typically represents the current power state retrieved from the Redfish API (e.g., /redfish/v1/Systems/{system_id}) [2]. Key details regarding this metric include: Implementation and Usage - Metric Purpose: It is a gauge metric [3][2] that reflects whether a system is powered on or off. Implementations often map the Redfish PowerState string (e.g., "On", "Off") to numerical values (e.g., "On" = 1, "Off" = 0) [2]. - Identification: When exported to Prometheus, the metric is generally associated with labels that identify the specific server, such as the system_id, target address, or host name [3][4][2]. - Context: While different projects use slightly different naming conventions (e.g., redfish_system_power_state [1] vs. redfish_powerstate [3][2]), they all serve the purpose of monitoring out-of-band hardware power status [5][3]. StackHPC Specifics - The stackhpc/redfish_exporter is a Prometheus exporter designed to query Redfish-based servers (e.g., Dell, HPE, Supermicro) [5]. - In the context of the StackHPC Kayobe configuration, the exporter is enabled and configured to scrape BMC targets at specified intervals [6]. The specific metrics exposed depend on the version and configuration of the exporter deployed, as multiple open-source implementations exist under similar names (e.g., stackhpc [5], sapcc [3], dasbaum-ch [4]). To verify the exact metrics available in your specific deployment, you can query the /metrics endpoint of your running exporter: curl http://<redfish_exporter_host>:9610/metrics [5]
Citations:
🌐 Web query:
Prometheus aggregation operators count by label documentation💡 Result:
In Prometheus (PromQL), aggregation operators such as count are used to aggregate elements of an instant vector [1][2]. To count by specific labels, you use the by or without clauses [1][2]. Aggregation Syntax Aggregation operators can be used with a by or without clause to control label preservation [1][3]: [without|by ()] () or () [without|by ()] by (): This clause preserves only the labels listed in the parentheses [1][2]. Even if other labels have identical values across all elements, they are dropped from the result [1][3]. without (): This clause removes the listed labels from the output, while preserving all other original labels [1][2]. Example To count the number of time series (e.g., running instances) grouped by a specific label such as app: count by (app) (instance_cpu_time_ns) [4] Other Relevant Operators count(v): Returns the number of elements in the vector [1][2]. count_values(l, v): Outputs one time series per unique sample value in v, creating a new label l whose value is the unique sample value and whose time series value is the count of how many times that sample value appeared [1][2]. count_over_time(v): A separate function (not an aggregation operator) that counts all samples for each series within a specified range vector [5][6]. Top Results: [1][2][4]
Citations:
🏁 Script executed:
Repository: stackhpc/stackhpc-kayobe-config
Length of output: 4595
🏁 Script executed:
Repository: stackhpc/stackhpc-kayobe-config
Length of output: 2885
🏁 Script executed:
Repository: stackhpc/stackhpc-kayobe-config
Length of output: 631
🏁 Script executed:
Repository: stackhpc/stackhpc-kayobe-config
Length of output: 12666
🏁 Script executed:
Repository: stackhpc/stackhpc-kayobe-config
Length of output: 2987
Count servers in the overview panels.
The exporter emits
redfish_system_power_stateonce per Redfish system, while the scrape configuration labels each target withserver.by (system_id)can merge systems from different servers and returns one value persystem_id; the stat panels then display or average those values.Use
count(count(redfish_system_power_state{...}) by (server))at line 109 andcount(count(redfish_system_power_state{...} == 1) by (server))at line 192.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@claudia-lola do you think this is correct?