I need to create a Dynamic watcher for below two metrics
# jolokia.jvm.memory.heap.max
8,589,934,592
# jolokia.jvm.memory.heap.used
1,090,388,992
I need an watcher alert when jolokia.jvm.memory.heap.used reaches 85% of jolokia.jvm.memory.heap.max ( which will be dynamic)
I tried with " Create Threshold Alert" option, however I do not see an option to choose jolokia.jvm.memory.heap.max as Matching Condition (see attached screenshot)
I believe we can do this by Advanced Watcher, need your help on creating that
Yes, this can be done with an advanced watcher. My suggestion is to take the JSON version of the watcher query and then modify it by adding a second metric, not just average. Then you can change the condition to divide the two metrics instead of using a static parameter.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.