Usage of Set Rule Group HTTP API #1863
-
Hi I am trying to upload an alert rule group to Mimir Alertmanager using its HTTP API. When I use a
I see the following error
I infer this is coming from here. I would like to write scripts using the HTTP API to control and configure Mimir. I do find that many other HTTP APIs do work as expected. I am however unable to make the set-rule-group HTTP API work using the I can confirm Could this be a bug or am I missing something ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Does it work if you substitute We mention it in https://grafana.com/docs/mimir/latest/operators-guide/reference-http-api/#set-alertmanager-configuration: if it fixes your issue, we should mention it for https://grafana.com/docs/mimir/latest/operators-guide/reference-http-api/#set-rule-group too. |
Beta Was this translation helpful? Give feedback.
Does it work if you substitute
-d
with--data-binary
to your curl command? Reason is that-d
doesn't preserve carriage returns and newlines.We mention it in https://grafana.com/docs/mimir/latest/operators-guide/reference-http-api/#set-alertmanager-configuration: if it fixes your issue, we should mention it for https://grafana.com/docs/mimir/latest/operators-guide/reference-http-api/#set-rule-group too.