Debian Codegraph @

documentation/prometheus-mixin/config.libsonnet

raw
1 {
2 _config+:: {
3 // prometheusSelector is inserted as part of the label selector in
4 // PromQL queries to identify metrics collected from Prometheus
5 // servers.
6 prometheusSelector: 'job="prometheus"',
7
8 // prometheusHAGroupLabels is a string with comma-separated labels
9 // that are common labels of instances belonging to the same
10 // high-availability group of Prometheus servers, i.e. identically
11 // configured Prometheus servers. Include not only enough labels
12 // to identify the members of the HA group, but also all common
13 // labels you want to keep for resulting HA-group-level alerts.
14 //
15 // If this is set to an empty string, no HA-related alerts are applied.
16 prometheusHAGroupLabels: '',
17
18 // prometheusName is inserted into annotations to name the Prometheus
19 // instance affected by the alert.
20 prometheusName: '{{$labels.instance}}',
21 // If you run Prometheus on Kubernetes with the Prometheus
22 // Operator, you can make use of the configured target labels for
23 // nicer naming:
24 // prometheusName: '{{$labels.namespace}}/{{$labels.pod}}'
25
26 // prometheusHAGroupName is inserted into annotations to name an
27 // HA group. All labels used here must also be present in
28 // prometheusHAGroupLabels above.
29 prometheusHAGroupName: '{{$labels.job}}',
30
31 // nonNotifyingAlertmanagerRegEx can be used to mark Alertmanager
32 // instances that are not part of the Alertmanager cluster
33 // delivering production notifications. This is important for the
34 // PrometheusErrorSendingAlertsToAnyAlertmanager alert. Otherwise,
35 // a still working test or auditing instance could mask a full
36 // failure of all the production instances. The provided regular
37 // expression is matched against the `alertmanager` label.
38 // Example: @'http://test-alertmanager\..*'
39 nonNotifyingAlertmanagerRegEx: @'',
40
41 grafanaPrometheus: {
42 prefix: 'Prometheus / ',
43 tags: ['prometheus-mixin'],
44 // The default refresh time for all dashboards, default to 60s
45 refresh: '60s',
46 },
47
48 // Opt-out of multi-cluster dashboards by overriding this.
49 showMultiCluster: true,
50 // The cluster label to infer the cluster name from.
51 clusterLabel: 'cluster',
52 },
53 }