diff --git a/CHANGELOG.md b/CHANGELOG.md index f43b2c2..baf3a7e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,7 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed -- +- Draw network and disk I/O graphs with centered symmetric zero in Grafana dashboard by [@XuehaiPan](https://github.com/XuehaiPan). ### Fixed diff --git a/nvitop-exporter/grafana/dashboard.json b/nvitop-exporter/grafana/dashboard.json index 4fda98a..5c0f7d2 100644 --- a/nvitop-exporter/grafana/dashboard.json +++ b/nvitop-exporter/grafana/dashboard.json @@ -21,7 +21,7 @@ "type": "grafana", "id": "grafana", "name": "Grafana", - "version": "11.3.1" + "version": "12.0.2" }, { "type": "datasource", @@ -29,6 +29,12 @@ "name": "Prometheus", "version": "1.0.0" }, + { + "type": "panel", + "id": "stat", + "name": "Stat", + "version": "" + }, { "type": "panel", "id": "table", @@ -594,6 +600,10 @@ }, "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "disableTextWrap": false, "editorMode": "builder", "exemplar": false, @@ -1698,11 +1708,12 @@ }, "custom": { "axisBorderShow": false, - "axisCenteredZero": false, + "axisCenteredZero": true, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "axisSoftMax": 1, + "axisSoftMin": -1, "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", @@ -1730,9 +1741,22 @@ "mode": "off" } }, - "min": 0, "unit": "MiBs" - } + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "/.* TX$/" + }, + "properties": [ + { + "id": "custom.transform", + "value": "negative-Y" + } + ] + } + ] }, "gridPos": { "h": 14, @@ -1811,11 +1835,12 @@ }, "custom": { "axisBorderShow": false, - "axisCenteredZero": false, + "axisCenteredZero": true, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "axisSoftMax": 1, + "axisSoftMin": -1, "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", @@ -1844,7 +1869,21 @@ } }, "unit": "MiBs" - } + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "/.* Write$/" + }, + "properties": [ + { + "id": "custom.transform", + "value": "negative-Y" + } + ] + } + ] }, "gridPos": { "h": 14, @@ -2689,9 +2728,8 @@ "type": "timeseries" } ], - "preload": true, "refresh": "5s", - "schemaVersion": 40, + "schemaVersion": 41, "tags": [ "nvitop", "nvitop-exporter", @@ -2738,7 +2776,7 @@ ] }, "time": { - "from": "now-6h", + "from": "now-24h", "to": "now" }, "timepicker": {},