summaryrefslogtreecommitdiffstats
path: root/health
diff options
context:
space:
mode:
authorIlya Mashchenko <ilya@netdata.cloud>2023-01-20 17:10:07 +0200
committerGitHub <noreply@github.com>2023-01-20 10:10:07 -0500
commit1d3a015c35b634a7cd3cd8d07c11597391eb7c8d (patch)
treec98468fbf6c0dd36826297aa733a85213d8ec4b0 /health
parent8b37925b234080d31eb1912a58ecd76149bd94db (diff)
add consul license expiration time alarm (#14298)
* add consul license alarm * minor
Diffstat (limited to 'health')
-rw-r--r--health/health.d/consul.conf13
1 files changed, 13 insertions, 0 deletions
diff --git a/health/health.d/consul.conf b/health/health.d/consul.conf
index e106f3db0b..dff6d2df35 100644
--- a/health/health.d/consul.conf
+++ b/health/health.d/consul.conf
@@ -1,5 +1,18 @@
# you can disable an alarm notification by setting the 'to' line to: silent
+ template: consul_license_expiration_time
+ on: consul.license_expiration_time
+ class: Errors
+ type: ServiceMesh
+component: Consul
+ calc: $license_expiration
+ every: 60m
+ units: seconds
+ warn: $this < 14*24*60*60
+ crit: $this < 7*24*60*60
+ info: Consul Enterprise licence expiration time on node ${label:node_name} datacenter ${label:datacenter}
+ to: sysadmin
+
template: consul_autopilot_health_status
on: consul.autopilot_health_status
class: Errors