From 30fef2a1d981e303ba125f7429094818030f53e7 Mon Sep 17 00:00:00 2001 From: Steven Kreitzer Date: Wed, 3 Jan 2024 09:09:56 -0600 Subject: [PATCH] chore(kubernetes): house keeping --- .../home/mosquitto/app/configs/mosquitto.conf | 2 +- .../app/dashboards/smart-dashboard.json | 1074 ------ .../smartctl-exporter/app/kustomization.yaml | 9 - .../dashboards/cyberpower-ups-dashboard.json | 2 +- .../dashboards/synology-snmp-dashboard.json | 3285 ----------------- .../synology-nas/kustomization.yaml | 9 - .../gatus/app/dashboards/gatus.json | 1120 +++--- .../monitoring/grafana/app/helmrelease.yaml | 14 + .../helm/prometheus-community-charts.yaml | 2 +- 9 files changed, 576 insertions(+), 4941 deletions(-) delete mode 100644 kubernetes/apps/monitoring/exporters/smartctl-exporter/app/dashboards/smart-dashboard.json delete mode 100644 kubernetes/apps/monitoring/exporters/snmp-exporter/synology-nas/dashboards/synology-snmp-dashboard.json diff --git a/kubernetes/apps/home/mosquitto/app/configs/mosquitto.conf b/kubernetes/apps/home/mosquitto/app/configs/mosquitto.conf index 278ccce371..a2b210d5d6 100644 --- a/kubernetes/apps/home/mosquitto/app/configs/mosquitto.conf +++ b/kubernetes/apps/home/mosquitto/app/configs/mosquitto.conf @@ -6,4 +6,4 @@ persistence_location /data autosave_interval 1800 connection_messages false autosave_interval 60 -password_file /mosquitto/external_config/mosquitto_pwd \ No newline at end of file +password_file /mosquitto/external_config/mosquitto_pwd diff --git a/kubernetes/apps/monitoring/exporters/smartctl-exporter/app/dashboards/smart-dashboard.json b/kubernetes/apps/monitoring/exporters/smartctl-exporter/app/dashboards/smart-dashboard.json deleted file mode 100644 index 831a142365..0000000000 --- a/kubernetes/apps/monitoring/exporters/smartctl-exporter/app/dashboards/smart-dashboard.json +++ /dev/null @@ -1,1074 +0,0 @@ -{ - "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": "Dashboard for viewing detailed disk information based on S.M.A.R.T data", - "editable": true, - "fiscalYearStartMonth": 0, - "gnetId": null, - "graphTooltip": 0, - "id": 165, - "links": [], - "liveNow": false, - "panels": [ - { - "collapsed": false, - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 60, - "panels": [], - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "refId": "A" - } - ], - "title": "【 General 】", - "type": "row" - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 4, - "x": 0, - "y": 1 - }, - "id": 10, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "editorMode": "code", - "expr": "sum(smartctl_device)", - "format": "time_series", - "intervalFactor": 1, - "range": true, - "refId": "A" - } - ], - "title": "Disk Drives Monitored", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "auto" - }, - "filterable": false, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "S.M.A.R.T OK" - }, - "properties": [ - { - "id": "custom.cellOptions", - "value": { - "mode": "gradient", - "type": "color-background" - } - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "dark-yellow", - "value": null - }, - { - "color": "dark-red", - "value": 0 - }, - { - "color": "dark-green", - "value": 1 - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "instance" - }, - "properties": [ - { - "id": "custom.width", - "value": 119 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Device Model" - }, - "properties": [ - { - "id": "custom.width", - "value": 215 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Type" - }, - "properties": [ - { - "id": "custom.width", - "value": 80 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Size" - }, - "properties": [ - { - "id": "custom.width", - "value": 93 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Disk" - }, - "properties": [ - { - "id": "custom.width", - "value": 104 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Model Family" - }, - "properties": [ - { - "id": "custom.width", - "value": 220 - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 20, - "x": 4, - "y": 1 - }, - "id": 12, - "links": [], - "options": { - "footer": { - "countRows": false, - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true, - "sortBy": [ - { - "desc": false, - "displayName": "instance" - } - ] - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "editorMode": "code", - "expr": "label_replace(smartctl_device{instance=~\"$instance\", device=~\"$disk\"}, \"instance\", \"$1\", \"instance\", \"([^:]+).*\")", - "format": "table", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - } - ], - "title": "Disk Drives List", - "transformations": [ - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true, - "Value": true, - "__name__": true, - "disk": false, - "firmware_version": false, - "job": true, - "lun_id": true, - "name": true, - "product": true, - "revision": true, - "vendor": true - }, - "indexByName": { - "Time": 0, - "Value": 15, - "__name__": 1, - "device_model": 3, - "disk": 5, - "firmware_version": 14, - "instance": 2, - "job": 7, - "lun_id": 13, - "model_family": 8, - "product": 10, - "revision": 11, - "serial_number": 12, - "size": 4, - "smart_healthy": 16, - "type": 6, - "vendor": 9 - }, - "renameByName": { - "Time": "", - "device_model": "Device Model", - "disk": "Disk", - "firmware_version": "FW Version", - "model_family": "Model Family", - "product": "Product", - "serial_number": "Serial Number", - "size": "Size", - "smart_healthy": "S.M.A.R.T OK", - "type": "Type", - "vendor": "Vendor" - } - } - } - ], - "type": "table" - }, - { - "collapsed": false, - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 9 - }, - "id": 52, - "panels": [], - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "refId": "A" - } - ], - "title": "【 Temperature 】", - "type": "row" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "decimals": 1, - "description": "", - "fill": 0, - "fillGradient": 0, - "gridPos": { - "h": 11, - "w": 12, - "x": 0, - "y": 10 - }, - "hiddenSeries": false, - "id": 1, - "interval": "", - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "hideEmpty": false, - "hideZero": false, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "9.4.7", - "pointradius": 1, - "points": false, - "renderer": "flot", - "repeatDirection": "h", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "editorMode": "code", - "expr": "avg(smartctl_device_temperature{instance=~\"$instance\", device=~\"$disk\" }) by (instance, device, model_name, serial_number)", - "format": "time_series", - "hide": false, - "interval": "", - "intervalFactor": 4, - "legendFormat": "{{name}} 【{{instance}} {{device}}】", - "range": true, - "refId": "A" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Temperature History", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 1, - "format": "celsius", - "label": "", - "logBase": 1, - "show": true - }, - { - "decimals": 1, - "format": "celsius", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 1, - "mappings": [], - "max": "80", - "min": "0", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "index": 0, - "value": null - }, - { - "color": "#EAB839", - "index": 1, - "value": 32 - }, - { - "color": "red", - "index": 2, - "value": 50 - } - ] - }, - "unit": "celsius" - }, - "overrides": [] - }, - "gridPos": { - "h": 11, - "w": 12, - "x": 12, - "y": 10 - }, - "id": 14, - "links": [], - "maxDataPoints": 100, - "options": { - "displayMode": "gradient", - "minVizHeight": 10, - "minVizWidth": 0, - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "mean" - ], - "fields": "", - "values": false - }, - "showUnfilled": true - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "editorMode": "code", - "expr": "smartctl_device_temperature{instance=~\"$instance\", device=~\"$disk\"}", - "format": "time_series", - "instant": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "{{name}} 【{{instance}} {{device}}】", - "refId": "A" - } - ], - "title": "Temperature Bar", - "transformations": [], - "type": "bargauge" - }, - { - "collapsed": false, - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 21 - }, - "id": 54, - "panels": [], - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "refId": "A" - } - ], - "title": "【 Wear and Tear 】", - "type": "row" - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 2, - "mappings": [], - "max": "17520", - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "#EAB839", - "value": 17520 - }, - { - "color": "red", - "value": 35040 - } - ] - }, - "unit": "h" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 0, - "y": 22 - }, - "id": 3, - "interval": "", - "links": [ - { - "targetBlank": true, - "title": "S.M.A.R.T. Attribute: Power-On Hours (POH)", - "url": "https://kb.acronis.com/content/9109" - } - ], - "options": { - "displayMode": "gradient", - "minVizHeight": 10, - "minVizWidth": 0, - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "mean" - ], - "fields": "", - "values": false - }, - "showUnfilled": true - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "editorMode": "code", - "expr": "smartctl_device_power_on_seconds{device=~\"$disk\", instance=~\"$instance\"}/60/60", - "format": "time_series", - "instant": false, - "interval": "", - "intervalFactor": 2, - "legendFormat": "{{name}} 【{{instance}} {{device}}】", - "refId": "A" - } - ], - "title": "Power On Hours", - "transformations": [], - "type": "bargauge" - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "max": 2500, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "yellow", - "value": 1000 - }, - { - "color": "red", - "value": 2000 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 12, - "y": 22 - }, - "id": 32, - "links": [ - { - "targetBlank": true, - "title": "S.M.A.R.T. Attribute: Power Cycle Count", - "url": "https://kb.acronis.com/content/9112" - } - ], - "options": { - "displayMode": "lcd", - "minVizHeight": 10, - "minVizWidth": 0, - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "mean" - ], - "fields": "", - "values": false - }, - "showUnfilled": true - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "editorMode": "code", - "expr": "smartctl_device_power_cycle_count{ instance=~\"$instance\", device=~\"$disk\"}", - "format": "time_series", - "interval": "", - "intervalFactor": 1, - "legendFormat": "{{name}} 【{{instance}} {{device}}】", - "range": true, - "refId": "A" - } - ], - "title": "Power Cycle Count", - "type": "bargauge" - }, - { - "collapsed": false, - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 28 - }, - "id": 58, - "panels": [], - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "refId": "A" - } - ], - "title": "【 Errors 】", - "type": "row" - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "max": 20000, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "yellow", - "value": 2000 - }, - { - "color": "red", - "value": 5000 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 0, - "y": 29 - }, - "id": 62, - "links": [ - { - "targetBlank": true, - "title": "S.M.A.R.T. Attribute: Read Error Rate", - "url": "https://kb.acronis.com/content/9101" - } - ], - "options": { - "displayMode": "lcd", - "minVizHeight": 10, - "minVizWidth": 0, - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "mean" - ], - "fields": "", - "values": false - }, - "showUnfilled": true - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "editorMode": "code", - "expr": "smartctl_device_media_errors{instance=~\"$instance\", device=~\"$disk\"}", - "format": "time_series", - "interval": "", - "intervalFactor": 1, - "legendFormat": "{{name}} 【{{instance}} {{device}}】", - "range": true, - "refId": "A" - } - ], - "title": "Raw Read Error", - "type": "bargauge" - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "max": 20000, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "yellow", - "value": 2000 - }, - { - "color": "red", - "value": 5000 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 12, - "y": 29 - }, - "id": 63, - "links": [ - { - "targetBlank": true, - "title": "S.M.A.R.T. Attribute: Read Error Rate", - "url": "https://kb.acronis.com/content/9101" - } - ], - "options": { - "displayMode": "lcd", - "minVizHeight": 10, - "minVizWidth": 0, - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "mean" - ], - "fields": "", - "values": false - }, - "showUnfilled": true - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "editorMode": "code", - "expr": "smartctl_device_num_err_log_entries{instance=~\"$instance\", device=~\"$disk\"}", - "format": "time_series", - "interval": "", - "intervalFactor": 1, - "legendFormat": "{{name}} 【{{instance}} {{device}}】", - "range": true, - "refId": "A" - } - ], - "title": "Error Log Entries", - "type": "bargauge" - } - ], - "refresh": "30s", - "revision": 1, - "schemaVersion": 38, - "style": "dark", - "tags": [ - "prometheus", - "node_exporter", - "smartmon", - "SPN" - ], - "templating": { - "list": [ - { - "current": { - "selected": false, - "text": "All", - "value": "$__all" - }, - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "definition": "label_values(smartctl_device, instance) ", - "hide": 0, - "includeAll": true, - "multi": true, - "name": "instance", - "options": [], - "query": { - "query": "label_values(smartctl_device, instance) ", - "refId": "StandardVariableQuery" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 1, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "current": { - "selected": false, - "text": "All", - "value": "$__all" - }, - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "definition": "label_values(smartctl_device, device)", - "hide": 0, - "includeAll": true, - "multi": true, - "name": "disk", - "options": [], - "query": { - "query": "label_values(smartctl_device, device)", - "refId": "StandardVariableQuery" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 1, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - } - ] - }, - "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": "S.M.A.R.T Dashboard", - "uid": "PkPI4xGWz", - "version": 3, - "weekStart": "" - } \ No newline at end of file diff --git a/kubernetes/apps/monitoring/exporters/smartctl-exporter/app/kustomization.yaml b/kubernetes/apps/monitoring/exporters/smartctl-exporter/app/kustomization.yaml index ac1fef7a98..8ae526670a 100644 --- a/kubernetes/apps/monitoring/exporters/smartctl-exporter/app/kustomization.yaml +++ b/kubernetes/apps/monitoring/exporters/smartctl-exporter/app/kustomization.yaml @@ -4,12 +4,3 @@ kind: Kustomization resources: - ./helmrelease.yaml - ./prometheusrule.yaml -configMapGenerator: - - name: smartctl-exporter-dashboards - files: - - ./dashboards/smart-dashboard.json - options: - labels: - grafana_dashboard: "1" -generatorOptions: - disableNameSuffixHash: true diff --git a/kubernetes/apps/monitoring/exporters/snmp-exporter/cyberpower-ups/dashboards/cyberpower-ups-dashboard.json b/kubernetes/apps/monitoring/exporters/snmp-exporter/cyberpower-ups/dashboards/cyberpower-ups-dashboard.json index 1f010bc322..1989ea6631 100644 --- a/kubernetes/apps/monitoring/exporters/snmp-exporter/cyberpower-ups/dashboards/cyberpower-ups-dashboard.json +++ b/kubernetes/apps/monitoring/exporters/snmp-exporter/cyberpower-ups/dashboards/cyberpower-ups-dashboard.json @@ -1176,7 +1176,7 @@ }, "timezone": "", "title": "CyberPower UPS", - "uid": "000000012", + "uid": "", "version": 1, "weekStart": "" } diff --git a/kubernetes/apps/monitoring/exporters/snmp-exporter/synology-nas/dashboards/synology-snmp-dashboard.json b/kubernetes/apps/monitoring/exporters/snmp-exporter/synology-nas/dashboards/synology-snmp-dashboard.json deleted file mode 100644 index ec5b4003ce..0000000000 --- a/kubernetes/apps/monitoring/exporters/snmp-exporter/synology-nas/dashboards/synology-snmp-dashboard.json +++ /dev/null @@ -1,3285 +0,0 @@ -{ - "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": "A Dashboard for Synology NAS based on SNMP and Prometheus", - "editable": true, - "fiscalYearStartMonth": 0, - "gnetId": null, - "graphTooltip": 0, - "id": 160, - "links": [], - "liveNow": false, - "panels": [ - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "fieldConfig": { - "defaults": { - "custom": { - "align": "auto", - "cellOptions": { - "type": "auto" - }, - "filterable": false, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Uptime" - }, - "properties": [ - { - "id": "unit", - "value": "s" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "custom.align", - "value": "left" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Upgrade Available" - }, - "properties": [ - { - "id": "custom.align", - "value": "right" - }, - { - "id": "mappings", - "value": [ - { - "options": { - "1": { - "text": "Available" - }, - "2": { - "text": "Unavailable" - }, - "3": { - "text": "Connecting" - }, - "4": { - "text": "Disconnected" - }, - "5": { - "text": "Others" - } - }, - "type": "value" - } - ] - }, - { - "id": "color" - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-text" - } - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "green", - "value": 2 - }, - { - "color": "super-light-purple", - "value": 3 - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Internal Temperature" - }, - "properties": [ - { - "id": "custom.align", - "value": "left" - }, - { - "id": "unit", - "value": "celsius" - }, - { - "id": "custom.cellOptions", - "value": { - "mode": "gradient", - "type": "gauge" - } - }, - { - "id": "max", - "value": 80 - }, - { - "id": "color" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "yellow", - "value": 40 - }, - { - "color": "dark-red", - "value": 60 - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byRegexp", - "options": "^.*Status$" - }, - "properties": [ - { - "id": "custom.align", - "value": "center" - }, - { - "id": "custom.cellOptions", - "value": { - "mode": "gradient", - "type": "color-background" - } - }, - { - "id": "mappings", - "value": [ - { - "options": { - "1": { - "text": "NORMAL" - }, - "2": { - "text": "FAILED" - } - }, - "type": "value" - } - ] - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 2 - } - ] - } - } - ] - } - ] - }, - "gridPos": { - "h": 3, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 184, - "options": { - "footer": { - "countRows": false, - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "editorMode": "code", - "expr": "sysUpTime{instance='$Device',job=\"snmp-exporter-synology-nas\"}/100", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "uptime", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "editorMode": "code", - "expr": "upgradeAvailable{instance='$Device',job=\"snmp-exporter-synology-nas\"}", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "editorMode": "code", - "expr": "temperature{job=\"snmp-exporter-synology-nas\", instance='$Device'}", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "C" - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "editorMode": "code", - "expr": "cpuFanStatus{job=\"snmp-exporter-synology-nas\",instance='$Device'}", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "D" - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "editorMode": "code", - "expr": "systemFanStatus{job=\"snmp-exporter-synology-nas\",instance='$Device'}", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "E" - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "editorMode": "code", - "expr": "systemStatus{job=\"snmp-exporter-synology-nas\",instance='$Device'}", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "F" - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "editorMode": "code", - "expr": "powerStatus{job=\"snmp-exporter-synology-nas\",instance='$Device'}", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "G" - } - ], - "transformations": [ - { - "id": "seriesToColumns", - "options": { - "byField": "Time" - } - }, - { - "id": "filterFieldsByName", - "options": { - "include": { - "names": [ - "Value #A", - "Value #B", - "Value #C", - "Value #D", - "Value #E", - "Value #F", - "Value #G" - ] - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": {}, - "indexByName": { - "Value #A": 1, - "Value #B": 6, - "Value #C": 3, - "Value #D": 4, - "Value #E": 5, - "Value #F": 0, - "Value #G": 2 - }, - "renameByName": { - "Value": "Uptime", - "Value #A": "Uptime", - "Value #B": "Upgrade Available", - "Value #C": "Internal Temperature", - "Value #D": "CPU Fan Status", - "Value #E": "System Fan Status", - "Value #F": "System Partition Status", - "Value #G": "Power Status" - } - } - } - ], - "transparent": true, - "type": "table" - }, - { - "collapsed": false, - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 3 - }, - "id": 14, - "panels": [], - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "refId": "A" - } - ], - "title": "System State", - "type": "row" - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "fieldConfig": { - "defaults": { - "decimals": 2, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "max": 100, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#299c46", - "value": null - }, - { - "color": "rgba(237, 129, 40, 0.89)", - "value": 70 - }, - { - "color": "#d44a3a", - "value": 90 - } - ] - }, - "unit": "percent" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 4, - "x": 0, - "y": 4 - }, - "id": 33, - "links": [], - "maxDataPoints": 100, - "options": { - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "mean" - ], - "fields": "", - "values": false - }, - "showThresholdLabels": false, - "showThresholdMarkers": true - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "editorMode": "code", - "expr": "ssCpuUser{job=\"snmp-exporter-synology-nas\", instance='$Device'} + ssCpuSystem{job=\"snmp-exporter-synology-nas\", instance='$Device'}", - "format": "time_series", - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "range": true, - "refId": "A" - } - ], - "title": "CPU Utilization", - "type": "gauge" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 6, - "w": 7, - "x": 4, - "y": 4 - }, - "hiddenSeries": false, - "id": 11, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "9.4.7", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "editorMode": "code", - "expr": "laLoadInt{job=\"snmp-exporter-synology-nas\",instance='$Device'}", - "format": "time_series", - "interval": "", - "intervalFactor": 1, - "legendFormat": "{{laNames}}", - "range": true, - "refId": "A" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Load", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:1102", - "format": "percent", - "label": "", - "logBase": 1, - "show": true - }, - { - "$$hashKey": "object:1103", - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": { - "Idle": "blue", - "System": "dark-red", - "User": "dark-green" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "fill": 10, - "fillGradient": 0, - "gridPos": { - "h": 6, - "w": 7, - "x": 11, - "y": 4 - }, - "hiddenSeries": false, - "id": 23, - "legend": { - "alignAsTable": true, - "avg": false, - "current": false, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "connected", - "options": { - "alertThreshold": true - }, - "percentage": true, - "pluginVersion": "9.4.7", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "editorMode": "code", - "expr": "ssCpuSystem{instance='$Device',job='snmp-exporter-synology-nas'}", - "interval": "", - "legendFormat": "System", - "range": true, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "editorMode": "code", - "expr": "ssCpuUser{instance='$Device',job='snmp-exporter-synology-nas'}", - "interval": "", - "legendFormat": "User", - "range": true, - "refId": "C" - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "expr": "ssCpuIdle{instance='$Device',job='snmp-exporter-synology-nas'}", - "interval": "", - "legendFormat": "Idle", - "refId": "B" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "CPU", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:1276", - "format": "percent", - "logBase": 1, - "max": "100", - "show": true - }, - { - "$$hashKey": "object:1277", - "format": "short", - "logBase": 1, - "max": "100", - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "description": "", - "fieldConfig": { - "defaults": { - "custom": { - "align": "auto", - "cellOptions": { - "type": "auto" - }, - "filterable": false, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Service" - }, - "properties": [ - { - "id": "custom.width", - "value": 120 - } - ] - } - ] - }, - "gridPos": { - "h": 6, - "w": 6, - "x": 18, - "y": 4 - }, - "id": 158, - "options": { - "footer": { - "countRows": false, - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true, - "sortBy": [ - { - "desc": true, - "displayName": "Connected Users" - } - ] - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "editorMode": "code", - "expr": "serviceUsers{instance='$Device',job=\"snmp-exporter-synology-nas\"}", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "transformations": [ - { - "id": "filterFieldsByName", - "options": { - "include": { - "names": [ - "serviceName", - "Value" - ] - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": {}, - "indexByName": {}, - "renameByName": { - "Value": "Connected Users", - "serviceName": "Service" - } - } - } - ], - "type": "table" - }, - { - "collapsed": false, - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 10 - }, - "id": 99, - "panels": [], - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "refId": "A" - } - ], - "title": "System Memory", - "type": "row" - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "fieldConfig": { - "defaults": { - "decimals": 2, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "max": 1, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#299c46", - "value": null - }, - { - "color": "rgba(237, 129, 40, 0.89)", - "value": 0.7 - }, - { - "color": "#d44a3a", - "value": 0.8 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 4, - "x": 0, - "y": 11 - }, - "id": 117, - "links": [], - "maxDataPoints": 100, - "options": { - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showThresholdLabels": false, - "showThresholdMarkers": true - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "editorMode": "code", - "expr": "(memTotalReal{job=\"snmp-exporter-synology-nas\", instance='$Device'} - (memAvailReal{job=\"snmp-exporter-synology-nas\", instance='$Device'} + memCached{job=\"snmp-exporter-synology-nas\", instance='$Device'} + memBuffer{job=\"snmp-exporter-synology-nas\", instance='$Device'})) / memTotalReal{job=\"snmp-exporter-synology-nas\", instance='$Device'}", - "format": "time_series", - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "range": true, - "refId": "A" - } - ], - "title": "Memory Usage", - "type": "gauge" - }, - { - "aliasColors": { - "Free Virtual Memory": "dark-green", - "Total Virtual Memory": "dark-red", - "Used Virtual Memory": "dark-orange" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "fill": 10, - "fillGradient": 0, - "gridPos": { - "h": 6, - "w": 7, - "x": 4, - "y": 11 - }, - "hiddenSeries": false, - "id": 115, - "legend": { - "alignAsTable": true, - "avg": false, - "current": false, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "connected", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "9.4.7", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "$$hashKey": "object:2935", - "alias": "Total Virtual Memory", - "fill": 0, - "linewidth": 3, - "stack": false - } - ], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "editorMode": "code", - "expr": "memTotalReal{instance='$Device',job=\"snmp-exporter-synology-nas\"} + memTotalSwap{instance='$Device',job=\"snmp-exporter-synology-nas\"} - memTotalFree{instance='$Device',job=\"snmp-exporter-synology-nas\"}", - "hide": false, - "interval": "", - "legendFormat": "Used Virtual Memory", - "range": true, - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "editorMode": "code", - "expr": "memTotalFree{instance='$Device',job=\"snmp-exporter-synology-nas\"}", - "hide": false, - "interval": "", - "legendFormat": "Free Virtual Memory", - "range": true, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "expr": "memTotalReal{instance='$Device',job=\"snmp-exporter-synology-nas\"} + memTotalSwap{instance='$Device',job=\"snmp-exporter-synology-nas\"}", - "hide": false, - "interval": "", - "legendFormat": "Total Virtual Memory", - "refId": "F" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Virtual Memory", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:2907", - "format": "deckbytes", - "logBase": 1, - "show": true - }, - { - "$$hashKey": "object:2908", - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": { - "Available": "dark-green", - "Cached": "super-light-yellow", - "Reserved": "light-red", - "Shared": "dark-purple", - "Total": "dark-red" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "fill": 10, - "fillGradient": 0, - "gridPos": { - "h": 6, - "w": 6, - "x": 11, - "y": 11 - }, - "hiddenSeries": false, - "id": 114, - "legend": { - "alignAsTable": true, - "avg": false, - "current": false, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "connected", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "9.4.7", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "$$hashKey": "object:2935", - "alias": "Total", - "fill": 0, - "linewidth": 3, - "stack": false - } - ], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "editorMode": "code", - "expr": "memTotalReal{instance='$Device',job=\"snmp-exporter-synology-nas\"} - (memShared{instance='$Device',job=\"snmp-exporter-synology-nas\"} + memCached{instance='$Device',job=\"snmp-exporter-synology-nas\"} + memBuffer{instance='$Device',job=\"snmp-exporter-synology-nas\"} + memAvailReal{instance='$Device',job=\"snmp-exporter-synology-nas\"})", - "hide": false, - "interval": "", - "legendFormat": "Reserved", - "range": true, - "refId": "E" - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "editorMode": "code", - "expr": "memAvailReal{instance='$Device',job=\"snmp-exporter-synology-nas\"}", - "hide": false, - "interval": "", - "legendFormat": "Available", - "range": true, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "expr": "memBuffer{instance='$Device',job=\"snmp-exporter-synology-nas\"}", - "hide": false, - "interval": "", - "legendFormat": "Buffer", - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "expr": "memCached{instance='$Device',job=\"snmp-exporter-synology-nas\"}", - "hide": false, - "interval": "", - "legendFormat": "Cached", - "refId": "C" - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "expr": "memShared{instance='$Device',job=\"snmp-exporter-synology-nas\"}", - "hide": false, - "interval": "", - "legendFormat": "Shared", - "refId": "D" - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "expr": "memTotalReal{instance='$Device',job=\"snmp-exporter-synology-nas\"} ", - "hide": false, - "interval": "", - "legendFormat": "Total", - "refId": "F" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Physical Memory", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:2907", - "format": "deckbytes", - "logBase": 1, - "show": true - }, - { - "$$hashKey": "object:2908", - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": { - "Available": "green", - "Free Virtual Memory": "dark-green", - "Total": "dark-red", - "Total Virtual Memory": "dark-red", - "Used": "yellow", - "Used Swap Memory": "dark-red", - "Used Virtual Memory": "dark-orange" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "fill": 10, - "fillGradient": 0, - "gridPos": { - "h": 6, - "w": 7, - "x": 17, - "y": 11 - }, - "hiddenSeries": false, - "id": 116, - "legend": { - "alignAsTable": true, - "avg": false, - "current": false, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "connected", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "9.4.7", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "$$hashKey": "object:2935", - "alias": "Total", - "fill": 0, - "linewidth": 3, - "stack": false - } - ], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "editorMode": "code", - "expr": "memTotalSwap{instance='$Device',job=\"snmp-exporter-synology-nas\"} - memAvailSwap{instance='$Device',job=\"snmp-exporter-synology-nas\"}", - "instant": false, - "interval": "", - "legendFormat": "Used", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "editorMode": "code", - "expr": "memAvailSwap{instance='$Device',job=\"snmp-exporter-synology-nas\"}", - "hide": false, - "interval": "", - "legendFormat": "Available", - "range": true, - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "expr": "memTotalSwap{instance='$Device',job=\"snmp-exporter-synology-nas\"}", - "hide": false, - "interval": "", - "legendFormat": "Total", - "refId": "F" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Swap Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:2907", - "format": "deckbytes", - "logBase": 1, - "show": true - }, - { - "$$hashKey": "object:2908", - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "collapsed": false, - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 17 - }, - "id": 76, - "panels": [], - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "refId": "A" - } - ], - "title": "Internals", - "type": "row" - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "fieldConfig": { - "defaults": { - "custom": { - "align": "auto", - "cellOptions": { - "type": "auto" - }, - "filterable": false, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Admin Status" - }, - "properties": [ - { - "id": "mappings", - "value": [ - { - "options": { - "1": { - "text": "UP" - }, - "2": { - "text": "DOWN" - }, - "3": { - "text": "TESTING" - } - }, - "type": "value" - } - ] - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-text" - } - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 2 - }, - { - "color": "#EAB839", - "value": 3 - } - ] - } - }, - { - "id": "custom.align", - "value": "center" - }, - { - "id": "custom.width", - "value": 100 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Connector" - }, - "properties": [ - { - "id": "mappings", - "value": [ - { - "options": { - "1": { - "text": "Present" - }, - "2": { - "text": "Absent" - } - }, - "type": "value" - } - ] - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-text" - } - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 2 - } - ] - } - }, - { - "id": "custom.align", - "value": "center" - }, - { - "id": "custom.width", - "value": 100 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Speed" - }, - "properties": [ - { - "id": "unit", - "value": "bps" - }, - { - "id": "decimals", - "value": 0 - }, - { - "id": "custom.width", - "value": 100 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Operational Status" - }, - "properties": [ - { - "id": "mappings", - "value": [ - { - "options": { - "1": { - "text": "UP" - }, - "2": { - "text": "DOWN" - }, - "3": { - "text": "TESTING" - }, - "4": { - "text": "UNKNOWN" - }, - "5": { - "text": "DORMANT" - }, - "6": { - "text": "NOT PRESENT" - }, - "7": { - "text": "LOWER LAYER DOWN" - } - }, - "type": "value" - } - ] - }, - { - "id": "custom.cellOptions", - "value": { - "mode": "gradient", - "type": "color-background" - } - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 2 - }, - { - "color": "#EAB839", - "value": 3 - }, - { - "color": "dark-red", - "value": 7 - } - ] - } - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 11, - "x": 0, - "y": 18 - }, - "id": 210, - "options": { - "footer": { - "countRows": false, - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "editorMode": "code", - "expr": "ifPhysAddress{instance='$Device',job=\"snmp-exporter-synology-nas\"}", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "editorMode": "code", - "expr": "ifAdminStatus{instance='$Device',job=\"snmp-exporter-synology-nas\"}", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "expr": "ifConnectorPresent{instance='$Device',job=\"snmp-exporter-synology-nas\"}", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "C" - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "expr": "ifSpeed{instance='$Device',job=\"snmp-exporter-synology-nas\"}", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "D" - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "expr": "ifOperStatus{instance='$Device',job=\"snmp-exporter-synology-nas\"}", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "E" - } - ], - "transformations": [ - { - "id": "seriesToColumns", - "options": { - "byField": "ifName" - } - }, - { - "id": "filterFieldsByName", - "options": { - "include": { - "names": [ - "ifName", - "ifPhysAddress", - "Value #B", - "Value #C", - "Value #D", - "Value #E" - ] - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": {}, - "indexByName": { - "Value #B": 3, - "Value #C": 4, - "Value #D": 5, - "Value #E": 2, - "ifName": 0, - "ifPhysAddress": 1 - }, - "renameByName": { - "Value #B": "Admin Status", - "Value #C": "Connector", - "Value #D": "Speed", - "Value #E": "Operational Status", - "ifName": "Device Name", - "ifPhysAddress": "MAC Address" - } - } - } - ], - "type": "table" - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "fieldConfig": { - "defaults": { - "custom": { - "align": "auto", - "cellOptions": { - "type": "auto" - }, - "filterable": false, - "inspect": false - }, - "mappings": [], - "max": 80, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "dark-yellow", - "value": 35 - }, - { - "color": "dark-red", - "value": 50 - } - ] - }, - "unit": "celsius" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Disk" - }, - "properties": [ - { - "id": "custom.cellOptions", - "value": { - "type": "auto" - } - }, - { - "id": "custom.width", - "value": 150 - }, - { - "id": "custom.align", - "value": "left" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Temperature" - }, - "properties": [ - { - "id": "custom.cellOptions", - "value": { - "mode": "gradient", - "type": "gauge" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Disk Type" - }, - "properties": [ - { - "id": "custom.width", - "value": 100 - }, - { - "id": "custom.align", - "value": "left" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Disk Status" - }, - "properties": [ - { - "id": "mappings", - "value": [ - { - "options": { - "1": { - "text": "Normal" - }, - "2": { - "text": "Initialized" - }, - "3": { - "text": "NotInitialized" - }, - "4": { - "text": "SystemPartitionFailed" - }, - "5": { - "text": "Crashed" - } - }, - "type": "value" - } - ] - }, - { - "id": "custom.width", - "value": 150 - }, - { - "id": "custom.align", - "value": "left" - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-text" - } - }, - { - "id": "color" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "dark-yellow", - "value": 2 - }, - { - "color": "dark-red", - "value": 4 - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Disk Model" - }, - "properties": [ - { - "id": "custom.width", - "value": 200 - }, - { - "id": "custom.align", - "value": "left" - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 13, - "x": 11, - "y": 18 - }, - "id": 132, - "options": { - "footer": { - "countRows": false, - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "editorMode": "code", - "expr": "diskTemperature{job=\"snmp-exporter-synology-nas\", instance='$Device'}", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "editorMode": "code", - "expr": "diskType{job=\"snmp-exporter-synology-nas\", instance='$Device'}", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "editorMode": "code", - "expr": "diskStatus{job=\"snmp-exporter-synology-nas\", instance='$Device'}", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "C" - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "editorMode": "code", - "expr": "diskModel{job=\"snmp-exporter-synology-nas\", instance='$Device'}", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "D" - } - ], - "transformations": [ - { - "id": "filterFieldsByName", - "options": { - "include": { - "names": [ - "diskID", - "Value #A", - "diskType", - "Value #C", - "diskModel" - ] - } - } - }, - { - "id": "seriesToColumns", - "options": { - "byField": "diskID" - } - }, - { - "id": "organize", - "options": { - "excludeByName": {}, - "indexByName": { - "Value #A": 4, - "Value #C": 3, - "diskID": 0, - "diskModel": 2, - "diskType": 1 - }, - "renameByName": { - "Value #A": "Temperature", - "Value #C": "Disk Status", - "diskID": "Disk", - "diskModel": "Disk Model", - "diskType": "Disk Type" - } - } - } - ], - "type": "table" - }, - { - "collapsed": false, - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 26 - }, - "id": 19, - "panels": [], - "repeat": "raidName", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "refId": "A" - } - ], - "title": "Volume $raidName", - "type": "row" - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "description": "", - "fieldConfig": { - "defaults": { - "mappings": [ - { - "options": { - "1": { - "text": "Normal" - }, - "2": { - "text": "Repairing" - }, - "3": { - "text": "Migrating" - }, - "4": { - "text": "Expanding" - }, - "5": { - "text": "Deleting" - }, - "6": { - "text": "Creating" - }, - "7": { - "text": "RaidSyncing" - }, - "8": { - "text": "RaidParityChecking" - }, - "9": { - "text": "RaidAssembling" - }, - "10": { - "text": "Canceling" - }, - "11": { - "text": "Degrade" - }, - "12": { - "text": "Crashed" - } - }, - "type": "value" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#299c46", - "value": null - }, - { - "color": "rgba(237, 129, 40, 0.89)", - "value": 2 - }, - { - "color": "#d44a3a", - "value": 10 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 5, - "x": 0, - "y": 27 - }, - "id": 9, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "value" - }, - "pluginVersion": "9.4.7", - "repeatDirection": "h", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "expr": "raidStatus{job=\"snmp-exporter-synology-nas\",instance='$Device',raidName='$raidName'}", - "format": "time_series", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - } - ], - "type": "stat" - }, - { - "aliasColors": { - "0x566F6C756D652031 Free Size": "dark-green", - "0x566F6C756D652031 Total Size": "yellow", - "Free Size": "dark-green", - "Total Size": "orange" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "fill": 10, - "fillGradient": 0, - "gridPos": { - "h": 5, - "w": 19, - "x": 5, - "y": 27 - }, - "hiddenSeries": false, - "id": 26, - "legend": { - "alignAsTable": true, - "avg": false, - "current": false, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "maxPerRow": 6, - "nullPointMode": "connected", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "9.4.7", - "pointradius": 2, - "points": false, - "renderer": "flot", - "repeatDirection": "h", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "editorMode": "code", - "expr": "raidTotalSize{instance='$Device',job=\"snmp-exporter-synology-nas\",raidName=~'$raidName'}", - "interval": "", - "legendFormat": "Total Size", - "range": true, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "editorMode": "code", - "expr": "raidFreeSize{instance='$Device',job=\"snmp-exporter-synology-nas\",raidName=~'$raidName'}", - "interval": "", - "legendFormat": "Free Size", - "range": true, - "refId": "B" - } - ], - "thresholds": [], - "timeRegions": [], - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:1861", - "format": "bytes", - "logBase": 1, - "show": true - }, - { - "$$hashKey": "object:1862", - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "collapsed": false, - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 32 - }, - "id": 39, - "panels": [], - "repeat": "spaceIODevice", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "refId": "A" - } - ], - "title": "Volume $spaceIODevice", - "type": "row" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "description": "", - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 33 - }, - "hiddenSeries": false, - "id": 45, - "interval": "30s", - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "connected", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "9.4.7", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "$$hashKey": "object:5137", - "alias": "Written Bytes", - "transform": "negative-Y" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "editorMode": "code", - "expr": "rate(spaceIONReadX{instance='$Device',job=\"snmp-exporter-synology-nas\",spaceIODevice=~\"$spaceIODevice\"}[$__interval])", - "interval": "", - "legendFormat": "Read Bytes", - "range": true, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "editorMode": "code", - "expr": "rate(spaceIONWrittenX{instance='$Device',job=\"snmp-exporter-synology-nas\",spaceIODevice=~\"$spaceIODevice\"}[$__interval])", - "interval": "", - "legendFormat": "Written Bytes", - "range": true, - "refId": "B" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Volume Throughput", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:5109", - "format": "Bps", - "logBase": 1, - "show": true - }, - { - "$$hashKey": "object:5110", - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 33 - }, - "hiddenSeries": false, - "id": 46, - "interval": "30s", - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "connected", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "9.4.7", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "$$hashKey": "object:5137", - "alias": "Written Bytes", - "transform": "negative-Y" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "editorMode": "code", - "expr": "rate(spaceIOReads{instance='$Device',job=\"snmp-exporter-synology-nas\",spaceIODevice=~\"$spaceIODevice\"}[$__interval])", - "interval": "", - "legendFormat": "Read Bytes", - "range": true, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "editorMode": "code", - "expr": "rate(spaceIOWrites{instance='$Device',job=\"snmp-exporter-synology-nas\",spaceIODevice=~\"$spaceIODevice\"}[$__interval])", - "interval": "", - "legendFormat": "Written Bytes", - "range": true, - "refId": "B" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Volume IOPS", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:5109", - "format": "iops", - "logBase": 1, - "show": true - }, - { - "$$hashKey": "object:5110", - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "collapsed": false, - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 41 - }, - "id": 28, - "panels": [], - "repeat": "storageIODevice", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "refId": "A" - } - ], - "title": "Device $storageIODevice", - "type": "row" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "description": "", - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 6, - "w": 12, - "x": 0, - "y": 42 - }, - "hiddenSeries": false, - "id": 30, - "interval": "30s", - "legend": { - "alignAsTable": true, - "avg": false, - "current": false, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "connected", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "9.4.7", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "$$hashKey": "object:2925", - "alias": "Written Bytes", - "transform": "negative-Y" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "expr": "rate(storageIONReadX{instance='$Device',job=\"snmp-exporter-synology-nas\",storageIODevice=~'$storageIODevice'}[$__interval])", - "interval": "", - "legendFormat": "Read Bytes", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "expr": "rate(storageIONWrittenX{instance='$Device',job=\"snmp-exporter-synology-nas\",storageIODevice=~'$storageIODevice'}[$__interval])", - "interval": "", - "legendFormat": "Written Bytes", - "refId": "B" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Device Throughput", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:2897", - "format": "Bps", - "logBase": 1, - "show": true - }, - { - "$$hashKey": "object:2898", - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "description": "", - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 6, - "w": 12, - "x": 12, - "y": 42 - }, - "hiddenSeries": false, - "id": 31, - "interval": "30s", - "legend": { - "alignAsTable": true, - "avg": false, - "current": false, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "connected", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "9.4.7", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "$$hashKey": "object:3018", - "alias": "Write IOPS", - "transform": "negative-Y" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "expr": "irate(storageIOReads{instance='$Device',job=\"snmp-exporter-synology-nas\",storageIODevice=~'$storageIODevice'}[$__interval])", - "interval": "", - "legendFormat": "Read IOPS", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "expr": "irate(storageIOWrites{instance='$Device',job=\"snmp-exporter-synology-nas\",storageIODevice=~'$storageIODevice'}[$__interval])", - "interval": "", - "legendFormat": "Write IOPS", - "refId": "B" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Device IOPS", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:2897", - "format": "iops", - "logBase": 1, - "show": true - }, - { - "$$hashKey": "object:2898", - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "collapsed": false, - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 83 - }, - "id": 17, - "panels": [], - "repeat": "Interface", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "refId": "A" - } - ], - "title": "Networking ($Interface)", - "type": "row" - }, - { - "aliasColors": { - "Out": "#C15C17" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "description": "", - "editable": true, - "error": false, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 6, - "w": 12, - "x": 0, - "y": 84 - }, - "hiddenSeries": false, - "id": 1, - "interval": "30s", - "legend": { - "alignAsTable": false, - "avg": false, - "current": true, - "max": true, - "min": false, - "rightSide": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "maxPerRow": 2, - "nullPointMode": "connected", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "9.4.7", - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatDirection": "h", - "seriesOverrides": [ - { - "$$hashKey": "object:803", - "alias": "/^.*Out$/", - "transform": "negative-Y" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "expr": "rate(ifHCInOctets{job='snmp-exporter-synology-nas',instance='$Device',ifName=~'$Interface'}[$__interval]) or rate(ifInOctets{job='snmp',instance='$Device',ifName=~'$Interface'}[$__interval]) ", - "format": "time_series", - "interval": "", - "intervalFactor": 2, - "legendFormat": "$Interface In", - "refId": "A", - "step": 60 - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "expr": "rate(ifHCOutOctets{job='snmp-exporter-synology-nas',instance='$Device',ifName=~'$Interface'}[$__interval]) or rate(ifOutOctets{job='snmp',instance='$Device',ifName=~'$Interface'}[$__interval]) ", - "format": "time_series", - "interval": "", - "intervalFactor": 2, - "legendFormat": "$Interface Out", - "refId": "B", - "step": 60 - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Traffic", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:671", - "format": "bps", - "logBase": 1, - "show": true - }, - { - "$$hashKey": "object:672", - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": { - "Out": "#C15C17" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "description": "", - "editable": true, - "error": false, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 6, - "w": 12, - "x": 12, - "y": 84 - }, - "hiddenSeries": false, - "id": 68, - "interval": "30s", - "legend": { - "alignAsTable": false, - "avg": false, - "current": true, - "max": true, - "min": false, - "rightSide": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "maxPerRow": 2, - "nullPointMode": "connected", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "9.4.7", - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatDirection": "h", - "seriesOverrides": [ - { - "$$hashKey": "object:803", - "alias": "/^.*Out$/", - "transform": "negative-Y" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "expr": "rate(ifInDiscards{job='snmp-exporter-synology-nas',instance='$Device',ifName=~'$Interface'}[$__interval])", - "format": "time_series", - "interval": "", - "intervalFactor": 2, - "legendFormat": "Discards In", - "refId": "A", - "step": 60 - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "expr": "rate(ifInErrors{job='snmp-exporter-synology-nas',instance='$Device',ifName=~'$Interface'}[$__interval])", - "format": "time_series", - "interval": "", - "intervalFactor": 2, - "legendFormat": "Errors In", - "refId": "B", - "step": 60 - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "expr": "rate(ifOutDiscards{job='snmp-exporter-synology-nas',instance='$Device',ifName=~'$Interface'}[$__interval])", - "format": "time_series", - "interval": "", - "intervalFactor": 2, - "legendFormat": "Discards Out", - "refId": "C", - "step": 60 - }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "expr": "rate(ifOutErrors{job='snmp-exporter-synology-nas',instance='$Device',ifName=~'$Interface'}[$__interval])", - "format": "time_series", - "interval": "", - "intervalFactor": 2, - "legendFormat": "Errors Out", - "refId": "D", - "step": 60 - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Errors", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:671", - "format": "short", - "logBase": 1, - "show": true - }, - { - "$$hashKey": "object:672", - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - } - ], - "refresh": "1m", - "revision": 1, - "schemaVersion": 38, - "style": "dark", - "tags": [], - "templating": { - "list": [ - { - "current": { - "selected": false, - "text": "All", - "value": "$__all" - }, - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "definition": "query_result(ssCpuUser{job=\"snmp-exporter-synology-nas\"})", - "hide": 0, - "includeAll": false, - "multi": false, - "name": "Device", - "options": [], - "query": { - "query": "query_result(ssCpuUser{job=\"snmp-exporter-synology-nas\"})", - "refId": "StandardVariableQuery" - }, - "refresh": 1, - "regex": ".*instance=\"(.*?)\".*", - "skipUrlSync": false, - "sort": 1, - "type": "query", - "useTags": false - }, - { - "current": { - "selected": false, - "text": "All", - "value": "$__all" - }, - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "definition": "query_result(ifName{job=\"snmp-exporter-synology-nas\",instance=\"$Device\"})", - "hide": 0, - "includeAll": true, - "multi": true, - "name": "Interface", - "options": [], - "query": { - "query": "query_result(ifName{job=\"snmp-exporter-synology-nas\",instance=\"$Device\"})", - "refId": "StandardVariableQuery" - }, - "refresh": 1, - "regex": ".*ifName=\"(.*?)\",.*", - "skipUrlSync": false, - "sort": 1, - "type": "query", - "useTags": false - }, - { - "current": { - "selected": false, - "text": "All", - "value": "$__all" - }, - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "definition": "query_result(raidName{job=\"snmp-exporter-synology-nas\",instance=\"$Device\"})", - "hide": 0, - "includeAll": true, - "label": "Volume ID", - "multi": true, - "name": "raidName", - "options": [], - "query": { - "query": "query_result(raidName{job=\"snmp-exporter-synology-nas\",instance=\"$Device\"})", - "refId": "StandardVariableQuery" - }, - "refresh": 2, - "regex": ".*raidName=\"(.*?)\".*", - "skipUrlSync": false, - "sort": 1, - "type": "query", - "useTags": false - }, - { - "current": { - "selected": false, - "text": "All", - "value": "$__all" - }, - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "definition": "query_result(storageIODevice{job=\"snmp-exporter-synology-nas\",instance=\"$Device\"})", - "hide": 0, - "includeAll": true, - "label": "Disk", - "multi": true, - "name": "storageIODevice", - "options": [], - "query": { - "query": "query_result(storageIODevice{job=\"snmp-exporter-synology-nas\",instance=\"$Device\"})", - "refId": "StandardVariableQuery" - }, - "refresh": 2, - "regex": ".*storageIODevice=\"(.*?)\".*", - "skipUrlSync": false, - "sort": 1, - "type": "query", - "useTags": false - }, - { - "current": { - "selected": false, - "text": "All", - "value": "$__all" - }, - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "definition": "query_result(spaceIODevice{job=\"snmp-exporter-synology-nas\",instance=\"$Device\"})", - "hide": 0, - "includeAll": true, - "label": "Volume Name", - "multi": true, - "name": "spaceIODevice", - "options": [], - "query": { - "query": "query_result(spaceIODevice{job=\"snmp-exporter-synology-nas\",instance=\"$Device\"})", - "refId": "StandardVariableQuery" - }, - "refresh": 2, - "regex": ".*spaceIODevice=\"(.*?)\".*", - "skipUrlSync": false, - "sort": 1, - "type": "query", - "useTags": false - } - ] - }, - "time": { - "from": "now-24h", - "to": "now" - }, - "timepicker": { - "hidden": false, - "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": "Synology SNMP DashBoard", - "uid": "N4Cl097iz", - "version": 6, - "weekStart": "" - } \ No newline at end of file diff --git a/kubernetes/apps/monitoring/exporters/snmp-exporter/synology-nas/kustomization.yaml b/kubernetes/apps/monitoring/exporters/snmp-exporter/synology-nas/kustomization.yaml index 1bf05c7d73..5dd7baca73 100644 --- a/kubernetes/apps/monitoring/exporters/snmp-exporter/synology-nas/kustomization.yaml +++ b/kubernetes/apps/monitoring/exporters/snmp-exporter/synology-nas/kustomization.yaml @@ -3,12 +3,3 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - ./helmrelease.yaml -configMapGenerator: - - name: snmp-exporter-synology-nas-dashboards - files: - - ./dashboards/synology-snmp-dashboard.json - options: - labels: - grafana_dashboard: "1" -generatorOptions: - disableNameSuffixHash: true diff --git a/kubernetes/apps/monitoring/gatus/app/dashboards/gatus.json b/kubernetes/apps/monitoring/gatus/app/dashboards/gatus.json index c39df3eb9f..fa3b12f465 100644 --- a/kubernetes/apps/monitoring/gatus/app/dashboards/gatus.json +++ b/kubernetes/apps/monitoring/gatus/app/dashboards/gatus.json @@ -1,582 +1,580 @@ { - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": "-- Grafana --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "gnetId": null, - "graphTooltip": 0, - "id": 3, - "links": [], - "panels": [ + "annotations": { + "list": [ { - "cacheTimeout": null, - "datasource": null, - "description": "Number of successful results compared to the total number of results during the current interval", - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 0 - }, - "id": 9, - "links": [], - "options": { - "fieldOptions": { - "calcs": [ - "mean" + "builtIn": 1, + "datasource": "-- Grafana --", + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": true, + "gnetId": null, + "graphTooltip": 0, + "id": 3, + "links": [], + "panels": [ + { + "cacheTimeout": null, + "datasource": null, + "description": "Number of successful results compared to the total number of results during the current interval", + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 0 + }, + "id": 9, + "links": [], + "options": { + "fieldOptions": { + "calcs": ["mean"], + "defaults": { + "mappings": [ + { + "id": 0, + "op": "=", + "text": "N/A", + "type": 1, + "value": "null" + } + ], + "max": 1, + "min": 0, + "nullValueMode": "connected", + "thresholds": [ + { + "color": "red", + "value": null + }, + { + "color": "semi-dark-orange", + "value": 0.6 + }, + { + "color": "yellow", + "value": 0.8 + }, + { + "color": "dark-green", + "value": 0.95 + } ], - "defaults": { - "mappings": [ - { - "id": 0, - "op": "=", - "text": "N/A", - "type": 1, - "value": "null" - } - ], - "max": 1, - "min": 0, - "nullValueMode": "connected", - "thresholds": [ - { - "color": "red", - "value": null - }, - { - "color": "semi-dark-orange", - "value": 0.6 - }, - { - "color": "yellow", - "value": 0.8 - }, - { - "color": "dark-green", - "value": 0.95 - } - ], - "unit": "percentunit" - }, - "override": {}, - "values": false + "unit": "percentunit" }, - "orientation": "horizontal", - "showThresholdLabels": false, - "showThresholdMarkers": false - }, - "pluginVersion": "6.4.4", - "targets": [ - { - "expr": "sum(rate(gatus_results_total{success=\"true\"}[30s])) by (key) / sum(rate(gatus_results_total[30s])) by (key)", - "hide": false, - "legendFormat": "{{key}}", - "refId": "B" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Success rate", - "type": "gauge" - }, - { - "aliasColors": {}, - "bars": false, - "cacheTimeout": null, - "dashLength": 10, - "dashes": false, - "datasource": null, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 0 - }, - "id": 11, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, + "override": {}, "values": false }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null as zero", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pluginVersion": "6.4.4", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "gatus_results_duration_seconds", - "format": "time_series", - "instant": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "{{key}}", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Response time", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null + "orientation": "horizontal", + "showThresholdLabels": false, + "showThresholdMarkers": false + }, + "pluginVersion": "6.4.4", + "targets": [ + { + "expr": "sum(rate(gatus_results_total{success=\"true\"}[30s])) by (key) / sum(rate(gatus_results_total[30s])) by (key)", + "hide": false, + "legendFormat": "{{key}}", + "refId": "B" } + ], + "timeFrom": null, + "timeShift": null, + "title": "Success rate", + "type": "gauge" + }, + { + "aliasColors": {}, + "bars": false, + "cacheTimeout": null, + "dashLength": 10, + "dashes": false, + "datasource": null, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 0 }, - { - "aliasColors": {}, - "bars": false, - "cacheTimeout": null, - "dashLength": 10, - "dashes": false, - "datasource": null, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 8 - }, - "id": 10, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "connected", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pluginVersion": "6.4.4", - "pointradius": 2, - "points": true, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "sum(rate(gatus_results_total{success=\"true\"}[30s])) by (key) / sum(rate(gatus_results_total[30s])) by (key)", - "format": "time_series", - "instant": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "{{key}}", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Success rate", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null + "id": 11, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null as zero", + "options": { + "dataLinks": [] + }, + "percentage": false, + "pluginVersion": "6.4.4", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "gatus_results_duration_seconds", + "format": "time_series", + "instant": false, + "interval": "", + "intervalFactor": 1, + "legendFormat": "{{key}}", + "refId": "A" } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Response time", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": null, - "description": "Number of results per minute", - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 8 - }, - "id": 2, - "interval": "", - "legend": { - "alignAsTable": false, - "avg": false, - "current": false, - "hideEmpty": false, - "hideZero": false, - "max": false, - "min": false, - "rightSide": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "sum(rate(gatus_results_total[5m])*60) by (key)", - "format": "time_series", - "hide": false, - "instant": false, - "interval": "30s", - "intervalFactor": 1, - "legendFormat": "{{key}}", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Total results per minute", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true }, - "yaxes": [ - { - "decimals": null, - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": false, + "cacheTimeout": null, + "dashLength": 10, + "dashes": false, + "datasource": null, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 8 }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": null, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 7, - "w": 12, - "x": 0, - "y": 16 - }, - "id": 5, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "sum(rate(gatus_results_total{success=\"true\"}[5m])*60) by (key)", - "instant": false, - "interval": "30s", - "legendFormat": "{{key}}", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Successful results per minute", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null + "id": 10, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "connected", + "options": { + "dataLinks": [] + }, + "percentage": false, + "pluginVersion": "6.4.4", + "pointradius": 2, + "points": true, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "sum(rate(gatus_results_total{success=\"true\"}[30s])) by (key) / sum(rate(gatus_results_total[30s])) by (key)", + "format": "time_series", + "instant": false, + "interval": "", + "intervalFactor": 1, + "legendFormat": "{{key}}", + "refId": "A" } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Success rate", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": null, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 7, - "w": 12, - "x": 12, - "y": 16 - }, - "id": 3, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "sum(rate(gatus_results_total{success=\"false\"}[5m])*60) by (key)", - "interval": "30s", - "legendFormat": "{{key}} ", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Unsuccessful results per minute", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true } + ], + "yaxis": { + "align": false, + "alignLevel": null } - ], - "refresh": "1m", - "schemaVersion": 20, - "style": "dark", - "tags": [], - "templating": { - "list": [] }, - "time": { - "from": "now-1h", - "to": "now" + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": null, + "description": "Number of results per minute", + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 8 + }, + "id": 2, + "interval": "", + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "hideEmpty": false, + "hideZero": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "dataLinks": [] + }, + "percentage": false, + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "sum(rate(gatus_results_total[5m])*60) by (key)", + "format": "time_series", + "hide": false, + "instant": false, + "interval": "30s", + "intervalFactor": 1, + "legendFormat": "{{key}}", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Total results per minute", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "decimals": null, + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } }, - "timepicker": { - "refresh_intervals": [ - "5s", - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ] + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": null, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 16 + }, + "id": 5, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "dataLinks": [] + }, + "percentage": false, + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "sum(rate(gatus_results_total{success=\"true\"}[5m])*60) by (key)", + "instant": false, + "interval": "30s", + "legendFormat": "{{key}}", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Successful results per minute", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "decimals": null, + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } }, - "timezone": "", - "title": "Gatus", - "uid": "KPI7Qj1Wk", - "version": 2 - } \ No newline at end of file + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": null, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 16 + }, + "id": 3, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "dataLinks": [] + }, + "percentage": false, + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "sum(rate(gatus_results_total{success=\"false\"}[5m])*60) by (key)", + "interval": "30s", + "legendFormat": "{{key}} ", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Unsuccessful results per minute", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + } + ], + "refresh": "1m", + "schemaVersion": 20, + "style": "dark", + "tags": [], + "templating": { + "list": [] + }, + "time": { + "from": "now-1h", + "to": "now" + }, + "timepicker": { + "refresh_intervals": [ + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ] + }, + "timezone": "", + "title": "Gatus", + "uid": "", + "version": 2 +} diff --git a/kubernetes/apps/monitoring/grafana/app/helmrelease.yaml b/kubernetes/apps/monitoring/grafana/app/helmrelease.yaml index fcccfc6421..ecced2d099 100644 --- a/kubernetes/apps/monitoring/grafana/app/helmrelease.yaml +++ b/kubernetes/apps/monitoring/grafana/app/helmrelease.yaml @@ -224,6 +224,13 @@ spec: gnetId: 763 revision: 5 datasource: Prometheus + smart: + # renovate: depName="S.M.A.R.T Dashboard" + gnetId: 13654 + revision: 2 + datasource: + - name: DS_PROMETHEUS + value: Prometheus speedtest-exporter: # renovate: depName="Speedtest-Exporter Dashboard" gnetId: 13665 @@ -238,6 +245,13 @@ spec: datasource: - name: DS_PROMETHEUS value: Prometheus + synology-nas-details: + # renovate: depName="Synology NAS Details" + gnetId: 14284 + revision: 9 + datasource: + - name: DS_PROMETHEUS + value: Prometheus ceph: ceph-cluster: # renovate: depName="Ceph Cluster" diff --git a/kubernetes/flux/repositories/helm/prometheus-community-charts.yaml b/kubernetes/flux/repositories/helm/prometheus-community-charts.yaml index 73f8affa2b..af69184e75 100644 --- a/kubernetes/flux/repositories/helm/prometheus-community-charts.yaml +++ b/kubernetes/flux/repositories/helm/prometheus-community-charts.yaml @@ -7,4 +7,4 @@ metadata: spec: type: oci interval: 5m - url: oci://ghcr.io/prometheus-community/charts \ No newline at end of file + url: oci://ghcr.io/prometheus-community/charts