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

route.ID() returns conflicting IDs #3802

Closed
grobinson-grafana opened this issue Apr 11, 2024 · 0 comments
Closed

route.ID() returns conflicting IDs #3802

grobinson-grafana opened this issue Apr 11, 2024 · 0 comments

Comments

@grobinson-grafana
Copy link
Contributor

grobinson-grafana commented Apr 11, 2024

What did you do?

It is possible to write an Alertmanager configuration file where route.ID() returns conflicting IDs. For example, the configuration file:

receiver: test
routes:
- matchers:
    - foo=bar
  continue: true
  routes:
  - matchers:
    - bar=baz
- matchers:
    - foo=bar
  continue: true
  routes:
  - matchers:
    - bar=baz

gives the following Route IDs:

{}
{}/{foo="bar"}/0
{}/{foo="bar"}/{bar="baz"}/0
{}/{foo="bar"}/1
{}/{foo="bar"}/{bar="baz"}/0

What did you expect to see?

It should give these IDs instead:

{}
{}/{foo="bar"}/0
{}/{foo="bar"}/0/{bar="baz"}/0
{}/{foo="bar"}/1
{}/{foo="bar"}/1/{bar="baz"}/0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant