claranet / terraform-signalfx-detectors

Collection of terraform modules for SignalFx detectors.
Mozilla Public License 2.0
23 stars 32 forks source link

[IMPROVE] Add duration threshold to zookeeper detectors #540

Open freezeeedos opened 10 months ago

freezeeedos commented 10 months ago

What is the module? smart-agent_zookeeper

What is the detector? zookeeper health

Is your improvement related to a known monitoring limitations? Please describe. Currently, there is not duration parameter for the alert threshold

Describe the solution you'd like Add a new variable, something like zookeeper_health_duration_threshold to the signal flow

Files that would be affected:

modules/smart-agent_zookeeper/detectors-zookeeper.tf

modules/smart-agent_zookeeper/variables.tf

Final result would be something like: detect(when(signal != 1, lasting = '15m')).publish('CRIT')

This could be applied to the latency detector as well