npbackup/examples/NPBackup Statistics-2023042701 - Grafana Dashboard.json
2023-04-27 09:16:03 +02:00

1488 lines
33 KiB
JSON

{
"__inputs": [
{
"name": "DS_MIMIR",
"label": "Mimir",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
],
"__elements": {},
"__requires": [
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "9.2.3"
},
{
"type": "panel",
"id": "graph",
"name": "Graph (old)",
"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": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"description": "Show status of restic backups done with NPBackup",
"editable": true,
"fiscalYearStartMonth": 0,
"gnetId": 11064,
"graphTooltip": 0,
"id": null,
"links": [],
"liveNow": false,
"panels": [
{
"collapsed": false,
"datasource": {
"type": "prometheus",
"uid": "t3jzheN4z"
},
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"id": 10,
"panels": [],
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "t3jzheN4z"
},
"refId": "A"
}
],
"title": "NPBackup Success & Failures",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
},
"description": "Number of succesful npbackup executions",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"match": "null",
"result": {
"text": "N/A"
}
},
"type": "special"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "#d44a3a",
"value": null
},
{
"color": "rgba(237, 129, 40, 0.89)",
"value": 0
},
{
"color": "#299c46",
"value": 0
}
]
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 2,
"x": 0,
"y": 1
},
"id": 5,
"links": [],
"maxDataPoints": 100,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"text": {},
"textMode": "auto"
},
"pluginVersion": "9.2.3",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
},
"editorMode": "code",
"expr": "count(count_over_time((restic_backup_failure{backup_job=~'$backup_job'} == 0)[$__range:]))",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Successful",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
},
"description": "List of latest npbackup execution success",
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "dark-red",
"mode": "thresholds"
},
"custom": {
"align": "left",
"displayMode": "color-background-solid",
"filterable": true,
"inspect": false
},
"links": [],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "green",
"value": 0
}
]
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 9,
"w": 22,
"x": 2,
"y": 1
},
"id": 28,
"links": [],
"options": {
"footer": {
"enablePagination": false,
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"showHeader": true,
"sortBy": [
{
"desc": true,
"displayName": "Backup Date"
}
]
},
"pluginVersion": "9.2.3",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
},
"editorMode": "code",
"exemplar": true,
"expr": "count_over_time((restic_backup_failure{backup_job=~'$backup_job'} == 0)[$__range:])",
"format": "table",
"instant": true,
"interval": "",
"intervalFactor": 2,
"legendFormat": "{{ backup_job }}",
"refId": "A"
}
],
"title": "Success",
"transformations": [
{
"id": "calculateField",
"options": {
"alias": "Backup Date",
"binary": {
"left": "timestamp",
"operator": "*",
"reducer": "sum",
"right": "1000"
},
"mode": "binary",
"reduce": {
"reducer": "sum"
},
"replaceFields": false
}
},
{
"id": "convertFieldType",
"options": {
"conversions": [
{
"destinationType": "time",
"targetField": "Backup Date"
}
],
"fields": {}
}
},
{
"id": "organize",
"options": {
"excludeByName": {
"Backup Date": false,
"Time": true,
"Value": true,
"__tenant_id__": true,
"exported_instance": true,
"exported_job": true,
"instance": true,
"job": true,
"timestamp": true
},
"indexByName": {
"Backup Date": 0,
"Time": 1,
"Value": 9,
"__tenant_id__": 2,
"backup_job": 3,
"exported_instance": 4,
"exported_job": 5,
"instance": 6,
"job": 7,
"timestamp": 8
},
"renameByName": {}
}
}
],
"type": "table"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
},
"description": "Number of failed npbackup executions",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"match": "null",
"result": {
"text": "N/A"
}
},
"type": "special"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "#299c46",
"value": null
},
{
"color": "rgba(237, 129, 40, 0.89)",
"value": 0.1
},
{
"color": "#d44a3a",
"value": 0.1
}
]
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 5,
"w": 2,
"x": 0,
"y": 5
},
"id": 4,
"links": [],
"maxDataPoints": 100,
"options": {
"colorMode": "background",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"text": {},
"textMode": "auto"
},
"pluginVersion": "9.2.3",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
},
"editorMode": "code",
"exemplar": true,
"expr": "count(count_over_time((restic_backup_failure{backup_job=~'$backup_job'} == 1)[$__range:]))",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
"legendFormat": "",
"range": true,
"refId": "A"
}
],
"title": "Failed",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
},
"description": "List of latest npbackup execution failures",
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "dark-red",
"mode": "thresholds"
},
"custom": {
"align": "left",
"displayMode": "color-background-solid",
"filterable": true,
"inspect": false
},
"links": [],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "dark-red",
"value": null
},
{
"color": "dark-red",
"value": 0
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "backup_job"
},
"properties": [
{
"id": "custom.width",
"value": 397
}
]
}
]
},
"gridPos": {
"h": 5,
"w": 22,
"x": 2,
"y": 10
},
"id": 3,
"links": [],
"options": {
"footer": {
"enablePagination": false,
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"showHeader": true,
"sortBy": [
{
"desc": true,
"displayName": "Backup Date"
}
]
},
"pluginVersion": "9.2.3",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
},
"editorMode": "code",
"exemplar": true,
"expr": "count_over_time((restic_backup_failure{backup_job=~'$backup_job'} == 1)[$__range:])",
"format": "table",
"instant": true,
"interval": "",
"intervalFactor": 2,
"legendFormat": "{{ backup_job }}",
"refId": "A"
}
],
"title": "Fail",
"transformations": [
{
"id": "calculateField",
"options": {
"alias": "Backup Date",
"binary": {
"left": "timestamp",
"operator": "*",
"reducer": "sum",
"right": "1000"
},
"mode": "binary",
"reduce": {
"reducer": "sum"
}
}
},
{
"id": "convertFieldType",
"options": {
"conversions": [
{
"destinationType": "time",
"targetField": "Backup Date"
}
],
"fields": {}
}
},
{
"id": "organize",
"options": {
"excludeByName": {
"Time": true,
"Value": true,
"__name__": true,
"__tenant_id__": true,
"exported_job": false,
"job": true,
"timestamp": true
},
"indexByName": {
"Backup Date": 0,
"Time": 2,
"Value": 10,
"__name__": 3,
"__tenant_id__": 4,
"backup_job": 5,
"exported_instance": 6,
"exported_job": 7,
"instance": 8,
"job": 9,
"timestamp": 1
},
"renameByName": {}
}
}
],
"type": "table"
},
{
"collapsed": false,
"datasource": {
"type": "prometheus",
"uid": "t3jzheN4z"
},
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 15
},
"id": 19,
"panels": [],
"repeat": "config",
"repeatDirection": "h",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "t3jzheN4z"
},
"refId": "A"
}
],
"title": "Backup operations",
"type": "row"
},
{
"aliasColors": {},
"bars": true,
"dashLength": 10,
"dashes": false,
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
},
"fieldConfig": {
"defaults": {
"links": []
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 7,
"w": 8,
"x": 0,
"y": 16
},
"hiddenSeries": false,
"id": 24,
"legend": {
"alignAsTable": false,
"avg": false,
"current": false,
"max": false,
"min": false,
"rightSide": false,
"show": true,
"total": false,
"values": false
},
"lines": false,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "9.2.3",
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
},
"editorMode": "code",
"expr": "restic_backup_duration_seconds{backup_job=~\"$backup_job\"}",
"format": "time_series",
"hide": false,
"interval": "",
"intervalFactor": 2,
"legendFormat": "{{backup_job}} - {{instance}}",
"range": true,
"refId": "A"
}
],
"thresholds": [],
"timeRegions": [],
"title": "Durations",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"mode": "time",
"show": true,
"values": []
},
"yaxes": [
{
"format": "s",
"logBase": 1,
"show": true
},
{
"format": "short",
"logBase": 1,
"show": true
}
],
"yaxis": {
"align": false
}
},
{
"aliasColors": {},
"bars": true,
"dashLength": 10,
"dashes": false,
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
},
"description": "",
"fieldConfig": {
"defaults": {
"links": []
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 7,
"w": 8,
"x": 8,
"y": 16
},
"hiddenSeries": false,
"id": 22,
"legend": {
"alignAsTable": false,
"avg": false,
"current": false,
"max": false,
"min": false,
"rightSide": false,
"show": true,
"total": false,
"values": false
},
"lines": false,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "9.2.3",
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
},
"editorMode": "code",
"expr": "restic_repo_size_bytes{backup_job=~\"$backup_job\"}",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
"legendFormat": "total size in restore mode - {{ backup_job }}",
"range": true,
"refId": "A"
}
],
"thresholds": [],
"timeRegions": [],
"title": "Size",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"mode": "time",
"show": true,
"values": []
},
"yaxes": [
{
"format": "decbytes",
"logBase": 1,
"show": true
},
{
"format": "decbytes",
"label": "",
"logBase": 1,
"show": false
}
],
"yaxis": {
"align": false
}
},
{
"aliasColors": {},
"bars": true,
"dashLength": 10,
"dashes": false,
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
},
"description": "",
"fieldConfig": {
"defaults": {
"links": []
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 7,
"w": 8,
"x": 16,
"y": 16
},
"hiddenSeries": false,
"id": 26,
"legend": {
"alignAsTable": false,
"avg": false,
"current": false,
"max": false,
"min": false,
"rightSide": false,
"show": true,
"total": false,
"values": false
},
"lines": false,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "9.2.3",
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
},
"editorMode": "code",
"expr": "restic_repo_size_files_stored_bytes{backup_job=~\"$backup_job\"}",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
"legendFormat": "total added bytes - {{ backup_job }}",
"range": true,
"refId": "A"
}
],
"thresholds": [],
"timeRegions": [],
"title": "Added bytes",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"mode": "time",
"show": true,
"values": []
},
"yaxes": [
{
"format": "decbytes",
"logBase": 1,
"show": true
},
{
"format": "decbytes",
"label": "",
"logBase": 1,
"show": false
}
],
"yaxis": {
"align": false
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
},
"description": "",
"fieldConfig": {
"defaults": {
"links": []
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 7,
"w": 12,
"x": 0,
"y": 23
},
"hiddenSeries": false,
"id": 23,
"legend": {
"alignAsTable": false,
"avg": false,
"current": false,
"max": false,
"min": false,
"rightSide": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "9.2.3",
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
},
"editorMode": "code",
"expr": "sum(restic_repo_files{backup_job=~\"$backup_job\",state=\"changed\"}) by (backup_job)",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
"legendFormat": "changed - {{ backup_job }}",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
},
"editorMode": "code",
"expr": "sum(restic_repo_files{backup_job=~\"$backup_job\",state=\"new\"}) by (backup_job)",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
"legendFormat": "new - {{ backup_job }}",
"range": true,
"refId": "B"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
},
"editorMode": "code",
"expr": "sum(restic_repo_files{backup_job=~\"$backup_job\",state=\"unmodified\"}) by (backup_job)",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
"legendFormat": "unmodified - {{ backup_job }}",
"range": true,
"refId": "C"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
},
"editorMode": "code",
"expr": "sum(restic_repo_files{backup_job=~\"$backup_job\",state=\"total\"}) by (backup_job)",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
"legendFormat": "processed - {{ backup_job }}",
"range": true,
"refId": "D"
}
],
"thresholds": [],
"timeRegions": [],
"title": "Number of files",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"mode": "time",
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"logBase": 1,
"show": true
},
{
"format": "decbytes",
"label": "",
"logBase": 1,
"show": false
}
],
"yaxis": {
"align": false
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
},
"description": "",
"fieldConfig": {
"defaults": {
"links": []
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 7,
"w": 12,
"x": 12,
"y": 23
},
"hiddenSeries": false,
"id": 27,
"legend": {
"alignAsTable": false,
"avg": false,
"current": false,
"max": false,
"min": false,
"rightSide": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "9.2.3",
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
},
"editorMode": "code",
"expr": "sum(restic_repo_dirs{backup_job=~\"$backup_job\",state=\"changed\"}) by (backup_job)",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
"legendFormat": "changed - {{ backup_job }}",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
},
"editorMode": "code",
"expr": "sum(restic_repo_dirs{backup_job=~\"$backup_job\",state=\"new\"}) by (backup_job)",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
"legendFormat": "new - {{ backup_job }}",
"range": true,
"refId": "B"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
},
"editorMode": "code",
"expr": "sum(restic_repo_dirs{backup_job=~\"$backup_job\",state=\"unmodified\"}) by (backup_job)",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
"legendFormat": "unmodified - {{ backup_job }}",
"range": true,
"refId": "C"
}
],
"thresholds": [],
"timeRegions": [],
"title": "Number of directories",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"mode": "time",
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"logBase": 1,
"show": true
},
{
"format": "decbytes",
"label": "",
"logBase": 1,
"show": false
}
],
"yaxis": {
"align": false
}
},
{
"collapsed": false,
"datasource": {
"type": "prometheus",
"uid": "t3jzheN4z"
},
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 30
},
"id": 11,
"panels": [],
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "t3jzheN4z"
},
"refId": "A"
}
],
"title": "General",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"links": [],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "s"
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 12,
"x": 0,
"y": 31
},
"id": 17,
"links": [],
"options": {
"legend": {
"calcs": [
"mean",
"max",
"min"
],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "9.2.3",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
},
"editorMode": "code",
"expr": "restic_backup_duration_seconds{backup_job=~'$backup_job'}",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
"legendFormat": "{{ backup_job }}",
"range": true,
"refId": "A"
}
],
"title": "Total Duration",
"type": "timeseries"
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
},
"fieldConfig": {
"defaults": {
"links": []
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 7,
"w": 12,
"x": 12,
"y": 31
},
"hiddenSeries": false,
"id": 25,
"legend": {
"alignAsTable": true,
"avg": true,
"current": false,
"max": true,
"min": true,
"rightSide": true,
"show": true,
"sort": "max",
"sortDesc": false,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "9.2.3",
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
},
"editorMode": "code",
"expr": "restic_repo_size_files_stored_bytes{backup_job=~'$backup_job'}",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
"legendFormat": "{{ backup_job }}",
"range": true,
"refId": "A"
}
],
"thresholds": [],
"timeRegions": [],
"title": "Processed size",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"mode": "time",
"show": true,
"values": []
},
"yaxes": [
{
"format": "decbytes",
"logBase": 1,
"show": true
},
{
"format": "short",
"logBase": 1,
"show": true
}
],
"yaxis": {
"align": false
}
}
],
"refresh": false,
"schemaVersion": 37,
"style": "dark",
"tags": [
"backups",
"restic"
],
"templating": {
"list": [
{
"current": {},
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
},
"definition": "label_values(backup_job)",
"hide": 0,
"includeAll": true,
"multi": true,
"name": "backup_job",
"options": [],
"query": {
"query": "label_values(backup_job)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {},
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
},
"definition": "label_values(tenant)",
"hide": 0,
"includeAll": true,
"multi": true,
"name": "tenant",
"options": [],
"query": {
"query": "label_values(tenant)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
}
]
},
"time": {
"from": "now-24h",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
],
"time_options": [
"5m",
"15m",
"1h",
"6h",
"12h",
"24h",
"2d",
"7d",
"30d"
]
},
"timezone": "",
"title": "NPBackup Statistics",
"uid": "iNGJDIgRz",
"version": 30,
"weekStart": ""
}