config.libsonnet 563 字节
Newer Older
1 2 3 4 5
{
  _config+:: {
    // Selectors are inserted between {} in Prometheus queries.
    prometheusSelector: 'job="prometheus"',
    alertmanagerSelector: 'job="alertmanager"',
6 7 8 9 10 11 12 13

    // prometheusName is inserted into annotations to name the Prometheus
    // instance affected by the alert.
    prometheusName: '{{$labels.instance}}',
    // If you run Prometheus on Kubernetes with the Prometheus
    // Operator, you can make use of the configured target labels for
    // nicer naming:
    // prometheusNameTemplate: '{{$labels.namespace}}/{{$labels.pod}}'
14 15
  },
}