summaryrefslogtreecommitdiffstats
path: root/health/health.d/anomalies.conf
blob: c4c96eaf96269ee3f4f08fc98dd4208de37d705d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# raise a warning alarm if an anomaly probability is consistently above 50%

template: anomalies_anomaly_probabilities
      on: anomalies.probability
  lookup: average -2m foreach *
   every: 1m
    warn: $this > 50
    info: average anomaly probability over the last 2 minutes

# raise a warning alarm if an anomaly flag is consistently firing

template: anomalies_anomaly_flags
      on: anomalies.anomaly
  lookup: sum -2m foreach *
   every: 1m
    warn: $this > 10
    info: number of anomalies in the last 2 minutes