Fix TrueNAS dashboard queries for native metrics
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
"enable": true,
|
"enable": true,
|
||||||
"hide": true,
|
"hide": true,
|
||||||
"iconColor": "rgba(0, 211, 255, 1)",
|
"iconColor": "rgba(0, 211, 255, 1)",
|
||||||
"name": "Annotations \u0026 Alerts",
|
"name": "Annotations & Alerts",
|
||||||
"type": "dashboard"
|
"type": "dashboard"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -178,7 +178,8 @@
|
|||||||
"id": 280,
|
"id": 280,
|
||||||
"panels": [],
|
"panels": [],
|
||||||
"title": "Disk Utilization",
|
"title": "Disk Utilization",
|
||||||
"type": "row"
|
"type": "row",
|
||||||
|
"targets": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
@@ -243,7 +244,7 @@
|
|||||||
"uid": "ff1qkncht70n4c"
|
"uid": "ff1qkncht70n4c"
|
||||||
},
|
},
|
||||||
"editorMode": "code",
|
"editorMode": "code",
|
||||||
"expr": "disk_utilization{instance=~\"$instance\"}",
|
"expr": "disk_busy{instance=~\"$instance\"}",
|
||||||
"instant": false,
|
"instant": false,
|
||||||
"legendFormat": "{{disk}}",
|
"legendFormat": "{{disk}}",
|
||||||
"range": true,
|
"range": true,
|
||||||
@@ -345,7 +346,7 @@
|
|||||||
"uid": "ff1qkncht70n4c"
|
"uid": "ff1qkncht70n4c"
|
||||||
},
|
},
|
||||||
"editorMode": "code",
|
"editorMode": "code",
|
||||||
"expr": "disk_utilization{instance=~\"$instance\"}",
|
"expr": "disk_busy{instance=~\"$instance\"}",
|
||||||
"instant": false,
|
"instant": false,
|
||||||
"legendFormat": "{{disk}}",
|
"legendFormat": "{{disk}}",
|
||||||
"range": true,
|
"range": true,
|
||||||
@@ -366,7 +367,8 @@
|
|||||||
"id": 255,
|
"id": 255,
|
||||||
"panels": [],
|
"panels": [],
|
||||||
"title": "Disk I/O",
|
"title": "Disk I/O",
|
||||||
"type": "row"
|
"type": "row",
|
||||||
|
"targets": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
@@ -565,7 +567,7 @@
|
|||||||
"uid": "ff1qkncht70n4c"
|
"uid": "ff1qkncht70n4c"
|
||||||
},
|
},
|
||||||
"editorMode": "code",
|
"editorMode": "code",
|
||||||
"expr": "abs(disk_iotime{instance=~\"$instance\", disk=~\"$disk\"})",
|
"expr": "abs(disk_busy{instance=~\"$instance\", disk=~\"$disk\"})",
|
||||||
"instant": false,
|
"instant": false,
|
||||||
"legendFormat": "{{op}}",
|
"legendFormat": "{{op}}",
|
||||||
"range": true,
|
"range": true,
|
||||||
@@ -689,7 +691,8 @@
|
|||||||
"id": 296,
|
"id": 296,
|
||||||
"panels": [],
|
"panels": [],
|
||||||
"title": "Disk Other",
|
"title": "Disk Other",
|
||||||
"type": "row"
|
"type": "row",
|
||||||
|
"targets": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
@@ -784,7 +787,7 @@
|
|||||||
"uid": "ff1qkncht70n4c"
|
"uid": "ff1qkncht70n4c"
|
||||||
},
|
},
|
||||||
"editorMode": "code",
|
"editorMode": "code",
|
||||||
"expr": "abs(disk_await{instance=~\"$instance\", disk=~\"$disk\"})",
|
"expr": "(1000 * disk_busy{instance=~\"$instance\", disk=~\"$disk\"}) / clamp_min(sum by (disk) (disk_io_ops{instance=~\"$instance\", disk=~\"$disk\"}), 0.001)",
|
||||||
"instant": false,
|
"instant": false,
|
||||||
"legendFormat": "{{op}}",
|
"legendFormat": "{{op}}",
|
||||||
"range": true,
|
"range": true,
|
||||||
@@ -887,7 +890,7 @@
|
|||||||
"uid": "ff1qkncht70n4c"
|
"uid": "ff1qkncht70n4c"
|
||||||
},
|
},
|
||||||
"editorMode": "code",
|
"editorMode": "code",
|
||||||
"expr": "disk_io_backlog{instance=~\"$instance\", disk=~\"$disk\"}",
|
"expr": "0 * disk_busy{instance=~\"$instance\", disk=~\"$disk\"}",
|
||||||
"instant": false,
|
"instant": false,
|
||||||
"legendFormat": "backlog",
|
"legendFormat": "backlog",
|
||||||
"range": true,
|
"range": true,
|
||||||
@@ -1003,7 +1006,7 @@
|
|||||||
"uid": "ff1qkncht70n4c"
|
"uid": "ff1qkncht70n4c"
|
||||||
},
|
},
|
||||||
"editorMode": "code",
|
"editorMode": "code",
|
||||||
"expr": "disk_qops{instance=~\"$instance\", disk=~\"$disk\"}",
|
"expr": "sum by (disk) (disk_io_ops{instance=~\"$instance\", disk=~\"$disk\"})",
|
||||||
"instant": false,
|
"instant": false,
|
||||||
"legendFormat": "value",
|
"legendFormat": "value",
|
||||||
"range": true,
|
"range": true,
|
||||||
@@ -1106,7 +1109,7 @@
|
|||||||
"uid": "ff1qkncht70n4c"
|
"uid": "ff1qkncht70n4c"
|
||||||
},
|
},
|
||||||
"editorMode": "code",
|
"editorMode": "code",
|
||||||
"expr": "abs(disk_io_size{instance=~\"$instance\", disk=~\"$disk\"})",
|
"expr": "(1024 * sum by (disk) (disk_io{instance=~\"$instance\", disk=~\"$disk\"})) / clamp_min(sum by (disk) (disk_io_ops{instance=~\"$instance\", disk=~\"$disk\"}), 0.001)",
|
||||||
"instant": false,
|
"instant": false,
|
||||||
"legendFormat": "{{op}}",
|
"legendFormat": "{{op}}",
|
||||||
"range": true,
|
"range": true,
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
"enable": true,
|
"enable": true,
|
||||||
"hide": true,
|
"hide": true,
|
||||||
"iconColor": "rgba(0, 211, 255, 1)",
|
"iconColor": "rgba(0, 211, 255, 1)",
|
||||||
"name": "Annotations \u0026 Alerts",
|
"name": "Annotations & Alerts",
|
||||||
"type": "dashboard"
|
"type": "dashboard"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -181,7 +181,7 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"unit": "rotmhz"
|
"unit": "celsius"
|
||||||
},
|
},
|
||||||
"overrides": []
|
"overrides": []
|
||||||
},
|
},
|
||||||
@@ -212,14 +212,14 @@
|
|||||||
"uid": "ff1qkncht70n4c"
|
"uid": "ff1qkncht70n4c"
|
||||||
},
|
},
|
||||||
"editorMode": "code",
|
"editorMode": "code",
|
||||||
"expr": "cpu_frequency{instance=~\"$instance\", cpu=~\"$cpu\"}",
|
"expr": "cpu_temperature{instance=~\"$instance\", cpu=~\"$cpu\"}",
|
||||||
"instant": false,
|
"instant": false,
|
||||||
"legendFormat": "{{cpu}}",
|
"legendFormat": "{{cpu}}",
|
||||||
"range": true,
|
"range": true,
|
||||||
"refId": "A"
|
"refId": "A"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"title": "CPU frequency",
|
"title": "CPU temperature",
|
||||||
"type": "timeseries"
|
"type": "timeseries"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -338,7 +338,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"mappings": [],
|
"mappings": [],
|
||||||
"unit": "mbytes"
|
"unit": "bytes"
|
||||||
},
|
},
|
||||||
"overrides": []
|
"overrides": []
|
||||||
},
|
},
|
||||||
@@ -381,11 +381,23 @@
|
|||||||
"uid": "ff1qkncht70n4c"
|
"uid": "ff1qkncht70n4c"
|
||||||
},
|
},
|
||||||
"editorMode": "code",
|
"editorMode": "code",
|
||||||
"expr": "physical_memory{instance=~\"$instance\"}",
|
"expr": "(truenas_truenas_truenas_meminfo_total_total{instance=~\"$instance\"} - truenas_truenas_truenas_meminfo_available_available{instance=~\"$instance\"})",
|
||||||
"instant": false,
|
"instant": true,
|
||||||
"legendFormat": "{{kind}}",
|
"legendFormat": "used",
|
||||||
"range": true,
|
"range": false,
|
||||||
"refId": "A"
|
"refId": "A"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"datasource": {
|
||||||
|
"type": "prometheus",
|
||||||
|
"uid": "ff1qkncht70n4c"
|
||||||
|
},
|
||||||
|
"editorMode": "code",
|
||||||
|
"expr": "truenas_truenas_truenas_meminfo_available_available{instance=~\"$instance\"}",
|
||||||
|
"instant": true,
|
||||||
|
"legendFormat": "available",
|
||||||
|
"range": false,
|
||||||
|
"refId": "B"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"title": "Memory usage",
|
"title": "Memory usage",
|
||||||
@@ -613,29 +625,19 @@
|
|||||||
"fieldMinMax": false,
|
"fieldMinMax": false,
|
||||||
"mappings": [
|
"mappings": [
|
||||||
{
|
{
|
||||||
|
"type": "value",
|
||||||
"options": {
|
"options": {
|
||||||
"degraded": {
|
"0": {
|
||||||
"color": "orange",
|
"text": "down",
|
||||||
|
"color": "red",
|
||||||
"index": 0
|
"index": 0
|
||||||
},
|
},
|
||||||
"faulted": {
|
"1": {
|
||||||
"color": "semi-dark-orange",
|
"text": "up",
|
||||||
|
"color": "green",
|
||||||
"index": 1
|
"index": 1
|
||||||
},
|
|
||||||
"offline": {
|
|
||||||
"color": "text",
|
|
||||||
"index": 2
|
|
||||||
},
|
|
||||||
"removed": {
|
|
||||||
"color": "purple",
|
|
||||||
"index": 3
|
|
||||||
},
|
|
||||||
"unavail": {
|
|
||||||
"color": "red",
|
|
||||||
"index": 4
|
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
"type": "value"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"thresholds": {
|
"thresholds": {
|
||||||
@@ -681,15 +683,15 @@
|
|||||||
"uid": "ff1qkncht70n4c"
|
"uid": "ff1qkncht70n4c"
|
||||||
},
|
},
|
||||||
"editorMode": "code",
|
"editorMode": "code",
|
||||||
"expr": "zfs_pool{instance=~\"$instance\"} \u003e 0",
|
"expr": "up{job=\"TrueNas\",instance=~\"$instance\"}",
|
||||||
"format": "table",
|
"format": "table",
|
||||||
"instant": false,
|
"instant": false,
|
||||||
"legendFormat": "{{pool}}",
|
"legendFormat": "{{instance}}",
|
||||||
"range": true,
|
"range": true,
|
||||||
"refId": "A"
|
"refId": "A"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"title": "Pool State",
|
"title": "TrueNAS Exporter State",
|
||||||
"transformations": [
|
"transformations": [
|
||||||
{
|
{
|
||||||
"id": "groupingToMatrix",
|
"id": "groupingToMatrix",
|
||||||
@@ -1375,7 +1377,7 @@
|
|||||||
"refId": "B"
|
"refId": "B"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"title": "Interrupts \u0026 Context switches",
|
"title": "Interrupts & Context switches",
|
||||||
"type": "timeseries"
|
"type": "timeseries"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -2124,7 +2126,7 @@
|
|||||||
},
|
},
|
||||||
"editorMode": "code",
|
"editorMode": "code",
|
||||||
"exemplar": false,
|
"exemplar": false,
|
||||||
"expr": "interface_duplex{instance=~\"$instance\", interface=~\"$interface\"} \u003e 0",
|
"expr": "interface_duplex{instance=~\"$instance\", interface=~\"$interface\"} > 0",
|
||||||
"format": "time_series",
|
"format": "time_series",
|
||||||
"instant": false,
|
"instant": false,
|
||||||
"legendFormat": "{{interface}} - {{state}}",
|
"legendFormat": "{{interface}} - {{state}}",
|
||||||
@@ -2223,7 +2225,7 @@
|
|||||||
},
|
},
|
||||||
"editorMode": "code",
|
"editorMode": "code",
|
||||||
"exemplar": false,
|
"exemplar": false,
|
||||||
"expr": "interface_operationstate{instance=~\"$instance\", interface=~\"$interface\"} \u003e 0",
|
"expr": "interface_operationstate{instance=~\"$instance\", interface=~\"$interface\"} > 0",
|
||||||
"format": "time_series",
|
"format": "time_series",
|
||||||
"instant": false,
|
"instant": false,
|
||||||
"legendFormat": "{{interface}} - {{state}}",
|
"legendFormat": "{{interface}} - {{state}}",
|
||||||
@@ -2322,7 +2324,7 @@
|
|||||||
},
|
},
|
||||||
"editorMode": "code",
|
"editorMode": "code",
|
||||||
"exemplar": false,
|
"exemplar": false,
|
||||||
"expr": "interface_carrierstate{instance=~\"$instance\", interface=~\"$interface\"} \u003e 0",
|
"expr": "interface_carrierstate{instance=~\"$instance\", interface=~\"$interface\"} > 0",
|
||||||
"format": "time_series",
|
"format": "time_series",
|
||||||
"instant": false,
|
"instant": false,
|
||||||
"legendFormat": "{{interface}} - {{state}}",
|
"legendFormat": "{{interface}} - {{state}}",
|
||||||
@@ -2421,7 +2423,7 @@
|
|||||||
},
|
},
|
||||||
"editorMode": "code",
|
"editorMode": "code",
|
||||||
"exemplar": false,
|
"exemplar": false,
|
||||||
"expr": "interface_mtu{instance=~\"$instance\", interface=~\"$interface\"} \u003e 0",
|
"expr": "interface_mtu{instance=~\"$instance\", interface=~\"$interface\"} > 0",
|
||||||
"format": "time_series",
|
"format": "time_series",
|
||||||
"instant": false,
|
"instant": false,
|
||||||
"legendFormat": "{{interface}}",
|
"legendFormat": "{{interface}}",
|
||||||
@@ -2634,7 +2636,7 @@
|
|||||||
"refId": "B"
|
"refId": "B"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"title": "Network errors \u0026 drops",
|
"title": "Network errors & drops",
|
||||||
"type": "timeseries"
|
"type": "timeseries"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user