-
Notifications
You must be signed in to change notification settings - Fork 444
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
[prometheus][remote_write] Fix remote_write ingest pipeline to include both metric path 'prometheus.*' and 'prometheus.metrics.*' to fingerprint calculation #7882
[prometheus][remote_write] Fix remote_write ingest pipeline to include both metric path 'prometheus.*' and 'prometheus.metrics.*' to fingerprint calculation #7882
Conversation
…eus.*' and 'prometheus.metrics.*' to fingerprint calculation Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
🌐 Coverage report
|
packages/prometheus/data_stream/remote_write/elasticsearch/ingest_pipeline/default.yml
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. Would be nice if we could cover these through "unit" testing, not sure if we have already or if it's doable though.
I am missing only some evidence for tests that the fix worked. Some screenshots only would have been ok |
@gizas I've updated the PR description, could you please have a look? |
Package prometheus - 1.12.1 containing this change is available at https://epr.elastic.co/search?package=prometheus |
What does this PR do?
Fix remote_write ingest pipeline to include both metric path 'prometheus.' and 'prometheus.metrics.' to fingerprint calculation
There are 2 use cases:
Use Types
is enabled - metrics will be added underprometheus.*
in this format:Use Types
is disabled - metrics will be added underprometheus.metrics.*
in this format:This fix is needed to support both cases, otherwise when TSDB is enabled, some documents will be dropped in case
Use Types
is disabledChecklist
changelog.yml
file.Author's Checklist
How to test this PR locally
Related issues
Screenshots
Previous version - 1.12.0
Use_type
disabled:In this case fingerprint based on the
[metric, labels]
object is not unique that can cause some dropping of documents.Use_type
enabled:Upgrade prometheus version to 1.12.1
Upgrade caused recreation of the ingest pipeline, I've removed `remove` processor.Use_type
enabled:Use_type
disabled (notice that metrics are stored underprometheus.metric
):