Only show Gerrit instances in the instance dropdowns

A variable was used to select the Gerrit instance to observe in the
dashboards. Since the instance label is set for all targets that
prometheus scrapes, the variable would also contain e.g. the prometheus
instance.

Now only Gerrit instances are displayed by further filtering for a
metric specific for Gerrit.

Change-Id: I392b2ddf53a0ea49db25018dc5d37d269365812a
This commit is contained in:
Thomas Draebing 2020-04-03 11:37:27 +02:00
parent 623332e4b3
commit 442bf6fb98
6 changed files with 15 additions and 15 deletions

View file

@ -638,14 +638,14 @@
"value": ""
},
"datasource": "Prometheus",
"definition": "label_values(instance)",
"definition": "label_values(git_upload_pack_phase_writing_total, instance)",
"hide": 0,
"includeAll": false,
"label": "Gerrit Instance",
"multi": false,
"name": "instance",
"options": [],
"query": "label_values(instance)",
"query": "label_values(git_upload_pack_phase_writing_total, instance)",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
@ -680,4 +680,4 @@
"title": "Caches",
"uid": "vHQVaGsWk",
"version": 15
}
}

View file

@ -421,14 +421,14 @@
"value": ""
},
"datasource": "Prometheus",
"definition": "label_values(instance)",
"definition": "label_values(git_upload_pack_phase_writing_total, instance)",
"hide": 0,
"includeAll": false,
"label": "Gerrit Instance",
"multi": false,
"name": "instance",
"options": [],
"query": "label_values(instance)",
"query": "label_values(git_upload_pack_phase_writing_total, instance)",
"refresh": 1,
"regex": "",
"skipUrlSync": false,

View file

@ -1161,14 +1161,14 @@
"value": ""
},
"datasource": "Prometheus",
"definition": "label_values(instance)",
"definition": "label_values(git_upload_pack_phase_writing_total, instance)",
"hide": 0,
"includeAll": false,
"label": "Gerrit Instance",
"multi": false,
"name": "instance",
"options": [],
"query": "label_values(instance)",
"query": "label_values(git_upload_pack_phase_writing_total, instance)",
"refresh": 1,
"regex": "",
"skipUrlSync": false,

View file

@ -722,14 +722,14 @@
"value": ""
},
"datasource": "Prometheus",
"definition": "label_values(instance)",
"definition": "label_values(git_upload_pack_phase_writing_total, instance)",
"hide": 0,
"includeAll": false,
"label": "Gerrit Instance",
"multi": false,
"name": "instance",
"options": [],
"query": "label_values(instance)",
"query": "label_values(git_upload_pack_phase_writing_total, instance)",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
@ -764,4 +764,4 @@
"title": "Process",
"uid": "MeOVgCPWz",
"version": 4
}
}

View file

@ -1062,14 +1062,14 @@
"value": ""
},
"datasource": "Prometheus",
"definition": "label_values(instance)",
"definition": "label_values(git_upload_pack_phase_writing_total, instance)",
"hide": 0,
"includeAll": false,
"label": "Gerrit Instance",
"multi": false,
"name": "instance",
"options": [],
"query": "label_values(instance)",
"query": "label_values(git_upload_pack_phase_writing_total, instance)",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
@ -1104,4 +1104,4 @@
"title": "Queues",
"uid": "Zh_ncGsWk",
"version": 5
}
}

View file

@ -207,14 +207,14 @@
"value": ""
},
"datasource": "Prometheus",
"definition": "label_values(instance)",
"definition": "label_values(git_upload_pack_phase_writing_total, instance)",
"hide": 0,
"includeAll": false,
"label": "Gerrit Instance",
"multi": false,
"name": "instance",
"options": [],
"query": "label_values(instance)",
"query": "label_values(git_upload_pack_phase_writing_total, instance)",
"refresh": 1,
"regex": "",
"skipUrlSync": false,