grafana / opensearch-datasource

Apache License 2.0
27 stars 21 forks source link

Opensearch datasource not showing correct data #433

Open sndhyv opened 2 months ago

sndhyv commented 2 months ago

What happened:

We cannot query data in Explore tab and subsequently in Grafana Alert query. There must be some discrepancy in the query paths for Dashboards vs. Explore/alerts

What you expected to happen: Data being displayed in the explore page and subsequently in Grafana Alert query.

Check screenshots below-:

image image(1) image(2) Screenshot 2024-08-15 at 9 21 50â_¯AM

Environment:

idastambuk commented 2 months ago

Hi @sndhyv, thanks for reporting this! We have implemented the openSearchBackendFlowEnabled feature toggle in 11.2 that unifies all querying flows - are you able to upgrade your Grafana version? Additionally, you will have to enable the feature toggle in your Grafana config: openSearchBackendFlowEnabled = true. Let us know if that helps!

idastambuk commented 2 months ago

Hi @sndhyv, taking another look at this. Can you paste both the queries you're sending, for dashboard and the explore? You can find them in Query Inspector -> Query -> Copy to Clipboard. Also, does the result change if you send "*" vs an empty Lucene query string? Thanks!