Skip to content

Commit 29ec94b

Browse files
edgarasgRulox
authored andcommitted
Set correct nginx_up query and instance variable expression
Signed-off-by: EdgarasG <[email protected]>
1 parent f017367 commit 29ec94b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

grafana/dashboard.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
"tableColumn": "",
137137
"targets": [
138138
{
139-
"expr": "nginx_up{instance=\"$instance\"}",
139+
"expr": "nginx_up{instance=~\"$instance\"}",
140140
"format": "time_series",
141141
"instant": false,
142142
"intervalFactor": 1,
@@ -486,14 +486,14 @@
486486
"allValue": null,
487487
"current": {},
488488
"datasource": "${DS_PROMETHEUS}",
489-
"definition": "label_values(instance)",
489+
"definition": "label_values(nginx_up, instance)",
490490
"hide": 0,
491491
"includeAll": true,
492492
"label": "",
493493
"multi": true,
494494
"name": "instance",
495495
"options": [],
496-
"query": "label_values(instance)",
496+
"query": "label_values(nginx_up, instance)",
497497
"refresh": 1,
498498
"regex": "",
499499
"skipUrlSync": false,
@@ -539,4 +539,4 @@
539539
"title": "NGINX",
540540
"uid": "MsjffzSZz",
541541
"version": 1
542-
}
542+
}

0 commit comments

Comments
 (0)