elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.82k stars 8.2k forks source link

Variable context.node in Disk Usage alert should have only the node name, not the node name and percent used. #158850

Open leandrojmp opened 1 year ago

leandrojmp commented 1 year ago

Describe the feature:

Currently there is a built-in rule in the Stack Monitoring to alert when the Disk Usage of a node is above some specified watermark, this rule have a couple of variables that can be used in the alert message.

One of these variables is the context.node and the description for this variable is The node reporting high disk usage

Screenshot from 2023-06-01 13-39-10

But if you use the variable context.node on any action the actual value will be the node name and the percent of disk usage in the format nodeName:percent, for example node-01:95.

The value for context.node should be split in two fields, context.node with the node name and context.diskUsage with the percentual of disk usage.

This issue is based on this discuss post.

Describe a specific use case for the feature:

When getting alerts you need to have the exact node name, the way it is today you will have the node name and the disk usage percent, this can impact on some automation use cases for example, node-01:95 and node-01:97 are different values, but the issue is the same node.

elasticmachine commented 1 year ago

Pinging @elastic/infra-monitoring-ui (Team:Infra Monitoring UI)

miltonhultgren commented 1 year ago

Linking this comment for reference when/why this was setup this way https://github.com/elastic/kibana/issues/100136#issuecomment-865229431

leandrojmp commented 8 months ago

Hello, will this be considered?

I just noticed that the same thing happens with the CPU usage, I can not get the percent of CPU used, the only information available is in the format node-name:cpu-used, it should be possible to have the cpu used in an different field.