mirror of
https://github.com/prometheus/prometheus.git
synced 2025-02-21 03:16:00 -08:00
Remove/improve unused variables and weird doc comments
Signed-off-by: beorn7 <beorn@grafana.com>
This commit is contained in:
parent
7a25a2586d
commit
52707535b8
|
@ -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.
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue