Description
Describe the bug
An invalid query performed from Grafana against a Cortex Query-Frotned returns the error "An error occurred within the plugin". When performing this query directly against a Cortex Querier or a Prometheus datasource, a correct error is shown. See the below screenshots. The first is the correct response, the second is the incorrect one:
To Reproduce
Steps to reproduce the behavior:
- Start Cortex (v1.14.1 arm) via the helm chart (2.1.0) with the following components, configured with zone awareness across 3 zones
a. nginx
b. distributors
c. ingesters
d. store gateways (s3 backend)
e. queriers
f. query frontend
g. query schedulers
h. ruler
i. compactor - Configure Grafana 9.3.6 with a datasource pointing at either the nginx or query frontends
- Perform a basic broken query like `count by (job) (up})
Expected behavior
Expected to see bad_data: invalid parameter "query": 1:19: parse error: unexpected character: '}' bad_data: 1:19: parse error: unexpected character: '}'
Environment:
- Infrastructure: Kubernetes
- Deployment tool: Helm
Additional Context
A little bit of testing has shown that the issue only occurs when the Grafana datasource points to a query-frontend, but actually works correctly when pointed straight at a querier.