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

Elasticsearch Metrics integration dashboard error: Field [elasticsearch.ingest_pipeline.total.count] of type [long] is not supported for aggregation [sum]. #6996

Closed
bczifra opened this issue Jul 18, 2023 · 5 comments
Assignees
Labels
bug Something isn't working, use only for issues Integration:elasticsearch Elasticsearch

Comments

@bczifra
Copy link
Member

bczifra commented Jul 18, 2023

The [Elasticsearch] Ingest Pipelines dashboard in the Elasticsearch integration is throwing an error that: Field [elasticsearch.ingest_pipeline.total.count] of type [long] is not supported for aggregation [sum].

As a workaround, it's possible to [disable the use of TSDS on the data stream]https://www.elastic.co/guide/en/fleet/current/data-streams-advanced-features.html#data-streams-advanced-tsds-disable).

@joshdover
Copy link
Contributor

Good news here is that I think this can be fixed, but I don't have a cluster to try it on right now.

It seems that the sum agg on these fields is only be used for ranking on the breakdowns, not the actual metrics. I think we can change this to use max instead of sum and get the same result. max is supported on counter fields.

Note that the linked example in https://github.com/elastic/integrations/blob/3ce066e4b81169ad068909313e4cc6336c261dd8/packages/elasticsearch/kibana/dashboard/elasticsearch-metrics-ingest-pipelines.json is not the only one. There are several but they all look to be similar.

@joshdover joshdover added bug Something isn't working, use only for issues Integration:elasticsearch Elasticsearch labels Jul 18, 2023
@joshdover
Copy link
Contributor

Note that to reproduce this, you have to be using Elastic Agent to monitor Elasticsearch. We do not use TSDS when monitoring with just Beats.

@joshdover
Copy link
Contributor

cc @tylerperk as your team owns this integration

@lalit-satapathy
Copy link
Collaborator

The aggregation restrictions on counter fields are being removed and recent fixes has gone from elasticsearch on the same- elastic/elasticsearch#97974

@joshdover
Copy link
Contributor

I can confirm this is fixed on 8.9.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working, use only for issues Integration:elasticsearch Elasticsearch
Projects
None yet
Development

No branches or pull requests

4 participants