Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Enrich alert notification message with context. from individual documents' fields in bucket level monitors #1401

Closed
eirsep opened this issue Feb 2, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@eirsep
Copy link
Member

eirsep commented Feb 2, 2024

Is your feature request related to a problem?
Bucket level monitors contain only the information of the buckets that are created based on aggregation queries. there is no data from individual documents avaialble.

When alerts are generated and user wants to send out notifications, they don't have enough information to enrich the notification message because search response doesn't return the docs and returns only the aggregated data.

For ex. consider a bucket level monitor configured to monitor CPU of 100 hosts crossing 80% in last 1 hr. Say, each doc in index has fields - cpu, hostname, timestamp, eventid, jvm, If CPU>80 for a certain host they would like to fire alert. They can bucket on hostName and condition cpu >80. If condition matches they will get alert for cpu>80 and they will have information about which hosts are causing alert. But they wouldn't have access to other fields of such document

Possible solution
If alerts are generated i.e. monitor trigger condition is satisfied AND notifications are configured, Alerting plugin should support a post-trigger search request to collect data to enrich notification message.

That way users have additional context to access document's other fields based on bucket values

@eirsep eirsep added enhancement New feature or request untriaged labels Feb 2, 2024
@eirsep
Copy link
Member Author

eirsep commented Feb 8, 2024

Alternatively explore adding an exemplar or a sample document in every bucket level monitor by making size = 10 to get atleast some sample data

@AWSHurneyt
Copy link
Collaborator

Related issue #1396

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants