Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Set up triggers on cloudera manager

Solved Go to solution

Set up triggers on cloudera manager

Explorer

Hi,

 

How do i set up an alert for hosts when it crosses physical_memory_used a particular value? like 100 GB or something for 5 minutes.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Set up triggers on cloudera manager

Expert Contributor

Hi npdell,

 

the trigger could look like this (alert on over 4 Gb mem used, over 5 min period)

 

[{"enabled":true,"expressionEditorConfig":{"action":"health:bad","attributeConditions":[],"conditions":[{"func":"last","metricExpression":"physical_memory_used","operator":">","value":"4294967296"}]},"streamThreshold":0,"suppressed":false,"triggerExpression":"IF (SELECT physical_memory_used WHERE hostId=$HOSTID AND last(physical_memory_used) > 4294967296) DO health:bad","triggerName":"Alert on over 4 Gb mem","validityWindowInMs":300000}]
3 REPLIES 3

Re: Set up triggers on cloudera manager

Expert Contributor

Hi npdell,

 

the trigger could look like this (alert on over 4 Gb mem used, over 5 min period)

 

[{"enabled":true,"expressionEditorConfig":{"action":"health:bad","attributeConditions":[],"conditions":[{"func":"last","metricExpression":"physical_memory_used","operator":">","value":"4294967296"}]},"streamThreshold":0,"suppressed":false,"triggerExpression":"IF (SELECT physical_memory_used WHERE hostId=$HOSTID AND last(physical_memory_used) > 4294967296) DO health:bad","triggerName":"Alert on over 4 Gb mem","validityWindowInMs":300000}]
Highlighted

Re: Set up triggers on cloudera manager

Explorer

It worked @gzigldrum. Thanks for u r help.

Re: Set up triggers on cloudera manager

Expert Contributor
Great!