Skip to content

Commit

Permalink
contrib: Add a dashboard panel to surface running versions
Browse files Browse the repository at this point in the history
Go version, clair version and claircore version are covered.

Signed-off-by: crozzy <joseph.crosland@gmail.com>
  • Loading branch information
crozzy committed Feb 9, 2023
1 parent d3e8877 commit 8566c52
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 18 deletions.
Expand Up @@ -34,8 +34,7 @@ data:
"editable": true,
"gnetId": null,
"graphTooltip": 1,
"id": 1,
"iteration": 1657053793625,
"iteration": 1675963111894,
"links": [],
"panels": [
{
Expand Down Expand Up @@ -257,21 +256,29 @@ data:
"targets": [
{
"exemplar": true,
"expr": "rate(clair_middleware_authenticated_total{authenticated=\"false\"}[$rate])",
"expr": "sum (go_info) by (job, version)",
"hide": false,
"interval": "",
"legendFormat": "Unauthenticated: {{ job }}",
"refId": "A"
"legendFormat": "{{job}} - {{version}}",
"refId": "B"
},
{
"exemplar": true,
"expr": "rate(clair_middleware_authenticated_total{authenticated=\"true\"}[$rate])",
"expr": "sum (clair_cmd_version_info) by(job, version)",
"hide": false,
"interval": "",
"legendFormat": "Authenticated: {{ job }}",
"refId": "B"
"legendFormat": "{{job}} clair - {{version}}",
"refId": "C"
},
{
"exemplar": true,
"expr": "sum (clair_cmd_version_info) by(job, claircore_version)",
"interval": "",
"legendFormat": "{{job}} claircore - {{claircore_version}}",
"refId": "A"
}
],
"title": "Authentication",
"title": "Versions",
"type": "timeseries"
},
{
Expand Down
25 changes: 16 additions & 9 deletions local-dev/grafana/provisioning/dashboards/dashboard.json
Expand Up @@ -21,8 +21,7 @@
"editable": true,
"gnetId": null,
"graphTooltip": 1,
"id": 1,
"iteration": 1657053793625,
"iteration": 1675963111894,
"links": [],
"panels": [
{
Expand Down Expand Up @@ -244,21 +243,29 @@
"targets": [
{
"exemplar": true,
"expr": "rate(clair_middleware_authenticated_total{authenticated=\"false\"}[$rate])",
"expr": "sum (go_info) by (job, version)",
"hide": false,
"interval": "",
"legendFormat": "Unauthenticated: {{ job }}",
"refId": "A"
"legendFormat": "{{job}} - {{version}}",
"refId": "B"
},
{
"exemplar": true,
"expr": "rate(clair_middleware_authenticated_total{authenticated=\"true\"}[$rate])",
"expr": "sum (clair_cmd_version_info) by(job, version)",
"hide": false,
"interval": "",
"legendFormat": "Authenticated: {{ job }}",
"refId": "B"
"legendFormat": "{{job}} clair - {{version}}",
"refId": "C"
},
{
"exemplar": true,
"expr": "sum (clair_cmd_version_info) by(job, claircore_version)",
"interval": "",
"legendFormat": "{{job}} claircore - {{claircore_version}}",
"refId": "A"
}
],
"title": "Authentication",
"title": "Versions",
"type": "timeseries"
},
{
Expand Down

0 comments on commit 8566c52

Please sign in to comment.