-
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
Add more detailed error message when initPrometheusComponent
failed
#33828
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
It looks like the error itself is frequency of #32123, @chenlujjj can you share what version of the collector and Prometheus you're using? It would be good to confirm you're hitting this before the underlying issue was fixed, in addition to adding more detailed error messaging. |
Hi @crobert-1 , we are using The receiver configuration is:
|
After restarting collector process, the issue was gone temporarily |
This is fixed by #32202 in version v0.98.0 of the collector |
Component(s)
receiver/prometheus
Describe the issue you're reporting
We encountered the following problem when using prometheus receiver to scrape metrics from pods:
The error message didn't provide enough information of why it failed. Actually it is caused by the prometheus discovery library which doesn’t expose the low-level error why Register fails. Wondering any ways to improve the error to make debug easier.
The text was updated successfully, but these errors were encountered: