From 4f67a43036ddc19743d1de7698f43585767c6f8b Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 16 Sep 2025 17:19:07 +0300 Subject: [PATCH] dashboard little fix --- nginx-metrics.json | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/nginx-metrics.json b/nginx-metrics.json index 7fddeb4..cefe6b5 100644 --- a/nginx-metrics.json +++ b/nginx-metrics.json @@ -18,7 +18,7 @@ "type": "prometheus", "uid": "prom" }, - "enable": true, + "enable": false, "expr": "sum(changes(nginx_ingress_controller_config_last_reload_successful_timestamp_seconds{instance!=\"unknown\",controller_class=~\"$controller_class\",namespace=~\"$namespace\"}[30s])) by (controller_class)", "hide": false, "iconColor": "rgba(255, 96, 96, 1)", @@ -36,7 +36,7 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, - "id": 40, + "id": 43, "links": [], "panels": [ { @@ -1437,6 +1437,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -1467,7 +1468,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": 0 }, { "color": "red", @@ -1494,11 +1496,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "multi", "sort": "none" } }, - "pluginVersion": "8.3.4", + "pluginVersion": "12.1.0", "targets": [ { "datasource": { @@ -1616,7 +1619,7 @@ "unit": "s" } }, - "pluginVersion": "10.4.3", + "pluginVersion": "12.1.0", "targets": [ { "datasource": { @@ -1658,7 +1661,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": 0 }, { "color": "red", @@ -1695,7 +1699,8 @@ "mode": "absolute", "steps": [ { - "color": "rgba(245, 54, 54, 0.9)" + "color": "rgba(245, 54, 54, 0.9)", + "value": 0 }, { "color": "rgba(237, 129, 40, 0.89)", @@ -1744,7 +1749,7 @@ }, "showHeader": true }, - "pluginVersion": "10.4.3", + "pluginVersion": "12.1.0", "targets": [ { "datasource": { @@ -1801,6 +1806,7 @@ "type": "query" }, { + "allValue": ".*", "current": { "text": "All", "value": "$__all" @@ -1929,5 +1935,5 @@ "timezone": "browser", "title": "NGINX Ingress controller metrics", "uid": "nginx-metrics-dashboard", - "version": 5 + "version": 2 } \ No newline at end of file