opensearch-project / alerting

📟 Get notified when your data meets certain conditions by setting up monitors, alerts, and notifications
https://opensearch.org/docs/latest/monitoring-plugins/alerting/index/
Apache License 2.0
58 stars 99 forks source link

[Enhancement] Reduce number of query executions needed for enhanced alert notification message context #1481

Open AWSHurneyt opened 3 months ago

AWSHurneyt commented 3 months ago

This current implementation executes the monitor query multiple times; the first time on line 124 to collect the data for trigger evaluation, and then subsequent searches are executed for each triggered trigger in order to collect sample documents.

Ideally, we want to collect the sample documents in the call to collectInputResults on line 124 so we can avoid multiple queries as that will improve performance.

_Originally posted by @AWSHurneyt in https://github.com/opensearch-project/alerting/pull/1450#discussion_r1526680170_

AWSHurneyt commented 2 months ago

Reopening as this has not been implemented yet. This would improve the performance of the feature.

dblock commented 2 weeks ago

Catch All Triage - 1 2 3 4 5