You've already forked nginx_exporter
mirror of
https://github.com/nginxinc/nginx-prometheus-exporter.git
synced 2025-07-31 21:04:21 +03:00
Set correct nginx_up query and instance variable expression
Signed-off-by: EdgarasG <edgaras.giedre@hostinger.com>
This commit is contained in:
@ -136,7 +136,7 @@
|
|||||||
"tableColumn": "",
|
"tableColumn": "",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"expr": "nginx_up{instance=\"$instance\"}",
|
"expr": "nginx_up{instance=~\"$instance\"}",
|
||||||
"format": "time_series",
|
"format": "time_series",
|
||||||
"instant": false,
|
"instant": false,
|
||||||
"intervalFactor": 1,
|
"intervalFactor": 1,
|
||||||
@ -486,14 +486,14 @@
|
|||||||
"allValue": null,
|
"allValue": null,
|
||||||
"current": {},
|
"current": {},
|
||||||
"datasource": "${DS_PROMETHEUS}",
|
"datasource": "${DS_PROMETHEUS}",
|
||||||
"definition": "label_values(instance)",
|
"definition": "label_values(nginx_up, instance)",
|
||||||
"hide": 0,
|
"hide": 0,
|
||||||
"includeAll": true,
|
"includeAll": true,
|
||||||
"label": "",
|
"label": "",
|
||||||
"multi": true,
|
"multi": true,
|
||||||
"name": "instance",
|
"name": "instance",
|
||||||
"options": [],
|
"options": [],
|
||||||
"query": "label_values(instance)",
|
"query": "label_values(nginx_up, instance)",
|
||||||
"refresh": 1,
|
"refresh": 1,
|
||||||
"regex": "",
|
"regex": "",
|
||||||
"skipUrlSync": false,
|
"skipUrlSync": false,
|
||||||
@ -539,4 +539,4 @@
|
|||||||
"title": "NGINX",
|
"title": "NGINX",
|
||||||
"uid": "MsjffzSZz",
|
"uid": "MsjffzSZz",
|
||||||
"version": 1
|
"version": 1
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user