JSONDecodeError when querying Grafana Mimir Endpoint #500
Unanswered
mrjaved788
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hi @mrjaved788, thanks a lot for all these details. I am on vacation until the beginning of next week. I will take a look next week. I am not an expert with Grafana Mimir. I will look at the documentation to understand how requests and queries are handled under the hood, and confirm whether the Prometheus backend can indeed be reused. I will also check if a Grafana Mimir client exists for Python, which would greatly simplify the creation of a custom backend. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Community Team,
We are planning to implement SLO Generator for hundreds of services within our organization. We have our application metrics in Grafana Mimir Database (which also uses PromQL to query the data and is similar to Prometheus).
So for POC, we are performing Error Rate calculations and we are getting following JSON response from our Mimir endpoint in the browser and Postman:
When we run the SLO Generator for the same query using Prometheus as Backend for Mimir Endpoint (as both use PromQL to query data) we get the following error:
Command:
slo-generator compute -f C:\Users\user1\Desktop\slo_generator\samples\prometheus\config_1.yaml -c C:\Users\user1\Desktop\slo_generator\samples\config.yaml --export
Output:
ERROR - prom-metrics-availability | 5 mins | JSONDecodeError: Extra data: line 1 column 5 (char 4) | Backend returned None.
ERROR - prom-metrics-availability | 10 mins | JSONDecodeError: Extra data: line 1 column 5 (char 4) | Backend returned None.
INFO - Run finished successfully in 2.4s.
INFO - Run summary | SLO Configs: 1 | Duration: 2.4s
So, what can be the possible reason for it:
Looking forward to a positive response
Thanks
Beta Was this translation helpful? Give feedback.
All reactions