Remove/improve unused variables and weird doc comments

Signed-off-by: beorn7 <beorn@grafana.com>
This commit is contained in:
beorn7 2019-06-28 15:41:31 +02:00
parent 7a25a2586d
commit 52707535b8
2 changed files with 3 additions and 4 deletions

View file

@ -1,8 +1,9 @@
{
_config+:: {
// Selectors are inserted between {} in Prometheus queries.
// prometheusSelector is inserted as part of the label selector in
// PromQL queries to identify metrics collected from Prometheus
// servers.
prometheusSelector: 'job="prometheus"',
alertmanagerSelector: 'job="alertmanager"',
// prometheusName is inserted into annotations to name the Prometheus
// instance affected by the alert.

View file

@ -6,8 +6,6 @@ local g = import 'grafana-builder/grafana.libsonnet';
g.dashboard('Prometheus')
.addMultiTemplate('job', 'prometheus_build_info', 'job')
.addMultiTemplate('instance', 'prometheus_build_info', 'instance')
# Prometheus is quite commonly configured with honor_labels set to true;
# therefore job and instance is not the prometheus server in many queries!
.addRow(
g.row('Prometheus Stats')
.addPanel(