Skip to content
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

additional log verbosity for Prometheus receiver #36619

Open
tomklino opened this issue Dec 2, 2024 · 1 comment
Open

additional log verbosity for Prometheus receiver #36619

tomklino opened this issue Dec 2, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@tomklino
Copy link

tomklino commented Dec 2, 2024

Component(s)

Prometheus receiver

Is your feature request related to a problem? Please describe.

I'm getting multiple log reading "unable to scrape target" with the only details provided to me is the target experiencing the issue. There is no information hinting for the cause.

Describe the solution you'd like

A helpful log message describing the cause.
For example:

  • timeout
  • unauthorized
  • empty reply

In addition, it would also be helpful if the log message would include possible hints for a solution, such as:

  • inspect the service monitor resource named ABC
  • inspect the configuration file for the OpenTelemetry collector

Describe alternatives you've considered

I've looked in the code for the line writing this error message and unfortunately it's located somewhere that can't provide more info on the issue. It seems to me that at this point it already has the response and only inspecting it. To log the cause for the error would probably need to be done somewhere else

I've also found other issues opened in this repo, but their solutions were not relevant for me

Additional context

No response

@tomklino tomklino added enhancement New feature or request needs triage New item requiring triage labels Dec 2, 2024
@VihasMakwana
Copy link
Contributor

I'll have a look and see if it can be improved.

@VihasMakwana VihasMakwana removed the needs triage New item requiring triage label Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants