opensearch-project / opensearch-project/alerting

[BUG] OpenSearch calls the Action before even creating the alert

Open
#797 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.