-
Notifications
You must be signed in to change notification settings - Fork 2.7k
[exporter/prometheusremotewrite] support disabling target_info metric #12724
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
[exporter/prometheusremotewrite] support disabling target_info metric #12724
Conversation
|
Shouldn't you have the option remove this at the source, i.e., in the prometheus receiver? You've described a single-writer violation happening and I'd rather it be removed before it enters the OTLP pipeline. Otherwise, receivers other than PRW will face the same single-writer violations. |
It is possible today to drop metric_relabel_configs:
- source_labels: [__name__]
regex: target_info
action: drop There is an added issue that we add "implicit" resource attributes (e.g. |
This sounds like another reason to move target_info generation to the receiver. Subsequent resource detectors and processors can edit the resource, but the decision to have or not have a target_info would be up to the receiver. |
We're using the otlp receiver. I can try using resource attributes processor to drop otel sdk added resources attributes. iirc job/instance labels are likely added by the exporter so no way to drop those using processors. |
This sounds like a problem worth fixing. When |
Do you mean |
@dashpole yes, I've corrected the comment. Thanks. |
ffb8f48
to
5d01252
Compare
ba1d546
to
f539e7f
Compare
@mx-psi updated target_info config to use a struct. PTAL 🙇 |
@Aneurysm9 PTAL as well 🙇 |
|
@dashpole @mx-psi @Aneurysm9 can I get some help merging this? I'm not authorized to merge and I have to keep merging main to this while waiting for a stamp to trigger CI checks. |
@dashpole there are lint errors in this PR. |
@bogdandrutu agh, sorry. I thought the author had fixed it, but I had to approve the tests. |
6f67baf
to
d07ac43
Compare
d07ac43
to
8c56545
Compare
@hardproblems you can hold off rebasing on main for a bit (unless there is a conflict). The maintainers can do that before they merge. Its hard to tell if your tests are passing or not... |
@dashpole @Aneurysm9 @mx-psi @bogdandrutu what's the process for getting this merged? I've looked through the docs https://github.com/open-telemetry/opentelemetry-collector/blob/main/CONTRIBUTING.md and https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/release.md and am still unclear what the process is after the code reviews are done and the CI checks appear to be passing. |
Description:
Add the ability to turn off the target_info metric to address duplicate series / out of order samples issue below
Link to tracking Issue:
#12300
Testing:
Documentation:
@dashpole @Aneurysm9 @bogdandrutu @gouthamve @jmacd @jsuereth