Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Order by percentiles isn't working #341

Open
maxcleme opened this issue Feb 29, 2024 · 2 comments
Open

Order by percentiles isn't working #341

maxcleme opened this issue Feb 29, 2024 · 2 comments
Labels
datasource/OpenSearch type/bug Something isn't working

Comments

@maxcleme
Copy link

Kapture.2024-02-29.at.14.38.15.mp4

What happened:

I'm in the middle of migrating panels from using Elasticsearch Datasource to OpenSearch Datasource. However I can't properly Order By percentile Metrics in my Group By aggregation. When doing such, I get Invalid aggregation order path [1]. When ordering on a multi-value metrics aggregation a metric name must be specified. error. It works fine using the same setup with ES datasource.

It's also worth mentioning that the suggestion on the Order by is a bit different from Elasticsearch Datasource:

Opensearch

Screenshot 2024-02-29 at 16 33 58

Elasticsearch

Screenshot 2024-02-29 at 16 34 21

What you expected to happen:

I would have expect it to work, as it works in ES datasource.

How to reproduce it (as minimally and precisely as possible):

I guess video submitted shows it all.

Anything else we need to know?:

Environment:

  • Grafana version: Grafana v10.2.3 (1e84fede54)
  • OpenSearch version: 2.11
  • Plugin version: 2.14.4
@maxcleme
Copy link
Author

Not sure why it got tagged AWS Datasource 😅

@iwysiu
Copy link
Contributor

iwysiu commented Mar 5, 2024

Hi @maxcleme ! Thanks for reporting this bug. I confirmed that it works in the ElasticSearch plugin and not in the OpenSearch plugin. I'll move it to our backlog to be looked at.
Investigation notes: For reproducing it, I ran make devenv sources=elastic to run the ElasticSearch datasource and used the gdev-elasticsearch-v2-logs datasource

@iwysiu iwysiu moved this from Incoming to Backlog in AWS Datasources Mar 5, 2024
@iwysiu iwysiu moved this from Backlog to Next in AWS Datasources Mar 11, 2024
@katebrenner katebrenner moved this from Next to Backlog in AWS Datasources May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datasource/OpenSearch type/bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

2 participants