-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
receiver/prometheus: remove assumption that scraped metrics share a resource #36479
Merged
andrzej-stencel
merged 2 commits into
open-telemetry:main
from
ridwanmsharif:ridwanmsharif/adjuster-resource-fix
Dec 16, 2024
Merged
receiver/prometheus: remove assumption that scraped metrics share a resource #36479
andrzej-stencel
merged 2 commits into
open-telemetry:main
from
ridwanmsharif:ridwanmsharif/adjuster-resource-fix
Dec 16, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ridwanmsharif
force-pushed
the
ridwanmsharif/adjuster-resource-fix
branch
from
November 21, 2024 21:37
4a675f9
to
b4af9c7
Compare
dehaansa
reviewed
Nov 24, 2024
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
ridwanmsharif
force-pushed
the
ridwanmsharif/adjuster-resource-fix
branch
2 times, most recently
from
December 11, 2024 19:04
bb2a3b4
to
7d556ee
Compare
…esource This change removes as assumption that all metrics in a single scrape come from the same resource. This is indeed not true when `honor_labels` is set to `true` AND when the scraped metrics contain a `job` or `instance` label.
ridwanmsharif
force-pushed
the
ridwanmsharif/adjuster-resource-fix
branch
from
December 11, 2024 19:53
7d556ee
to
360b8e1
Compare
dashpole
approved these changes
Dec 11, 2024
prometheusreceiver/internal/metrics_adjuster_test.go:136: File is not |
Aneurysm9
approved these changes
Dec 12, 2024
ridwanmsharif
force-pushed
the
ridwanmsharif/adjuster-resource-fix
branch
from
December 12, 2024 15:36
360b8e1
to
834bb25
Compare
dashpole
added
the
ready to merge
Code review completed; ready to merge by maintainers
label
Dec 12, 2024
sbylica-splunk
pushed a commit
to sbylica-splunk/opentelemetry-collector-contrib
that referenced
this pull request
Dec 17, 2024
…esource (open-telemetry#36479) <!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description This change removes as assumption that all metrics in a single scrape come from the same resource. This is indeed not true when `honor_labels` is set to `true` AND when the scraped metrics contain a `job` or `instance` label. <!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. --> #### Link to tracking issue Fixes open-telemetry#36477 <!--Describe what testing was performed and which tests were added.--> #### Testing Added unit tests <!--Describe the documentation added.--> #### Documentation N/A <!--Please delete paragraphs that you did not use before submitting.-->
mterhar
pushed a commit
to mterhar/opentelemetry-collector-contrib
that referenced
this pull request
Dec 19, 2024
…esource (open-telemetry#36479) <!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description This change removes as assumption that all metrics in a single scrape come from the same resource. This is indeed not true when `honor_labels` is set to `true` AND when the scraped metrics contain a `job` or `instance` label. <!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. --> #### Link to tracking issue Fixes open-telemetry#36477 <!--Describe what testing was performed and which tests were added.--> #### Testing Added unit tests <!--Describe the documentation added.--> #### Documentation N/A <!--Please delete paragraphs that you did not use before submitting.-->
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
ready to merge
Code review completed; ready to merge by maintainers
receiver/prometheus
Prometheus receiver
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This change removes as assumption that all metrics in a single scrape come from the same resource. This is indeed not true when
honor_labels
is set totrue
AND when the scraped metrics contain ajob
orinstance
label.Link to tracking issue
Fixes #36477
Testing
Added unit tests
Documentation
N/A