You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
With a Cortex helm chart in our Kubernetes cluster - and a sidecar in the alertmanager pod to continuously check the changes from configmap then synchronize the templates in to our /data/fake/templates directory, the template files are updated but the changes are not fully reflected in the messages.
To Reproduce
Steps to reproduce the behavior (note: fake is the dummy tenant name):
Start a minimal Cortex with alertmanager and sidecar
Define a template file example.gotmpl (example in additional context)
Let the alertmanager reload the configuration (log message:
We tried calling the /api/v1/alerts endpoint which gives us the updated template, and the log message indicates that the loadAndSyncConfigs is actually ran.
this line seems to compare the templates from the loaded/updated cfg with the template in the store (with the templateFilePath) which is already updated via the sidecar's mechanism.
The text was updated successfully, but these errors were encountered:
Describe the bug
With a Cortex helm chart in our Kubernetes cluster - and a sidecar in the alertmanager pod to continuously check the changes from configmap then synchronize the templates in to our
/data/fake/templates
directory, the template files are updated but the changes are not fully reflected in the messages.To Reproduce
Steps to reproduce the behavior (note: fake is the dummy tenant name):
example.gotmpl
(example in additional context)cortex/pkg/alertmanager/multitenant.go
Line 689 in 9bc04ce
amtool
to simulate an alertExpected behavior
The changes would be reflected in the simulated alert sent by the
amtool
Actual behavior
The old template is still being used
Environment:
Additional Context
Alertmanager configuration:
example.gotmpl :
We tried calling the
/api/v1/alerts
endpoint which gives us the updated template, and the log message indicates that theloadAndSyncConfigs
is actually ran.I've traced through the function from
loadAndSyncConfigs
->setConfig
where:https://github.com/cortexproject/cortex/blob/9bc04ce3930b045480d72ab9712d3271c70c02ee/pkg/alertmanager/multitenant.go#L861C3-L861C68
this line seems to compare the templates from the loaded/updated cfg with the template in the store (with the templateFilePath) which is already updated via the sidecar's mechanism.
The text was updated successfully, but these errors were encountered: