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

[BUG] Scrape failure logs with info/debug level #154

Open
patmaddox opened this issue Jul 27, 2022 · 2 comments
Open

[BUG] Scrape failure logs with info/debug level #154

patmaddox opened this issue Jul 27, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@patmaddox
Copy link
Contributor

(just saving this for later, will fill in more info)

Not quite sure what's going on. It's prefixed with [info] but claims level=debug. This is for an error that we weren't able to diagnose until we reduced the logger level.

[info] Grafana Agent log: "ts=2022-07-27T20:20:42.78545Z caller=scrape.go:1302 level=debug agent=prometheus
instance=7456140ad35b2bc58fd30b43a2b07375 component=\"scrape manager\" scrape_pool=sprlcl
target=https://localhost:4000/metrics msg=\"Scrape failed\"
err=\"Get \\\"https://localhost:4000/metrics\\\": http: server gave HTTP response to HTTPS client\""
@patmaddox patmaddox added the bug Something isn't working label Jul 27, 2022
@patmaddox
Copy link
Contributor Author

I suspect maybe there’s little/nothing to do here? Because the agent is running in its own OS process, it doesn’t actually share the elixir logger.

So at best we could configure where agent logs go, and treat them separately from the elixir app?

@akoutmos
Copy link
Owner

I have had issues with Grafana Agent log levels in the past. I.e when I set it to a certain level, I still get lower level logs. Perhaps this has been fixed in later versions? I'll make a PR to update the available GA versions that PromEx supports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants