makeporngreatagain.pro
yeahporn.top
hd xxx

Alerting Rules in Alert Manager

160
  1. Now that we have a recording rule, we can build our alerting rule based on this. We know we want to alert when we have less than 75% of our application containers up, so we’ll use the job:uptime:average:ft < .75 expression:
    groups:
      - name: uptime
        rules:
          - record: job:uptime:average:ft
            expr: avg without (instance) (up{job="forethought"})
          - alert: ForethoughtApplicationDown
            expr: job:uptime:average:ft < .75
            for: 5m
            labels:
              severity: page
              team: devops
            annotations:
              overview: '{{printf "%.2f" $value}}% instances are up for {{ $labels.job }}'

    Notice how we define this rule with alert instead of record and that the name does not have to follow the previously defined format.

    Save and exit when done.

  2. Restart Prometheus:
     $ sudo systemctl restart prometheus
  3. Refresh the Rules page to view the second rule.

Comments are closed, but trackbacks and pingbacks are open.

baseofporn.com https://www.opoptube.com
Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.