Skip to content

Commit

Permalink
Merge pull request #138 from stackrox/fix-cluster-count
Browse files Browse the repository at this point in the history
fix(dashboards): only count secured clusters with cores > 0
  • Loading branch information
stehessel authored Aug 30, 2023
2 parents e8fce0c + 4d59088 commit 983dec9
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions resources/grafana/rhacs-cluster-overview-dashboard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ spec:
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 11,
"id": 12,
"links": [],
"liveNow": false,
"panels": [
Expand Down Expand Up @@ -630,7 +630,7 @@ spec:
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"expr": "count(rox_central_cluster_metrics_cpu_capacity{namespace=~\"rhacs-$instance_id\",job=~\"central\"}) or vector(0)",
"expr": "count(rox_central_cluster_metrics_cpu_capacity{namespace=~\"rhacs-$instance_id\",job=~\"central\"} > 0) or vector(0)",
"interval": "",
"legendFormat": "Clusters",
"range": true,
Expand Down Expand Up @@ -1605,8 +1605,7 @@ spec:
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -1643,8 +1642,7 @@ spec:
"mode": "percentage",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "orange",
Expand Down Expand Up @@ -1710,8 +1708,7 @@ spec:
"mode": "percentage",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "orange",
Expand Down Expand Up @@ -1757,8 +1754,7 @@ spec:
"mode": "percentage",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "orange",
Expand Down Expand Up @@ -1955,7 +1951,7 @@ spec:
],
"refresh": "",
"revision": 1,
"schemaVersion": 37,
"schemaVersion": 38,
"style": "dark",
"tags": [
"rhacs"
Expand Down Expand Up @@ -2096,6 +2092,6 @@ spec:
"timezone": "",
"title": "RHACS Dataplane - Cluster Metrics",
"uid": "4032f3c17643119901e107a0a1786d5b9e4c9565",
"version": 4,
"version": 3,
"weekStart": ""
}

0 comments on commit 983dec9

Please sign in to comment.