-
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
Miss error logs after changes in retry #30271
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Hello @monoxono, thanks for filing this issue! I understand the confusion here. The change you've referenced allowed retries on 5xx errors instead of resulting in permanent errors. This means the exporter is now retrying the export instead of explicitly failing, so the log message is no longer accurate. I think it would be fair to add a log message when a request gets a 5xx error, but it should be at the |
I'm fairly confident that this issue is caused by this change: open-telemetry/opentelemetry-collector#8369 I think the exporterhelper is not logging terminal errors at all in case the queued_retry is used - the prometheusremotewrite does not use queued_retry from the exporterhelper because we implement retries ourselves to avoid out of order samples. |
I may be misunderstanding something, but isn't the error |
@crobert-1 it can become permanent after the component have exhausted a certain number of retries. In this case promethues remote write exporter will return an permanent error to the exporterhelper. |
Thank both for looking into the issue. @rapphil, you're right. My previous finding is wrong and this issue can be reproduced in 0.85.0, but not 0.84.0. |
I believe I am seeing the same issue. I had a misconfiguration (port). The exporter silently fails to send metrics. |
This should be fixed by open-telemetry/opentelemetry-collector#9282 right? Can we close it? |
Thanks @jmichalek132, I believe you're correct. Closing. |
Component(s)
exporter/prometheusremotewrite
What happened?
Description
Before the commit 8715a5c(#23842), when prometheusremotewrite failed to send metrics, we can see error logs like this:
That commit uses "cenkalti/backoff" to retry instead of retry function provided by
exporterhelper
and now when prometheusremotewrite failed to send metrics, there's no any error log and it's very hard to do troubleshooting.Steps to Reproduce
Run the example configuration to reproduce
Expected Result
We can see errors in logs to understand why metrics sending fails.
Actual Result
No error log.
Collector version
8715a5c
Environment information
Environment
OpenTelemetry Collector configuration
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: