mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -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+:: {
|
_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"',
|
prometheusSelector: 'job="prometheus"',
|
||||||
alertmanagerSelector: 'job="alertmanager"',
|
|
||||||
|
|
||||||
// prometheusName is inserted into annotations to name the Prometheus
|
// prometheusName is inserted into annotations to name the Prometheus
|
||||||
// instance affected by the alert.
|
// instance affected by the alert.
|
||||||
|
|
|
@ -6,8 +6,6 @@ local g = import 'grafana-builder/grafana.libsonnet';
|
||||||
g.dashboard('Prometheus')
|
g.dashboard('Prometheus')
|
||||||
.addMultiTemplate('job', 'prometheus_build_info', 'job')
|
.addMultiTemplate('job', 'prometheus_build_info', 'job')
|
||||||
.addMultiTemplate('instance', 'prometheus_build_info', 'instance')
|
.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(
|
.addRow(
|
||||||
g.row('Prometheus Stats')
|
g.row('Prometheus Stats')
|
||||||
.addPanel(
|
.addPanel(
|
||||||
|
|
Loading…
Reference in a new issue