Add CPU usage per host alerting v2 rule type example#3
Draft
benakansara wants to merge 1 commit into
Draft
Conversation
Adds a new example rule type (example.cpu-usage-per-host) that demonstrates how to create an alerting v2 rule to monitor CPU usage per host. The rule: - Queries metrics indices for average CPU usage grouped by host - Supports critical and warning thresholds - Uses configurable index pattern, host field, and CPU metric field - Supports optional filter queries for scoping - Reports per-host alerts with contextual information - Includes a recovery action group for auto-resolving incidents Co-authored-by: Bena Kansara <benakansara@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new example alerting v2 rule type (
example.cpu-usage-per-host) that demonstrates how to create a rule to monitor CPU usage per host using the Kibana Alerting framework.The rule type:
recoveredaction group for auto-resolving incidents in PagerDuty/Jira/ServiceNowHow to use via API
Checklist
release_note:breakinglabel should be applied in these situations.release_note:*label is applied per the guidelinesbackport:*labels.Identify risks
This is an example plugin addition with no production impact. The rule type is only loaded when example plugins are enabled.