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

Add _metric_names_hash to avoid metric rejections #37511

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

felixbarny
Copy link
Contributor

@felixbarny felixbarny commented Jan 27, 2025

If metrics that have the same timestamp and dimensions aren't grouped into the same document, ES will consider them to be a duplicate. This adds a hash of the metric names that will be mapped as a dimension in Elasticsearch. The tradeoff is that if the composition of the metrics grouping changes over time, a new time series will be created. That has an impact on the rate aggregation for counters.

ES mapping changes: elastic/elasticsearch#120952

If metrics that have the same timestamp and dimensions aren't grouped into the same document, ES will consider them to be a duplicate.
This adds a hash of the metric names that will be mapped as a dimension in Elasticsearch.
The tradeoff is that if the composition of the metrics grouping changes over time, a new time series will be created.
That has an impact on the rate aggregation for counters.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant