Skip to content

An error occurred within the plugin when using query-frontend #5252

Closed
@SuperMatt

Description

@SuperMatt

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:
Web capture_6-4-2023_81326_grafana yelpcorp com

Web capture_6-4-2023_81227_grafana yelpcorp com

To Reproduce
Steps to reproduce the behavior:

  1. 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
  2. Configure Grafana 9.3.6 with a datasource pointing at either the nginx or query frontends
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions