...
1{
2 _config+:: {
3 local c = self,
4 // alertmanagerSelector is inserted as part of the label selector in
5 // PromQL queries to identify metrics collected from Alertmanager
6 // servers.
7 alertmanagerSelector: 'job="alertmanager"',
8
9 // alertmanagerClusterLabels is a string with comma-separated
10 // labels that are common labels of instances belonging to the
11 // same Alertmanager cluster. Include not only enough labels to
12 // identify cluster members, but also all common labels you want
13 // to keep for resulting cluster-level alerts.
14 alertmanagerClusterLabels: 'job',
15
16 // alertmanagerNameLabels is a string with comma-separated
17 // labels used to identify different alertmanagers within the same
18 // Alertmanager HA cluster.
19 // If you run Alertmanager on Kubernetes with the Prometheus
20 // Operator, you can make use of the configured target labels for
21 // nicer naming:
22 // alertmanagerNameLabels: 'namespace,pod'
23 alertmanagerNameLabels: 'instance',
24
25 // alertmanagerName is an identifier for alerts. By default, it is built from 'alertmanagerNameLabels'.
26 alertmanagerName: std.join('/', ['{{$labels.%s}}' % [label] for label in std.split(c.alertmanagerNameLabels, ',')]),
27
28 // alertmanagerClusterName is inserted into annotations to name an
29 // Alertmanager cluster. All labels used here must also be present
30 // in alertmanagerClusterLabels above.
31 alertmanagerClusterName: '{{$labels.job}}',
32
33 // alertmanagerCriticalIntegrationsRegEx is matched against the
34 // value of the `integration` label to determine if the
35 // AlertmanagerClusterFailedToSendAlerts is critical or merely a
36 // warning. This can be used to avoid paging about a failed
37 // integration that is itself not used for critical alerts.
38 // Example: @'pagerduty|webhook'
39 alertmanagerCriticalIntegrationsRegEx: @'.*',
40
41 dashboardNamePrefix: 'Alertmanager / ',
42 dashboardTags: ['alertmanager-mixin'],
43 },
44}
View as plain text