-
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
Option to Skip Error Trace in Prometheus Exporter #36887
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
The error is coming from your client, right? It looks like the otlpmetricgrpc exporter is unable to push metrics over grpc because it contains invalid UTF-8. I don't think this is an issue with the Prometheus exporter. |
I may be wrong but if it was client issue then this should have worked:
|
Marshaling should be happening in the client. Do you see the log in the application logs, or in the collector logs? |
I did get this logs on application side, but on collector side as well, debug logs stop coming.
but once I pushed the invalid utf-8 string as value for one of the label, I stopped getting these logs..... |
The log you're showing is what the You can also take a look at metrics that the OTLP receiver exposes. I can't remember the name exactly, I'm sorry 😅 , but if they stopped increasing it tells us that your app is failing to send metrics and not the collector that is failing to receive |
Component(s)
exporter/prometheus
Is your feature request related to a problem? Please describe.
Yes, the feature request is related to a problem I am experiencing with the OpenTelemetry Collector.
In my use case, I am pushing customer responses into metrics using go-grpc client:
and my observability architecture is based on Prometheus scraping. I am using the following configuration for my OpenTelemetry Collector:
When I push a label with an invalid UTF-8 value, such as "label4", "invalidutf8\x80", I receive the following error continuously:
Image:
otel/opentelemetry-collector-contrib:0.109.0
Even though I have pushed the invalid label only once, I continue to receive this error for hours. Additionally, after encountering this error, no new metric operations are registered on the OpenTelemetry side. This issue prevents the system from recovering and processing subsequent valid metrics.
Describe the solution you'd like
If possible, I would like to drop the error trace. I tried setting the
RetryConfig
:but still I am getting error with 5 second difference.
I tried setting
under exporters.prometheus but the otel-sidecar is saying invalid config
Describe alternatives you've considered
Alternatives can we replacing the invalid UTF-8 chars to some other character, but I believe this solution is already in consideration.
Additional context
I am using
otel/opentelemetry-collector-contrib:0.109.0
version and I tried with all the latest one but was getting stuck in the same situation.The text was updated successfully, but these errors were encountered: