Hi all

Setting up my first Prometheus instance. 

When adding this rule as  a test I get an error when i run  (indentation is 
ok in yaml)

- alert: PrometheusAllTargetsMissing
    expr: count by (job) (up) == 0
    for: 5m
    labels:
      severity: critical
    annotations:
      summary: Prometheus all targets missing (instance {{ $labels.instance 
}})
      description: A Prometheus job does not have living target anymore.\n  
VALUE = {{ $value }}\n  LABELS: {{ $labels }}

promtool check config /etc/prometheus/rules/alert.rules.yml
Checking /etc/prometheus/prometheus.yml
  SUCCESS: 1 rule files found

Checking /etc/prometheus/rules/alert.rules.yml
  FAILED: [yaml: line 1: mapping values are not allowed in this context]

Any advice on the mapping values error would be most welcome

Thanks




-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/50ea4a7e-4b20-4b85-b681-9cea0cec5a8en%40googlegroups.com.

Reply via email to