Files
homelab-optimized/archive/deprecated-monitoring-stacks/grafana/dashboards/synology-monitoring.json
Gitea Mirror Bot fb00a325d1
Some checks failed
Documentation / Build Docusaurus (push) Failing after 5m14s
Documentation / Deploy to GitHub Pages (push) Has been skipped
Sanitized mirror from private repository - 2026-04-18 11:19:59 UTC
2026-04-18 11:19:59 +00:00

352 lines
7.3 KiB
JSON

{
"uid": "synology-dashboard-v2",
"title": "Synology NAS Monitoring",
"tags": [
"synology",
"nas",
"snmp"
],
"timezone": "browser",
"schemaVersion": 38,
"version": 1,
"refresh": "30s",
"templating": {
"list": [
{
"current": {},
"hide": 0,
"includeAll": false,
"label": "Data Source",
"multi": false,
"name": "datasource",
"options": [],
"query": "prometheus",
"refresh": 1,
"type": "datasource"
},
{
"allValue": "",
"current": {},
"datasource": {
"type": "prometheus",
"uid": "eeyq1w1zddtkwb"
},
"definition": "label_values(ssCpuRawIdle, job)",
"hide": 0,
"includeAll": true,
"label": "NAS",
"multi": true,
"name": "job",
"query": "label_values(ssCpuRawIdle, job)",
"refresh": 1,
"regex": "",
"sort": 1,
"type": "query"
}
]
},
"panels": [
{
"id": 1,
"type": "stat",
"title": "NAS Status",
"gridPos": {
"h": 4,
"w": 24,
"x": 0,
"y": 0
},
"datasource": {
"type": "prometheus",
"uid": "eeyq1w1zddtkwb"
},
"fieldConfig": {
"defaults": {
"mappings": [
{
"type": "value",
"options": {
"0": {
"text": "DOWN",
"color": "red"
},
"1": {
"text": "UP",
"color": "green"
}
}
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "red",
"value": null
},
{
"color": "green",
"value": 1
}
]
}
}
},
"options": {
"colorMode": "background",
"textMode": "value_and_name",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
]
}
},
"targets": [
{
"expr": "up{job=~\"$job\"}",
"legendFormat": "{{job}}",
"refId": "A"
}
]
},
{
"id": 2,
"type": "gauge",
"title": "CPU Usage",
"gridPos": {
"h": 6,
"w": 8,
"x": 0,
"y": 4
},
"datasource": {
"type": "prometheus",
"uid": "eeyq1w1zddtkwb"
},
"fieldConfig": {
"defaults": {
"unit": "percent",
"min": 0,
"max": 100,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "yellow",
"value": 60
},
{
"color": "red",
"value": 80
}
]
}
}
},
"options": {
"reduceOptions": {
"calcs": [
"lastNotNull"
]
}
},
"targets": [
{
"expr": "100 - ((ssCpuRawIdle{job=~\"$job\"} / (ssCpuRawUser{job=~\"$job\"} + ssCpuRawSystem{job=~\"$job\"} + ssCpuRawIdle{job=~\"$job\"} + ssCpuRawWait{job=~\"$job\"})) * 100)",
"legendFormat": "{{job}}",
"refId": "A"
}
]
},
{
"id": 3,
"type": "gauge",
"title": "Memory Usage",
"gridPos": {
"h": 6,
"w": 8,
"x": 8,
"y": 4
},
"datasource": {
"type": "prometheus",
"uid": "eeyq1w1zddtkwb"
},
"fieldConfig": {
"defaults": {
"unit": "percent",
"min": 0,
"max": 100,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "yellow",
"value": 70
},
{
"color": "red",
"value": 90
}
]
}
}
},
"options": {
"reduceOptions": {
"calcs": [
"lastNotNull"
]
}
},
"targets": [
{
"expr": "((memTotalReal{job=~\"$job\"} - memAvailReal{job=~\"$job\"}) / memTotalReal{job=~\"$job\"}) * 100",
"legendFormat": "{{job}}",
"refId": "A"
}
]
},
{
"id": 4,
"type": "stat",
"title": "Total Memory",
"gridPos": {
"h": 6,
"w": 8,
"x": 16,
"y": 4
},
"datasource": {
"type": "prometheus",
"uid": "eeyq1w1zddtkwb"
},
"fieldConfig": {
"defaults": {
"unit": "decbytes",
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "blue",
"value": null
}
]
}
}
},
"options": {
"colorMode": "value",
"graphMode": "none",
"reduceOptions": {
"calcs": [
"lastNotNull"
]
}
},
"targets": [
{
"expr": "memTotalReal{job=~\"$job\"} * 1024",
"legendFormat": "{{job}}",
"refId": "A"
}
]
},
{
"id": 5,
"type": "timeseries",
"title": "Load Average",
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 10
},
"datasource": {
"type": "prometheus",
"uid": "eeyq1w1zddtkwb"
},
"options": {
"legend": {
"displayMode": "table",
"placement": "right",
"calcs": [
"mean"
]
}
},
"targets": [
{
"expr": "laLoad{job=~\"$job\", laIndex=\"1\"}",
"legendFormat": "{{job}} 1m",
"refId": "A"
},
{
"expr": "laLoad{job=~\"$job\", laIndex=\"2\"}",
"legendFormat": "{{job}} 5m",
"refId": "B"
},
{
"expr": "laLoad{job=~\"$job\", laIndex=\"3\"}",
"legendFormat": "{{job}} 15m",
"refId": "C"
}
]
},
{
"id": 6,
"type": "stat",
"title": "Uptime",
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 10
},
"datasource": {
"type": "prometheus",
"uid": "eeyq1w1zddtkwb"
},
"fieldConfig": {
"defaults": {
"unit": "s",
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
}
},
"options": {
"colorMode": "value",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
]
}
},
"targets": [
{
"expr": "sysUpTime{job=~\"$job\"} / 100",
"legendFormat": "{{job}}",
"refId": "A"
}
]
}
]
}