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

Support UTF-8 format for Cortex Alert manager label matchers #6389

Open
rakheshkumbi opened this issue Dec 2, 2024 · 0 comments
Open

Support UTF-8 format for Cortex Alert manager label matchers #6389

rakheshkumbi opened this issue Dec 2, 2024 · 0 comments

Comments

@rakheshkumbi
Copy link

rakheshkumbi commented Dec 2, 2024

Is your feature request related to a problem? Please describe.
For the "Add notification policy" page, it will always report error validating Alertmanager config: bad matcher format: "a"="b" when I try to any matching labels (I am using cortex alertmanager here), but it works if use the REST API of cortex.

image
image

cortex REST API:
curl -i -H "Authorization: Bearer $(TOKEN)" -H 'Content-Type: application/yaml' -X POST --data-binary @alerts.yaml $(ALERT_URL)/api/v2/alerts
alerts.yaml :

alertmanager_config: |

route:
- continue: false
matchers:
- a=b
mute_time_intervals: []
receiver: simin_contact_point
routes: []

Describe the solution you'd like
Currently the cortex doesn't support UTF-8 format for label matchers. If cortex can support the UTF-8 format for the label matcher, the issue can be resolved.

Describe alternatives you've considered
NA

Additional context
It should be possible to add any existing or not-existing matching labels in Add notification policy" page of grafana without error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant