add nfs version selector

This commit is contained in:
tom.chivert 2025-04-22 18:34:45 +02:00
parent 07f55dae29
commit 0799a41a01

View File

@ -18,11 +18,9 @@
"description": "NFS Prometheus Dashboard", "description": "NFS Prometheus Dashboard",
"editable": true, "editable": true,
"fiscalYearStartMonth": 0, "fiscalYearStartMonth": 0,
"gnetId": 6257,
"graphTooltip": 0, "graphTooltip": 0,
"id": 30, "id": 13,
"links": [], "links": [],
"liveNow": false,
"panels": [ "panels": [
{ {
"datasource": { "datasource": {
@ -36,11 +34,13 @@
"mode": "palette-classic" "mode": "palette-classic"
}, },
"custom": { "custom": {
"axisBorderShow": false,
"axisCenteredZero": false, "axisCenteredZero": false,
"axisColorMode": "text", "axisColorMode": "text",
"axisLabel": "", "axisLabel": "",
"axisPlacement": "auto", "axisPlacement": "auto",
"barAlignment": 0, "barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line", "drawStyle": "line",
"fillOpacity": 20, "fillOpacity": 20,
"gradientMode": "none", "gradientMode": "none",
@ -50,7 +50,7 @@
"viz": false "viz": false
}, },
"insertNulls": false, "insertNulls": false,
"lineInterpolation": "linear", "lineInterpolation": "smooth",
"lineWidth": 1, "lineWidth": 1,
"pointSize": 5, "pointSize": 5,
"scaleDistribution": { "scaleDistribution": {
@ -72,8 +72,7 @@
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "green", "color": "green"
"value": null
}, },
{ {
"color": "red", "color": "red",
@ -92,7 +91,6 @@
"y": 0 "y": 0
}, },
"id": 243, "id": 243,
"links": [],
"options": { "options": {
"legend": { "legend": {
"calcs": [ "calcs": [
@ -108,11 +106,12 @@
"sortDesc": true "sortDesc": true
}, },
"tooltip": { "tooltip": {
"hideZeros": false,
"mode": "single", "mode": "single",
"sort": "none" "sort": "none"
} }
}, },
"pluginVersion": "10.1.1", "pluginVersion": "11.6.0",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -121,7 +120,7 @@
}, },
"disableTextWrap": false, "disableTextWrap": false,
"editorMode": "code", "editorMode": "code",
"expr": "sum by (instance) (rate(node_nfs_requests_total{instance=~\"$node\", job=~\"$job\", proto=\"4\"}[5m]))", "expr": "sum by (instance) (rate(node_nfs_requests_total{instance=~\"$node\"}[5m]))",
"format": "time_series", "format": "time_series",
"fullMetaSearch": false, "fullMetaSearch": false,
"hide": false, "hide": false,
@ -149,11 +148,13 @@
"mode": "palette-classic" "mode": "palette-classic"
}, },
"custom": { "custom": {
"axisBorderShow": false,
"axisCenteredZero": false, "axisCenteredZero": false,
"axisColorMode": "text", "axisColorMode": "text",
"axisLabel": "Connections", "axisLabel": "Connections",
"axisPlacement": "auto", "axisPlacement": "auto",
"barAlignment": 0, "barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line", "drawStyle": "line",
"fillOpacity": 20, "fillOpacity": 20,
"gradientMode": "none", "gradientMode": "none",
@ -163,7 +164,7 @@
"viz": false "viz": false
}, },
"insertNulls": false, "insertNulls": false,
"lineInterpolation": "linear", "lineInterpolation": "smooth",
"lineWidth": 1, "lineWidth": 1,
"pointSize": 5, "pointSize": 5,
"scaleDistribution": { "scaleDistribution": {
@ -185,8 +186,7 @@
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "green", "color": "green"
"value": null
}, },
{ {
"color": "red", "color": "red",
@ -205,7 +205,6 @@
"y": 10 "y": 10
}, },
"id": 267, "id": 267,
"links": [],
"options": { "options": {
"legend": { "legend": {
"calcs": [ "calcs": [
@ -221,11 +220,12 @@
"sortDesc": true "sortDesc": true
}, },
"tooltip": { "tooltip": {
"hideZeros": false,
"mode": "single", "mode": "single",
"sort": "none" "sort": "none"
} }
}, },
"pluginVersion": "10.1.1", "pluginVersion": "11.6.0",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -234,7 +234,7 @@
}, },
"disableTextWrap": false, "disableTextWrap": false,
"editorMode": "code", "editorMode": "code",
"expr": "sum by (method) (rate(node_nfs_requests_total{instance=~\"$node\", job=~\"$job\", proto=\"4\"}[5m]))", "expr": "sum by (method) (rate(node_nfs_requests_total{instance=~\"$node\"}[5m]))",
"format": "time_series", "format": "time_series",
"fullMetaSearch": false, "fullMetaSearch": false,
"hide": false, "hide": false,
@ -263,21 +263,23 @@
"mode": "palette-classic" "mode": "palette-classic"
}, },
"custom": { "custom": {
"axisBorderShow": false,
"axisCenteredZero": false, "axisCenteredZero": false,
"axisColorMode": "text", "axisColorMode": "text",
"axisLabel": "", "axisLabel": "",
"axisPlacement": "auto", "axisPlacement": "auto",
"barAlignment": 0, "barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line", "drawStyle": "line",
"fillOpacity": 10, "fillOpacity": 0,
"gradientMode": "hue", "gradientMode": "none",
"hideFrom": { "hideFrom": {
"legend": false, "legend": false,
"tooltip": false, "tooltip": false,
"viz": false "viz": false
}, },
"insertNulls": false, "insertNulls": false,
"lineInterpolation": "linear", "lineInterpolation": "smooth",
"lineStyle": { "lineStyle": {
"fill": "solid" "fill": "solid"
}, },
@ -302,8 +304,7 @@
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "green", "color": "green"
"value": null
}, },
{ {
"color": "red", "color": "red",
@ -322,7 +323,6 @@
"y": 20 "y": 20
}, },
"id": 268, "id": 268,
"links": [],
"options": { "options": {
"legend": { "legend": {
"calcs": [ "calcs": [
@ -335,11 +335,12 @@
"sortDesc": true "sortDesc": true
}, },
"tooltip": { "tooltip": {
"hideZeros": false,
"mode": "single", "mode": "single",
"sort": "none" "sort": "none"
} }
}, },
"pluginVersion": "10.1.1", "pluginVersion": "11.6.0",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -348,13 +349,13 @@
}, },
"disableTextWrap": false, "disableTextWrap": false,
"editorMode": "code", "editorMode": "code",
"expr": "100 - (node_filesystem_avail_bytes{instance=~\"$node\", job=\"$job\", fstype=\"nfs4\"} * 100 / node_filesystem_size_bytes{instance=~\"$node\", job=\"$job\", fstype=\"nfs4\"})", "expr": "avg(100 - (node_filesystem_avail_bytes{instance=~\"$node\", fstype=\"$type\"} * 100 / node_filesystem_size_bytes{instance=~\"$node\", fstype=\"$type\"})) by (mountpoint)",
"format": "time_series", "format": "time_series",
"fullMetaSearch": false, "fullMetaSearch": false,
"hide": false, "hide": false,
"includeNullMetadata": true, "includeNullMetadata": true,
"intervalFactor": 1, "intervalFactor": 1,
"legendFormat": "{{instance}} {{device}}", "legendFormat": "{{device}}",
"range": true, "range": true,
"refId": "C", "refId": "C",
"step": 240, "step": 240,
@ -377,13 +378,15 @@
"mode": "palette-classic" "mode": "palette-classic"
}, },
"custom": { "custom": {
"axisBorderShow": false,
"axisCenteredZero": false, "axisCenteredZero": false,
"axisColorMode": "text", "axisColorMode": "text",
"axisLabel": "", "axisLabel": "",
"axisPlacement": "auto", "axisPlacement": "auto",
"barAlignment": 0, "barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line", "drawStyle": "line",
"fillOpacity": 10, "fillOpacity": 0,
"gradientMode": "hue", "gradientMode": "hue",
"hideFrom": { "hideFrom": {
"legend": false, "legend": false,
@ -391,7 +394,7 @@
"viz": false "viz": false
}, },
"insertNulls": false, "insertNulls": false,
"lineInterpolation": "linear", "lineInterpolation": "smooth",
"lineStyle": { "lineStyle": {
"fill": "solid" "fill": "solid"
}, },
@ -416,8 +419,7 @@
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "green", "color": "green"
"value": null
}, },
{ {
"color": "red", "color": "red",
@ -436,7 +438,6 @@
"y": 20 "y": 20
}, },
"id": 269, "id": 269,
"links": [],
"options": { "options": {
"legend": { "legend": {
"calcs": [ "calcs": [
@ -449,11 +450,12 @@
"sortDesc": true "sortDesc": true
}, },
"tooltip": { "tooltip": {
"hideZeros": false,
"mode": "single", "mode": "single",
"sort": "none" "sort": "none"
} }
}, },
"pluginVersion": "10.1.1", "pluginVersion": "11.6.0",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -462,13 +464,13 @@
}, },
"disableTextWrap": false, "disableTextWrap": false,
"editorMode": "code", "editorMode": "code",
"expr": "node_filesystem_device_error{instance=~\"$node\", job=\"$job\", fstype=\"nfs4\"}", "expr": "avg(node_filesystem_device_error{instance=~\"$node\", fstype=\"$type\"}) by (mountpoint)",
"format": "time_series", "format": "time_series",
"fullMetaSearch": false, "fullMetaSearch": false,
"hide": false, "hide": false,
"includeNullMetadata": true, "includeNullMetadata": true,
"intervalFactor": 1, "intervalFactor": 1,
"legendFormat": "{{instance}} {{device}}", "legendFormat": "{{device}}",
"range": true, "range": true,
"refId": "C", "refId": "C",
"step": 240, "step": 240,
@ -479,65 +481,54 @@
"type": "timeseries" "type": "timeseries"
} }
], ],
"preload": false,
"refresh": "5m", "refresh": "5m",
"schemaVersion": 38, "schemaVersion": 41,
"style": "dark",
"tags": [], "tags": [],
"templating": { "templating": {
"list": [ "list": [
{ {
"current": { "current": {
"selected": false, "text": "All",
"text": "node", "value": "$__all"
"value": "node"
}, },
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "yPhvsDP7k" "uid": "yPhvsDP7k"
}, },
"definition": "", "definition": "label_values(node_boot_time_seconds,instance)",
"hide": 2, "includeAll": true,
"includeAll": false, "label": "Host:",
"label": "Job", "name": "node",
"multi": false,
"name": "job",
"options": [], "options": [],
"query": "label_values(node_boot_time_seconds, job)", "query": {
"qryType": 1,
"query": "label_values(node_boot_time_seconds,instance)",
"refId": "PrometheusVariableQueryEditor-VariableQuery"
},
"refresh": 1, "refresh": 1,
"regex": "", "regex": "",
"skipUrlSync": false,
"sort": 1, "sort": 1,
"tagValuesQuery": "", "type": "query"
"tagsQuery": "",
"type": "query",
"useTags": false
}, },
{ {
"current": { "current": {
"selected": true, "text": "All",
"text": [], "value": "$__all"
"value": []
}, },
"datasource": { "definition": "label_values(node_filesystem_avail_bytes{instance=~\"$node\"},fstype)",
"type": "prometheus",
"uid": "yPhvsDP7k"
},
"definition": "",
"hide": 0,
"includeAll": true, "includeAll": true,
"label": "Host:", "label": "Type",
"multi": true, "name": "type",
"name": "node",
"options": [], "options": [],
"query": "label_values(node_boot_time_seconds{job=~\"$job\"}, instance)", "query": {
"qryType": 1,
"query": "label_values(node_filesystem_avail_bytes{instance=~\"$node\"},fstype)",
"refId": "PrometheusVariableQueryEditor-VariableQuery"
},
"refresh": 1, "refresh": 1,
"regex": "", "regex": "/^nfs4?.*/",
"skipUrlSync": false, "type": "query"
"sort": 1,
"tagValuesQuery": "",
"tagsQuery": "",
"type": "query",
"useTags": false
} }
] ]
}, },
@ -545,34 +536,9 @@
"from": "now-24h", "from": "now-24h",
"to": "now" "to": "now"
}, },
"timepicker": { "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", "timezone": "browser",
"title": "NFS", "title": "NFS",
"uid": "cc0d5bef-8b9d-47df-8be7-cf75c3efeece", "uid": "cc0d5bef-8b9d-47df-8be7-cf75c3efeece",
"version": 12, "version": 3
"weekStart": ""
} }