https://rancher.com/ logo
Title
a

ancient-area-28415

02/17/2023, 5:03 PM
Howdy folks, does anyone know if there's a way to setup an AlertmanagerConfig with a route that isn't limited to one namespace? My actual AlertmanagerConfig doesn't have a matcher for the namespace, but when I look in my actual Alertmanager config, the namespace is added:
This is on rancher 2.7.1
r

rich-electrician-53678

03/02/2023, 3:14 PM
Hello, This is the namespace that your alerteManagerConfig is deployed. It will be added automatically when you create an AlertManagerConfig This matcher mean that only the Alerts of the objet that are in the same namespace as the alertemanagercinfig ( vault) will be send.
Currently on the rancher-monitoring-101.0.0+up19.0.3 version, with AlertManagerConfig, only alert on the alertemanagerconfig namespace will be send. This issue is solved on version 102.0.0+up40.1.2 dev.
b

billowy-apple-60989

04/14/2023, 8:43 AM
@rich-electrician-53678 Is that correct? Seems the `alertmanagerConfigMatcherStrategy`flag that fixes this was added in v.061.1 but ranchers mirrored charts are lagging behind and still on v0.59.1? https://github.com/rancher/charts/blob/dev-v2.7/charts/rancher-monitoring/102.0.0%2Bup40.1.2/values.yaml#L2646 https://github.com/prometheus-operator/prometheus-operator/issues/3737#issuecomment-1326667523
r

rich-electrician-53678

05/05/2023, 10:21 AM
Hi, I have tested the method that i'am talking about, it works Well. You juste need to use the alertemanagerconfiguration available in the chart version 102.0.0+up40.1.2 for rancher-monitoring and rancher-monitoring-crd
b

billowy-apple-60989

05/05/2023, 12:01 PM
Thanks, will give it a shot then ­čĹŹ