Add instance/container select for version panel in grafana dashboard (#1737)

This commit is contained in:
Kim De Mey 2023-09-08 09:05:00 +02:00 committed by GitHub
parent c04f2477ac
commit b0442dc41a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 25 additions and 14 deletions

View File

@ -237,6 +237,10 @@
"bars": false, "bars": false,
"dashLength": 10, "dashLength": 10,
"dashes": false, "dashes": false,
"datasource": {
"type": "prometheus",
"uid": "P5354BB48EF90EBE5"
},
"description": "Fluffy and Nim version", "description": "Fluffy and Nim version",
"fill": 1, "fill": 1,
"fillGradient": 0, "fillGradient": 0,
@ -264,7 +268,7 @@
"alertThreshold": true "alertThreshold": true
}, },
"percentage": false, "percentage": false,
"pluginVersion": "7.5.15", "pluginVersion": "9.2.5",
"pointradius": 2, "pointradius": 2,
"points": false, "points": false,
"renderer": "flot", "renderer": "flot",
@ -274,18 +278,30 @@
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [
{ {
"datasource": {
"type": "prometheus",
"uid": "P5354BB48EF90EBE5"
},
"editorMode": "code",
"exemplar": true, "exemplar": true,
"expr": "fluffy_version", "expr": "fluffy_version{instance=\"${instance}\",container=\"${container}\"}",
"interval": "", "interval": "",
"legendFormat": "{{version}}", "legendFormat": "{{version}}",
"range": true,
"refId": "A" "refId": "A"
}, },
{ {
"datasource": {
"type": "prometheus",
"uid": "P5354BB48EF90EBE5"
},
"editorMode": "code",
"exemplar": true, "exemplar": true,
"expr": "fluffy_nim_version", "expr": "fluffy_nim_version{instance=\"${instance}\",container=\"${container}\"}",
"hide": false, "hide": false,
"interval": "", "interval": "",
"legendFormat": "{{version}}-{{nim_commit}}", "legendFormat": "{{version}}-{{nim_commit}}",
"range": true,
"refId": "B" "refId": "B"
} }
], ],
@ -2251,8 +2267,7 @@
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "green", "color": "green"
"value": null
}, },
{ {
"color": "red", "color": "red",
@ -2349,13 +2364,9 @@
}, },
{ {
"current": { "current": {
"selected": true, "selected": false,
"text": [ "text": "nimbus-fluffy-mainnet-master-01",
"nimbus-fluffy-mainnet-master-01" "value": "nimbus-fluffy-mainnet-master-01"
],
"value": [
"nimbus-fluffy-mainnet-master-01"
]
}, },
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
@ -2380,13 +2391,13 @@
] ]
}, },
"time": { "time": {
"from": "now-30m", "from": "now-3h",
"to": "now" "to": "now"
}, },
"timepicker": {}, "timepicker": {},
"timezone": "", "timezone": "",
"title": "Nimbus Fluffy Dashboard", "title": "Nimbus Fluffy Dashboard",
"uid": "iWQQPuPnkadsf", "uid": "iWQQPuPnkadsf",
"version": 9, "version": 10,
"weekStart": "" "weekStart": ""
} }