@cryptotaxi247 / netdata-1 / commits / 1d3a015c3

add consul license expiration time alarm (#14298)

* add consul license alarm * minor

Ilya Mashchenko committed Jan 20, 2023 at 17:10 UTC 1d3a015c35b634a7cd3cd8d07c11597391eb7c8d
2 files changed +16
health/health.d/consul.conf
+13
@@ -1,5 +1,18 @@
1 # you can disable an alarm notification by setting the 'to' line to: silent
2
3 + template: consul_license_expiration_time
4 + on: consul.license_expiration_time
5 + class: Errors
6 + type: ServiceMesh
7 +component: Consul
8 + calc: $license_expiration
9 + every: 60m
10 + units: seconds
11 + warn: $this < 14*24*60*60
12 + crit: $this < 7*24*60*60
13 + info: Consul Enterprise licence expiration time on node ${label:node_name} datacenter ${label:datacenter}
14 + to: sysadmin
15 +
16 template: consul_autopilot_health_status
17 on: consul.autopilot_health_status
18 class: Errors
web/gui/dashboard_info.js
+3
@@ -4328,6 +4328,9 @@ netdataDashboard.context = {
4328 'consul.raft_boltdb_store_logs_time': {
4329 info: 'The amount of time spent writing logs to the database.'
4330 },
4331 + 'consul.license_expiration_time': {
4332 + info: 'The amount of time remaining before Consul Enterprise license expires. When the license expires, some Consul Enterprise features will stop working.'
4333 + },
4334
4335 // ------------------------------------------------------------------------
4336 // WMI (Process)