Skip to content

Commit

Permalink
Add new backup metrics to home dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
adeveloper-wq committed May 30, 2024
1 parent 1acf86e commit 38e14aa
Showing 1 changed file with 96 additions and 16 deletions.
112 changes: 96 additions & 16 deletions provisioning/dashboards/home.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 7,
"id": 5,
"links": [],
"liveNow": false,
"panels": [
Expand Down Expand Up @@ -1742,7 +1742,7 @@
},
"gridPos": {
"h": 6,
"w": 5,
"w": 4,
"x": 5,
"y": 60
},
Expand Down Expand Up @@ -1819,8 +1819,8 @@
},
"gridPos": {
"h": 6,
"w": 5,
"x": 10,
"w": 4,
"x": 9,
"y": 60
},
"id": 57,
Expand Down Expand Up @@ -1910,8 +1910,8 @@
},
"gridPos": {
"h": 6,
"w": 6,
"x": 15,
"w": 8,
"x": 13,
"y": 60
},
"id": 59,
Expand Down Expand Up @@ -1976,7 +1976,7 @@
},
"gridPos": {
"h": 6,
"w": 5,
"w": 4,
"x": 5,
"y": 66
},
Expand Down Expand Up @@ -2053,8 +2053,8 @@
},
"gridPos": {
"h": 6,
"w": 5,
"x": 10,
"w": 4,
"x": 9,
"y": 66
},
"id": 55,
Expand Down Expand Up @@ -2133,8 +2133,8 @@
},
"gridPos": {
"h": 6,
"w": 5,
"x": 15,
"w": 4,
"x": 13,
"y": 66
},
"id": 80,
Expand Down Expand Up @@ -2163,7 +2163,87 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "backup_valid_track_count",
"expr": "n_backup_tracks{version=\"old\", valid=\"true\"}",
"instant": false,
"interval": "60s",
"legendFormat": "Tracks",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"expr": "n_backup_answers{version=\"old\", valid=\"true\"}",
"hide": false,
"legendFormat": "Answers",
"range": true,
"refId": "B"
}
],
"title": "Backups (Old)",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "orange",
"mode": "fixed"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unitScale": true
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 4,
"x": 17,
"y": 66
},
"id": 81,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.3.4",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"exemplar": false,
"expr": "n_backup_tracks{version=\"new\", valid=\"true\"}",
"instant": false,
"interval": "60s",
"legendFormat": "Tracks",
Expand All @@ -2176,14 +2256,14 @@
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"expr": "backup_valid_answer_count",
"expr": "n_backup_answers{version=\"new\", valid=\"true\"}",
"hide": false,
"legendFormat": "Answers",
"range": true,
"refId": "B"
}
],
"title": "Backups",
"title": "Backups (New)",
"type": "stat"
},
{
Expand Down Expand Up @@ -2410,14 +2490,14 @@
"list": []
},
"time": {
"from": "now-3h",
"from": "now-30m",
"to": "now"
},
"timeRangeUpdatedDuringEditOrView": false,
"timepicker": {},
"timezone": "",
"title": "Priobike",
"uid": "sdmbOcJnz",
"version": 2,
"version": 3,
"weekStart": ""
}

0 comments on commit 38e14aa

Please sign in to comment.