Skip to content

Conversation

@willianpaixao
Copy link

Enable the cluster variable to support an "All" option in Grafana dashboards, allowing users to view metrics across all clusters or in environments where the cluster label may be missing.

Changes:

  • Add includeAll with allValue=".*" to cluster variable definitions
  • Change all PromQL queries from exact matching (cluster="$cluster") to regex matching (cluster=~"$cluster")

Affected dashboards:

  • Node Exporter / Nodes (Linux, Darwin, AIX)
  • USE Method / Node
  • USE Method / Cluster

Enable the cluster variable to support an "All" option in Grafana
dashboards, allowing users to view metrics across all clusters or
in environments where the cluster label may be missing.

Changes:
- Add includeAll with allValue=".*" to cluster variable definitions
- Change all PromQL queries from exact matching (cluster="$cluster")
to regex matching (cluster=~"$cluster")

Affected dashboards:
- Node Exporter / Nodes (Linux, Darwin, AIX)
- USE Method / Node
- USE Method / Cluster

Signed-off-by: Willian Paixao <[email protected]>
Copilot AI review requested due to automatic review settings December 22, 2025 21:40
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enables the cluster variable in Grafana dashboards to support an "All" option, allowing users to view metrics across all clusters simultaneously or handle cases where the cluster label may be missing.

Key changes:

  • Added includeAll with allValue=".*" to cluster variable definitions in both affected files
  • Converted all PromQL queries from exact cluster matching (cluster="$cluster") to regex matching (cluster=~"$cluster")

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
docs/node-mixin/lib/prom-mixin.libsonnet Updated cluster variable definition and converted 46 PromQL queries to use regex matching for the Node Exporter dashboard across Linux, Darwin, and AIX platforms
docs/node-mixin/dashboards/use.libsonnet Updated cluster variable definition and converted 42 PromQL queries to use regex matching for USE Method dashboards (Node and Cluster views)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@willianpaixao
Copy link
Author

Hey @discordianfish @bwplotka @SuperQ could I get a review here please? 🎅🏾

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant