opensearch-project / opensearch-project/alerting
[BUG] OpenSearch calls the Action before even creating the alert
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 82
- Forks
- 133
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 9
Description
What is the bug?
Our monitors calls an SNS and we're trying to get the alert id. However, upon inspection the message from {{ctx.alert}} doesn't have the ID which makes us assume that the code calls the action regardless if the alert is not yet created. However, the next time the alert is triggered then it has the alert id.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files, tests, or entry points are named. Reproduce the monitor-to-SNS flow described in the issue, then trace whether alert creation completes before the action runs; done means the first trigger exposes the alert ID in ctx.alert and the ordering is covered by a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, kotlin
- Domain
- observability-sre
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100