Borg Backups
Borg Backups dashboard for the Borg-exporter.
Borg Backups dashboard for the [Borg-exporter](https://github.com/danihodovic/borg-exporter).
{
  "__inputs": [],
  "__requires": [],
  "annotations": {
    "list": []
  },
  "editable": false,
  "gnetId": 14489,
  "graphTooltip": 0,
  "hideControls": false,
  "id": null,
  "links": [],
  "panels": [
    {
      "collapse": false,
      "collapsed": false,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 2,
      "panels": [],
      "repeat": null,
      "repeatIteration": null,
      "repeatRowId": null,
      "showTitle": true,
      "title": "Borg",
      "titleSize": "h6",
      "type": "row"
    },
    {
      "columns": [],
      "datasource": "$datasource",
      "gridPos": {
        "h": 6,
        "w": 24,
        "x": 0,
        "y": 1
      },
      "id": 3,
      "links": [],
      "sort": {
        "col": 2,
        "desc": false
      },
      "span": "6",
      "styles": [
        {
          "alias": "Time",
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "pattern": "Time",
          "type": "hidden"
        },
        {
          "alias": "Repository",
          "pattern": "repo"
        },
        {
          "alias": "Total Backups",
          "pattern": "Value #A",
          "type": "number",
          "unit": "short"
        },
        {
          "alias": "Last Backup",
          "decimals": "0",
          "pattern": "Value #B",
          "type": "number",
          "unit": "dateTimeAsSystem"
        },
        {
          "alias": "Time Since last Backup",
          "colorMode": "cell",
          "colors": [
            "rgba(50, 172, 45, 0.97)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(245, 54, 54, 0.9)"
          ],
          "decimals": "1",
          "pattern": "Value #C",
          "thresholds": [
            "65025",
            "86700"
          ],
          "type": "number",
          "unit": "dtdurations"
        }
      ],
      "targets": [
        {
          "expr": "sum by (repo, instance) (borg_backups_total{job=\"borg-db\"})\n",
          "format": "table",
          "instant": true,
          "intervalFactor": 2,
          "legendFormat": "",
          "refId": "A"
        },
        {
          "expr": "sum by (repo, instance) (borg_last_backup_timestamp{job=\"borg-db\"}) * 1000\n",
          "format": "table",
          "instant": true,
          "intervalFactor": 2,
          "legendFormat": "",
          "refId": "B"
        },
        {
          "expr": "time() - sum by (repo, instance) (borg_last_backup_timestamp{job=\"borg-db\"})\n",
          "format": "table",
          "instant": true,
          "intervalFactor": 2,
          "legendFormat": "",
          "refId": "C"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Backups",
      "type": "table"
    }
  ],
  "refresh": "",
  "rows": [],
  "schemaVersion": 14,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "current": {
          "text": "Prometheus",
          "value": "Prometheus"
        },
        "hide": 0,
        "label": null,
        "name": "datasource",
        "options": [],
        "query": "prometheus",
        "refresh": 1,
        "regex": "",
        "type": "datasource"
      }
    ]
  },
  "time": {
    "from": "now-12h",
    "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": "browser",
  "title": "Borg Backups",
  "version": 0,
  "description": "Borg Backups dashboard for the Borg-exporter."
}