summaryrefslogtreecommitdiffstats
path: root/health
diff options
context:
space:
mode:
authorAndrew Maguire <andrewm4894@gmail.com>2020-12-02 20:45:29 +0000
committerGitHub <noreply@github.com>2020-12-02 20:45:29 +0000
commit9dda12cf92e847cb86527a1994a9fa5585e9fa8f (patch)
treef7f26434439c14a9818f239b48038743806c6c17 /health
parent7ec4f48a0acbf1a7e5bdb8b0afb6b74ecd976d40 (diff)
Anomalies collector (#10060)
ML based anomaly detection python collector built on top of PyOD.
Diffstat (limited to 'health')
-rw-r--r--health/Makefile.am1
-rw-r--r--health/health.d/anomalies.conf17
2 files changed, 18 insertions, 0 deletions
diff --git a/health/Makefile.am b/health/Makefile.am
index a69836879c..0802dc750f 100644
--- a/health/Makefile.am
+++ b/health/Makefile.am
@@ -26,6 +26,7 @@ healthconfigdir=$(libconfigdir)/health.d
dist_healthconfig_DATA = \
health.d/adaptec_raid.conf \
health.d/am2320.conf \
+ health.d/anomalies.conf \
health.d/apache.conf \
health.d/apcupsd.conf \
health.d/backend.conf \
diff --git a/health/health.d/anomalies.conf b/health/health.d/anomalies.conf
new file mode 100644
index 0000000000..a2d248efe7
--- /dev/null
+++ b/health/health.d/anomalies.conf
@@ -0,0 +1,17 @@
+# raise a warning alarm if an anomaly probability is consistently above 50%
+
+template: anomaly_probabilities
+ on: anomalies.probability
+ lookup: average -2m foreach *
+ every: 1m
+ warn: $this > 50
+ info: average anomaly probability > 50% for last 2 minutes
+
+# raise a warning alarm if an anomaly flag is consistently firing
+
+template: anomaly_flags
+ on: anomalies.anomaly
+ lookup: sum -2m foreach *
+ every: 1m
+ warn: $this > 10
+ info: count of anomalies > 10 for last 2 minutes