Skip to content

[AO] Warning threshold data is missing from the action variables for the metric threshold rule #167996

Open

Description

Related to https://github.com/elastic/sdh-kibana/issues/4150

📝 Summary

Consider having a metric threshold alert with these thresholds:

  • Is above or equals 80: Alert
  • Is above or equals 60: Warning

Currently, we don't have a variable to show the warning threshold in the warning action; the threshold in this case is the alert threshold, not the warning one:

{{context.reason}}\nThreshold: {{context.threshold.condition0}}

Disk Usage is 69.57225 in the last 5 mins for host-1. Alert when >= 60.
Threshold: {"condition0":["80"]}

We can either:

  • Change the threshold based on the alert state (Alert/Warning)
  • Expose this information from another action variable

For now, the user can hardcode this value in the alert notification, the challenge is to remember to adjust this value when the user changes the warning threshold.

✅ Acceptance Criteria

  • Expose warning threshold in action variables
  • Decide whether the same is needed for inventory or not
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions