Closed cpressland closed 1 year ago
This issue is related to https://github.com/grafana/mimir/issues/2772. The Grafana issue should have been resolved by https://github.com/grafana/grafana/issues/49728 (will be included in the next Grafana version).
As a workaround, I suggest you to create a basic Alertmanager configuration .yaml
file, store it on the local disk, and specify its path to the Mimir configuration parameter -alertmanager.configs.fallback
, so that it will be used by default for any tenant for which no Alertmanager configuration has been uploaded yet.
Thanks @pracucci for sorting this issue out . I was facing the same issue and I fix it using minirtool or sending config direct via Alertmanager API endpoint.
Alertmanager config sample : alertmanager-config.yaml
route:
receiver: "example_receiver"
group_by: ["example_groupby"]
receivers:
- name: "example_receiver"
k port-forward svc/mimir-distributed-alertmanager 8080:8080
curl -X POST http://localhost:8080/api/v1/alerts -H 'Content-Type: application/json' -H 'X-Scope-OrgID: monitoring ' --data-binary @alertmanager-config.yaml
if you're using multi-tenant , Please make sure to change tenant to correct tenant id . if you're not using multi-tenant use X-Scope-OrgID: anonymous .
using mimirtool to update alertmanager .
mimirtool alertmanager get --address=http://localhost:8080 --id=anonymous
mimirtool alertmanager load alertmanager-config.yaml --address=http://localhost:8080 --id=anonymous
@pracucci should we also close this one? As it related to https://github.com/grafana/mimir/issues/2772
Describe the bug
When deploying a fresh Grafana Mimir instance via Helm on a new Kubernetes Cluster we receive failed healthchecks when trying to connect Grafana to mimir-alertmanager. Trying to communicate with the APIs itself we get the following:
This feature appears to be broken out of the box, or, documentation appears to be lacking on how to configure this correctly.
To Reproduce
Steps to reproduce the behavior:
mimir-alertmanager-0
podExpected behavior
We expect alert-manager to become configured and usable after the first POST, and then be able to configure this further via Grafana.
Environment
Additional Context
Full Disclosure, we are still trying to learn the Mimir product and may simply be getting the wrong end of the stick here. A Grafana Community for Mimir does not appear to exist, so we're not really sure where to get support and ask questions. I'd rather have avoided raising a GitHub issue, but, here we are.
Our requirements are simply to fire alerts to various third-party services such as OpsGenie, Microsoft Teams, etc. So it may be that we're trying to use a "prometheus-esque" approach by shoving alert-manager in where it may not be required. Any additional advice would be appreciated here.