Update Grafana dashboard

This commit is contained in:
ngosang 2022-12-06 21:49:33 +01:00
parent 69c7485071
commit 2c086e491b

View file

@ -1,4 +1,53 @@
{ {
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
],
"__elements": {},
"__requires": [
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "9.3.0"
},
{
"type": "panel",
"id": "piechart",
"name": "Pie chart",
"version": ""
},
{
"type": "datasource",
"id": "prometheus",
"name": "Prometheus",
"version": "1.0.0"
},
{
"type": "panel",
"id": "stat",
"name": "Stat",
"version": ""
},
{
"type": "panel",
"id": "table",
"name": "Table",
"version": ""
},
{
"type": "panel",
"id": "timeseries",
"name": "Time series",
"version": ""
}
],
"annotations": { "annotations": {
"list": [ "list": [
{ {
@ -26,14 +75,22 @@
"fiscalYearStartMonth": 0, "fiscalYearStartMonth": 0,
"gnetId": 9846, "gnetId": 9846,
"graphTooltip": 0, "graphTooltip": 0,
"id": 40, "id": null,
"links": [], "links": [
{
"icon": "external link",
"tags": [
"system"
],
"type": "dashboards"
}
],
"liveNow": false, "liveNow": false,
"panels": [ "panels": [
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "fmMKqssGk" "uid": "${DS_PROMETHEUS}"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -102,7 +159,11 @@
"expr": "restic_check_success", "expr": "restic_check_success",
"interval": "", "interval": "",
"legendFormat": "", "legendFormat": "",
"refId": "A" "refId": "A",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
}
} }
], ],
"title": "Repository Check", "title": "Repository Check",
@ -111,7 +172,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "fmMKqssGk" "uid": "${DS_PROMETHEUS}"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -228,7 +289,11 @@
"interval": "", "interval": "",
"intervalFactor": 1, "intervalFactor": 1,
"legendFormat": "{{client_hostname}}", "legendFormat": "{{client_hostname}}",
"refId": "A" "refId": "A",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
}
}, },
{ {
"exemplar": true, "exemplar": true,
@ -239,7 +304,11 @@
"interval": "", "interval": "",
"intervalFactor": 1, "intervalFactor": 1,
"legendFormat": "{{client_hostname}}", "legendFormat": "{{client_hostname}}",
"refId": "B" "refId": "B",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
}
} }
], ],
"title": "Last backup", "title": "Last backup",
@ -279,7 +348,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "fmMKqssGk" "uid": "${DS_PROMETHEUS}"
}, },
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
@ -343,7 +412,11 @@
"interval": "", "interval": "",
"intervalFactor": 1, "intervalFactor": 1,
"legendFormat": "{{client_hostname}}", "legendFormat": "{{client_hostname}}",
"refId": "A" "refId": "A",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
}
} }
], ],
"title": "Total snapshot count", "title": "Total snapshot count",
@ -378,7 +451,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "fmMKqssGk" "uid": "${DS_PROMETHEUS}"
}, },
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
@ -455,7 +528,11 @@
"interval": "", "interval": "",
"intervalFactor": 1, "intervalFactor": 1,
"legendFormat": "{{client_hostname}}", "legendFormat": "{{client_hostname}}",
"refId": "A" "refId": "A",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
}
} }
], ],
"title": "Total backup size", "title": "Total backup size",
@ -490,7 +567,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "fmMKqssGk" "uid": "${DS_PROMETHEUS}"
}, },
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
@ -552,7 +629,11 @@
"interval": "", "interval": "",
"intervalFactor": 1, "intervalFactor": 1,
"legendFormat": "{{client_hostname}}", "legendFormat": "{{client_hostname}}",
"refId": "A" "refId": "A",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
}
} }
], ],
"title": "Total backup size", "title": "Total backup size",
@ -583,7 +664,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "fmMKqssGk" "uid": "${DS_PROMETHEUS}"
}, },
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
@ -642,7 +723,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "fmMKqssGk" "uid": "${DS_PROMETHEUS}"
}, },
"exemplar": true, "exemplar": true,
"expr": "restic_backup_files_total", "expr": "restic_backup_files_total",
@ -686,7 +767,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "fmMKqssGk" "uid": "${DS_PROMETHEUS}"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -772,7 +853,11 @@
"interval": "", "interval": "",
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "{{client_hostname}}", "legendFormat": "{{client_hostname}}",
"refId": "A" "refId": "A",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
}
} }
], ],
"title": "Total backup size", "title": "Total backup size",
@ -781,7 +866,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "fmMKqssGk" "uid": "${DS_PROMETHEUS}"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -863,7 +948,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "fmMKqssGk" "uid": "${DS_PROMETHEUS}"
}, },
"exemplar": true, "exemplar": true,
"expr": "sum by(client_hostname,client_username) (restic_backup_files_total)", "expr": "sum by(client_hostname,client_username) (restic_backup_files_total)",
@ -880,7 +965,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "fmMKqssGk" "uid": "${DS_PROMETHEUS}"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -966,7 +1051,11 @@
"interval": "", "interval": "",
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "{{client_hostname}}", "legendFormat": "{{client_hostname}}",
"refId": "A" "refId": "A",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
}
} }
], ],
"title": "Total snapshot count", "title": "Total snapshot count",
@ -1014,6 +1103,6 @@
"timezone": "", "timezone": "",
"title": "Restic Exporter", "title": "Restic Exporter",
"uid": "2JzZl3B7k", "uid": "2JzZl3B7k",
"version": 22, "version": 23,
"weekStart": "" "weekStart": ""
} }