mimir
mimir copied to clipboard
mimirtool: invalid character 'e' in literal true (expecting 'r')
Describe the bug
I self-host Mimir in AKS with AlertManager enabled. I am trying to update its alertmanager config using mimirtool from Windows 10. I downloaded mimir executable, configured environment variables for URL, basic auth & tenantId, and run a command from official docs - https://grafana.com/docs/mimir/latest/manage/tools/mimirtool/
.\mimirtool.exe alertmanager load .\test.yaml
Content of the test.yaml is also from the official docs:
route:
receiver: "example_receiver"
group_by: ["example_groupby"]
receivers:
- name: "example_receiver"
mimirtool then returns this error:
mimirtool.exe: error: POST request to https://<hostname>/alertmanager/api/v1/alerts failed: server returned HTTP status: 400 Bad Request, body: "{\"status\":\"error\",\"errorType\":\"bad_data\",\"error\":\"invalid character 'e' in literal true (expecting 'r')\"}", try --help
I have checked encoding - the file is UTF-8 without BOM.
Environment
- Infrastructure: AKS 1.27.3
- Deployment tool: helm via ArgoCD
- Laptop OS: Windows 10
I couldn't reproduce this with the darwin-arm64 build of mimirtool 2.10.5. It would be useful if someone on windows can reproduce this.
@PavelPikat I am getting the same error. Were you able to solve it ?