I'm using the built-in Disk Usage rule in Kibana Alert on my monitoring cluster to alert me when a node reaches more than 94% of disk usage (I've changed my watermarks), this works fine, but now I need to send those alerts to slack and I'm trying to get only the node name to use on the slack webhook payload, but the variable context.node gives me the node name and the disk usage percent, which I do not want.
I'm using these two context variables.
I would expect the context.node would give me the node name, and context.state the current state of the alert, but using context.node gives me the node name followed by the disk usage percent in the following format:
node-name:95
Is there any way to get only the node name? Should I open an issue to fix this?
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.