Skip to content

Commit

Permalink
Merge pull request #269 from stackrox/mc/all-pod-restarts
Browse files Browse the repository at this point in the history
Add missing containers to "Container Restarts" graph
  • Loading branch information
mclasmeier authored Jul 12, 2024
2 parents 1b6f9e7 + 2f8c38d commit d20cf7a
Show file tree
Hide file tree
Showing 2 changed files with 116 additions and 2 deletions.
59 changes: 58 additions & 1 deletion resources/grafana/generated/dashboards/rhacs-central.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

59 changes: 58 additions & 1 deletion resources/grafana/sources/rhacs-central.json
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,7 @@
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"axisBorderShow": false,
"fillOpacity": 10,
"gradientMode": "none",
"hideFrom": {
Expand All @@ -521,6 +522,7 @@
},
"lineInterpolation": "stepAfter",
"lineWidth": 1,
"insertNulls": false,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
Expand Down Expand Up @@ -573,7 +575,6 @@
"y": 7
},
"id": 110,
"links": [],
"options": {
"legend": {
"calcs": [],
Expand Down Expand Up @@ -612,6 +613,62 @@
"legendFormat": "scanner",
"range": true,
"refId": "B"
},
{
"datasource": {
"uid": "${datasource}"
},
"editorMode": "code",
"exemplar": true,
"expr": "sum(increase(kube_pod_container_status_restarts_total{namespace=\"rhacs-$instance_id\", container=\"db\", pod=~\"scanner-db-.*\", job=~\"kube-state-metrics\"}[5m]))",
"hide": false,
"interval": "",
"intervalFactor": 2,
"legendFormat": "scanner-db",
"range": true,
"refId": "F"
},
{
"datasource": {
"uid": "${datasource}"
},
"editorMode": "code",
"exemplar": true,
"expr": "sum(increase(kube_pod_container_status_restarts_total{namespace=\"rhacs-$instance_id\", container=\"matcher\", job=~\"kube-state-metrics\"}[5m]))",
"hide": false,
"interval": "",
"intervalFactor": 2,
"legendFormat": "scanner-v4-matcher",
"range": true,
"refId": "C"
},
{
"datasource": {
"uid": "${datasource}"
},
"editorMode": "code",
"exemplar": true,
"expr": "sum(increase(kube_pod_container_status_restarts_total{namespace=\"rhacs-$instance_id\", container=\"indexer\", job=~\"kube-state-metrics\"}[5m]))",
"hide": false,
"interval": "",
"intervalFactor": 2,
"legendFormat": "scanner-v4-indexer",
"range": true,
"refId": "D"
},
{
"datasource": {
"uid": "${datasource}"
},
"editorMode": "code",
"exemplar": true,
"expr": "sum(increase(kube_pod_container_status_restarts_total{namespace=\"rhacs-$instance_id\", container=\"db\", pod=~\"scanner-v4-db-.*\", job=~\"kube-state-metrics\"}[5m]))",
"hide": false,
"interval": "",
"intervalFactor": 2,
"legendFormat": "scanner-v4-db",
"range": true,
"refId": "E"
}
],
"title": "Container Restarts",
Expand Down

0 comments on commit d20cf7a

Please sign in to comment.