Guest User

expr value

a guest
Jan 12th, 2021
12
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.84 KB | None | 0 0
  1.  - name: prom-TSDB-head-WAL-trunc-fail
  2.     rules:
  3.       - alert: TSDB WAL truncations failed
  4.         expr: |
  5.          label_replace(
  6.            increase(prometheus_tsdb_wal_truncations_failed_total[10m]) > 0,
  7.            "ipaddr",
  8.            "$1",
  9.            "instance",
  10.            "([^:]+):.*"
  11.           ) * on(ipaddr) group_left(nodename, domainname)
  12.           label_replace(
  13.            node_uname_info,
  14.            "ipaddr",
  15.            "$1",
  16.            "instance",
  17.            "([^:]+):.*"
  18.           )
  19.         for: 5m
  20.         labels:
  21.           type: prom
  22.           opsgprio: P1
  23.           severity: critical
  24.           alertsub0: "{{$labels.nodename}}"
  25.         annotations:
  26.           summary: "{{$labels.nodename}}: TSDB WAL truncations failed"
  27.           description: "Prometheus encountered [{{$value}}] TSDB WAL truncation failures."
  28.  
Advertisement
Add Comment
Please, Sign In to add comment