Skip to content

Commit

Permalink
Add backup metrics to main dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
adeveloper-wq committed May 30, 2024
1 parent b3efb42 commit 866898a
Showing 1 changed file with 166 additions and 6 deletions.
172 changes: 166 additions & 6 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": 5,
"id": 3,
"links": [],
"liveNow": false,
"panels": [
Expand Down Expand Up @@ -2106,6 +2106,164 @@
"title": "Submitted Answers for valid Tracks",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "orange",
"mode": "fixed"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
}
]
},
"unitScale": true
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 3,
"x": 15,
"y": 66
},
"id": 80,
"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=\"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"
}
]
},
"unitScale": true
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 3,
"x": 18,
"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",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"expr": "n_backup_answers{version=\"new\", valid=\"true\"}",
"hide": false,
"legendFormat": "Answers",
"range": true,
"refId": "B"
}
],
"title": "Backups (New)",
"type": "stat"
},
{
"collapsed": false,
"gridPos": {
Expand Down Expand Up @@ -2166,7 +2324,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
Expand Down Expand Up @@ -2272,7 +2431,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
Expand Down Expand Up @@ -2328,14 +2488,14 @@
"list": []
},
"time": {
"from": "now-15m",
"from": "now-3h",
"to": "now"
},
"timeRangeUpdatedDuringEditOrView": false,
"timepicker": {},
"timezone": "",
"title": "Priobike",
"uid": "sdmbOcJnz",
"version": 2,
"version": 10,
"weekStart": ""
}
}

0 comments on commit 866898a

Please sign in to comment.