400 Bad Request - There - Was An Error Returned Querying The Prometheus Api Patched
If you are programmatically querying Prometheus via curl or a Python script using libraries like requests , you might see the error returned as a JSON object or a raw HTTP response. This is usually easier to debug because you have full visibility into the exact URL being sent.
This message will tell you exactly why the query was rejected (e.g., invalid parameter "step" , parse error at... ). If you are programmatically querying Prometheus via curl
Best Answer provided by mlemieux as reported by : Hello Kenneth, assuming the key is the required Insights Query Key type (https:/ 400 bad request error for Prometheus query - Stack Overflow invalid parameter "step"