400 Bad Request - There Was An Error Returned Querying | The Prometheus Api
Check your up metric. If you see weird label values, you have found your problem. The "400 Bad Request" error is Prometheus's way of saying, "I don't understand what you want, and I refuse to guess." It is frustrating, but it is safe . It protects your Prometheus instance from crashing due to bad input.
If you request 6 months of data at 1-second resolution, you are asking Prometheus to scan billions of samples. The server may reject the query immediately with a 400 because it recognizes the resource cost is impossible. Check your up metric
Troubleshooting the Ghost: Decoding the “400 Bad Request” from the Prometheus API "I don't understand what you want