From 29ec94bdee98668e358efac7316bd8d12b05a130 Mon Sep 17 00:00:00 2001 From: EdgarasG Date: Tue, 13 Aug 2019 23:47:48 +0300 Subject: [PATCH] Set correct nginx_up query and instance variable expression Signed-off-by: EdgarasG --- grafana/dashboard.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/grafana/dashboard.json b/grafana/dashboard.json index 806d2bd..a2fb585 100644 --- a/grafana/dashboard.json +++ b/grafana/dashboard.json @@ -136,7 +136,7 @@ "tableColumn": "", "targets": [ { - "expr": "nginx_up{instance=\"$instance\"}", + "expr": "nginx_up{instance=~\"$instance\"}", "format": "time_series", "instant": false, "intervalFactor": 1, @@ -486,14 +486,14 @@ "allValue": null, "current": {}, "datasource": "${DS_PROMETHEUS}", - "definition": "label_values(instance)", + "definition": "label_values(nginx_up, instance)", "hide": 0, "includeAll": true, "label": "", "multi": true, "name": "instance", "options": [], - "query": "label_values(instance)", + "query": "label_values(nginx_up, instance)", "refresh": 1, "regex": "", "skipUrlSync": false, @@ -539,4 +539,4 @@ "title": "NGINX", "uid": "MsjffzSZz", "version": 1 -} \ No newline at end of file +}