-
Notifications
You must be signed in to change notification settings - Fork 146
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
VMAlertmanager: possibility to customize default matcher labels #1096
Comments
Hello, I don't think, that changing default matcher is a good idea. First of all, it was designed for SaaS like metrics stack deployment. When scraping, alerting and notification configurations created at the same namespace. In this case I'd suggest to disable namespace matcher and add needed matchers manually at Maybe we could add some sort of Like: kind: VMAlertmanager
spec:
enforcedTopRouteMatchers:
- {namespace != ""} But it doesn't look like good solution to me. |
The solution you propose seems to be a good one. To provide context, I have no control over the This feature would help me significantly to avoid alert collisions between users and undesired label overrides. |
It allows to enforce some matchers for VMAlertmanagerConfigs. Related issue: #1096 Signed-off-by: f41gh7 <nik@victoriametrics.com>
Feature added at v0.48.3 release. With new setting kind: VMAlertmanager
spec:
enforcedTopRouteMatchers:
- {namespace!=""} Must enforce |
Hey folks
I have my Alert Manager running in a cluster, and it's reading VMAlertmanagerConfig from different namespaces. I could add the namespace label through VMAlert, but the metrics are coming from another cluster, and the namespace would be overwritten even though it's needed in the rule.
Would it be possible to customize the default label matcher by configuring the VMAlertmanager operator? We could change it here.
I'd be happy to implement this change if you're okay with it.
The text was updated successfully, but these errors were encountered: