diff --git a/prometheus-borg-exporter/updated_borg_backup_status_dashboard.json b/prometheus-borg-exporter/updated_borg_backup_status_dashboard.json new file mode 100644 index 0000000..4a8dbbb --- /dev/null +++ b/prometheus-borg-exporter/updated_borg_backup_status_dashboard.json @@ -0,0 +1,1587 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "type": "dashboard" + } + ] + }, + "description": "See the status of Borg Backup by using prometheus node_exporter with this textfile exporter: https://github.com/mad-ady/prometheus-borg-exporter", + "editable": true, + "fiscalYearStartMonth": 0, + "gnetId": 14516, + "graphTooltip": 0, + "id": 4, + "links": [], + "liveNow": false, + "panels": [ + { + "collapsed": false, + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 2, + "panels": [], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "refId": "A" + } + ], + "title": "Backup server stats", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "description": "Number of repos on server", + "fieldConfig": { + "defaults": { + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 3, + "x": 0, + "y": 1 + }, + "id": 5, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.2.3", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "expr": "count(count by (repo) (borg_archives_count{backupserver=\"$backupserver\"}))", + "interval": "", + "legendFormat": "", + "refId": "A" + } + ], + "title": "Total repos", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "description": "Number of archives in all repos", + "fieldConfig": { + "defaults": { + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 3, + "x": 3, + "y": 1 + }, + "id": 6, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.2.3", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "expr": "sum(borg_archives_count{backupserver=\"$backupserver\"})", + "interval": "", + "legendFormat": "", + "refId": "A" + } + ], + "title": "Total archives", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "description": "Size of all the data, uncompressed", + "fieldConfig": { + "defaults": { + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "semi-dark-blue", + "value": null + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 4, + "x": 6, + "y": 1 + }, + "id": 13, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.2.3", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "expr": "sum(borg_total_size{backupserver=\"$backupserver\"})", + "interval": "", + "legendFormat": "", + "refId": "A" + } + ], + "title": "Uncompressed size", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "description": "Size of all the data, compressed", + "fieldConfig": { + "defaults": { + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "light-orange", + "value": null + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 4, + "x": 10, + "y": 1 + }, + "id": 14, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.2.3", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "expr": "sum(borg_total_size_compressed{backupserver=\"$backupserver\"})", + "interval": "", + "legendFormat": "", + "refId": "A" + } + ], + "title": "Compressed size", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "description": "Size of all the data, compressed and deduplicated", + "fieldConfig": { + "defaults": { + "decimals": 1, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 4, + "x": 14, + "y": 1 + }, + "id": 15, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.2.3", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "expr": "sum(borg_total_size_dedup{backupserver=\"$backupserver\"})", + "interval": "", + "legendFormat": "", + "refId": "A" + } + ], + "title": "Deduplicated size", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "description": "How much space you are saving with compression and deduplication", + "fieldConfig": { + "defaults": { + "decimals": 1, + "mappings": [], + "max": 100, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "dark-red", + "value": null + }, + { + "color": "#EAB839", + "value": 70 + }, + { + "color": "dark-green", + "value": 85 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 6, + "x": 18, + "y": 1 + }, + "id": 16, + "options": { + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true + }, + "pluginVersion": "9.2.3", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "expr": "100-sum(borg_total_size_dedup{backupserver=\"$backupserver\"})/sum(borg_total_size{backupserver=\"$backupserver\"})*100", + "interval": "", + "legendFormat": "", + "refId": "A" + } + ], + "title": "Disk saving %", + "type": "gauge" + }, + { + "collapsed": false, + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 4 + }, + "id": 18, + "panels": [], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "refId": "A" + } + ], + "title": "Backup server stats for $host", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "description": "Number of archives in the selected repo", + "fieldConfig": { + "defaults": { + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 6, + "x": 0, + "y": 5 + }, + "id": 30, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.2.3", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "expr": "sum(borg_archives_count{backupserver=\"$backupserver\", host=\"$host\"})", + "interval": "", + "legendFormat": "", + "refId": "A" + } + ], + "title": "Total archives", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "description": "Size of all the data in the selected repo, uncompressed", + "fieldConfig": { + "defaults": { + "decimals": 1, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "semi-dark-blue", + "value": null + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 4, + "x": 6, + "y": 5 + }, + "id": 32, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.2.3", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "editorMode": "code", + "expr": "borg_total_size{backupserver=\"$backupserver\", host=\"$host\"}", + "interval": "", + "legendFormat": "", + "range": true, + "refId": "A" + } + ], + "title": "Uncompressed size", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "description": "Size of all the data in the selected repo, compressed", + "fieldConfig": { + "defaults": { + "decimals": 1, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "light-orange", + "value": null + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 4, + "x": 10, + "y": 5 + }, + "id": 33, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.2.3", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "editorMode": "code", + "expr": "borg_total_size_compressed{backupserver=\"$backupserver\", host=\"$host\"}", + "interval": "", + "legendFormat": "", + "range": true, + "refId": "A" + } + ], + "title": "Compressed size", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "description": "Size of all the data in the selected repo, compressed and deduplicated", + "fieldConfig": { + "defaults": { + "decimals": 1, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 4, + "x": 14, + "y": 5 + }, + "id": 34, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.2.3", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "editorMode": "code", + "expr": "borg_total_size_dedup{backupserver=\"$backupserver\", host=\"$host\"}", + "interval": "", + "legendFormat": "", + "range": true, + "refId": "A" + } + ], + "title": "Deduplicated size", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "description": "How much space you are saving with compression and deduplication", + "fieldConfig": { + "defaults": { + "decimals": 1, + "mappings": [], + "max": 100, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "dark-red", + "value": null + }, + { + "color": "#EAB839", + "value": 70 + }, + { + "color": "dark-green", + "value": 85 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 6, + "x": 18, + "y": 5 + }, + "id": 35, + "options": { + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true + }, + "pluginVersion": "9.2.3", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "editorMode": "code", + "expr": "100-sum(borg_total_size_dedup{backupserver=\"$backupserver\", host=\"$host\"})/sum(borg_total_size{backupserver=\"$backupserver\", host=\"$host\"})*100", + "interval": "", + "legendFormat": "", + "range": true, + "refId": "A" + } + ], + "title": "Disk saving %", + "type": "gauge" + }, + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "description": "Number of chunks in the selected repo", + "fieldConfig": { + "defaults": { + "decimals": 2, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 4, + "x": 6, + "y": 8 + }, + "id": 7, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.2.3", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "editorMode": "code", + "expr": "sum(borg_chunks_total{backupserver=\"$backupserver\", host=\"$host\"})", + "interval": "", + "legendFormat": "", + "range": true, + "refId": "A" + } + ], + "title": "Total chunks", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "description": "Number of unique chunks in the selected repo", + "fieldConfig": { + "defaults": { + "decimals": 2, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 4, + "x": 10, + "y": 8 + }, + "id": 8, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.2.3", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "editorMode": "code", + "expr": "sum(borg_chunks_unique{backupserver=\"$backupserver\", host=\"$host\"})", + "interval": "", + "legendFormat": "", + "range": true, + "refId": "A" + } + ], + "title": "Unique chunks", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "description": "Percentage of unique chunks", + "fieldConfig": { + "defaults": { + "decimals": 1, + "mappings": [], + "max": 100, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "#EAB839", + "value": 30 + }, + { + "color": "dark-red", + "value": 40 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 4, + "x": 14, + "y": 8 + }, + "id": 9, + "options": { + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true + }, + "pluginVersion": "9.2.3", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "editorMode": "code", + "expr": "sum(borg_chunks_unique{backupserver=\"$backupserver\", host=\"$host\"})/sum(borg_chunks_total{backupserver=\"$backupserver\", host=\"$host\"})*100", + "interval": "", + "legendFormat": "", + "range": true, + "refId": "A" + } + ], + "title": "Unique chunk %", + "type": "gauge" + }, + { + "collapsed": false, + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 11 + }, + "id": 29, + "panels": [], + "repeat": "host", + "repeatDirection": "h", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "refId": "A" + } + ], + "title": "Backup details for $host (today's backups)", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "description": "Number of archives saved today", + "fieldConfig": { + "defaults": { + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "dark-red", + "value": null + }, + { + "color": "#EAB839", + "value": 1 + }, + { + "color": "dark-green", + "value": 2 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 3, + "x": 0, + "y": 12 + }, + "id": 31, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "max" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.2.3", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "expr": "sum(borg_archives_count_today{backupserver=\"$backupserver\", host=\"$host\"})", + "interval": "", + "legendFormat": "", + "refId": "A" + } + ], + "title": "Today archives", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "description": "Number of files in all repos", + "fieldConfig": { + "defaults": { + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 3, + "x": 3, + "y": 12 + }, + "id": 10, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.2.3", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "editorMode": "code", + "expr": "sum(borg_files_count{backupserver=\"$backupserver\", host=\"$host\"})", + "interval": "", + "legendFormat": "", + "range": true, + "refId": "A" + } + ], + "title": "Files archived", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "description": "Size of all the data, uncompressed", + "fieldConfig": { + "defaults": { + "decimals": 1, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "semi-dark-blue", + "value": null + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 4, + "x": 6, + "y": 12 + }, + "id": 24, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.2.3", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "expr": "sum(borg_last_size{backupserver=\"$backupserver\"})", + "interval": "", + "legendFormat": "", + "refId": "A" + } + ], + "title": "Uncompressed size", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "description": "Size of all the data, compressed", + "fieldConfig": { + "defaults": { + "decimals": 1, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "light-orange", + "value": null + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 4, + "x": 10, + "y": 12 + }, + "id": 25, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.2.3", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "expr": "sum(borg_last_size_compressed{backupserver=\"$backupserver\"})", + "interval": "", + "legendFormat": "", + "refId": "A" + } + ], + "title": "Compressed size", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "description": "Size of all the data, compressed and deduplicated", + "fieldConfig": { + "defaults": { + "decimals": 1, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 4, + "x": 14, + "y": 12 + }, + "id": 26, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.2.3", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "expr": "sum(borg_last_size_dedup{backupserver=\"$backupserver\"})", + "interval": "", + "legendFormat": "", + "refId": "A" + } + ], + "title": "Deduplicated size", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "description": "How much space you are saving with compression and deduplication", + "fieldConfig": { + "defaults": { + "decimals": 1, + "mappings": [], + "max": 100, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "dark-red", + "value": null + }, + { + "color": "#EAB839", + "value": 70 + }, + { + "color": "dark-green", + "value": 85 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 6, + "x": 18, + "y": 12 + }, + "id": 27, + "options": { + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true + }, + "pluginVersion": "9.2.3", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "expr": "100-sum(borg_last_size_dedup{backupserver=\"$backupserver\"})/sum(borg_last_size{backupserver=\"$backupserver\"})*100", + "interval": "", + "legendFormat": "", + "refId": "A" + } + ], + "title": "Disk saving %", + "type": "gauge" + }, + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "description": "Breakdown per archive", + "fieldConfig": { + "defaults": { + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "#EAB839", + "value": 300000000 + }, + { + "color": "red", + "value": 1000000000 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 15 + }, + "id": 37, + "options": { + "displayMode": "lcd", + "minVizHeight": 10, + "minVizWidth": 0, + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "showUnfilled": true + }, + "pluginVersion": "9.2.3", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "expr": "borg_last_size{backupserver=\"$backupserver\", host=\"$host\"}", + "interval": "", + "legendFormat": "{{archive}}", + "refId": "A" + } + ], + "title": "Original sizes", + "transformations": [], + "type": "bargauge" + }, + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "description": "Breakdown per archive", + "fieldConfig": { + "defaults": { + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "#EAB839", + "value": 300000000 + }, + { + "color": "red", + "value": 1000000000 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 15 + }, + "id": 38, + "options": { + "displayMode": "lcd", + "minVizHeight": 10, + "minVizWidth": 0, + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "showUnfilled": true + }, + "pluginVersion": "9.2.3", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "expr": "borg_last_size_dedup{backupserver=\"$backupserver\", host=\"$host\"}", + "interval": "", + "legendFormat": "{{archive}}", + "refId": "A" + } + ], + "title": "Deduplicated sizes", + "transformations": [], + "type": "bargauge" + } + ], + "refresh": "30m", + "schemaVersion": 37, + "style": "dark", + "tags": [ + "backup", + "borg" + ], + "templating": { + "list": [ + { + "current": { + "selected": false, + "text": "148033e95e6c", + "value": "148033e95e6c" + }, + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "definition": "label_values(borg_archives_count, backupserver)", + "hide": 0, + "includeAll": false, + "label": "Backup server", + "multi": false, + "name": "backupserver", + "options": [], + "query": { + "query": "label_values(borg_archives_count, backupserver)", + "refId": "Prometheus-backupserver-Variable-Query" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "current": { + "selected": false, + "text": "Manjaro", + "value": "Manjaro" + }, + "datasource": { + "type": "prometheus", + "uid": "OmMh_rHVk" + }, + "definition": "label_values(borg_archives_count, host)", + "hide": 0, + "includeAll": false, + "label": "Host", + "multi": false, + "name": "host", + "options": [], + "query": { + "query": "label_values(borg_archives_count, host)", + "refId": "Prometheus-host-Variable-Query" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + } + ] + }, + "time": { + "from": "now-6h", + "to": "now" + }, + "timepicker": { + "refresh_intervals": [ + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ] + }, + "timezone": "", + "title": "Borg Backup status", + "uid": "mo_dwZeMk", + "version": 21, + "weekStart": "" +} \ No newline at end of file