-
Notifications
You must be signed in to change notification settings - Fork 10
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 config option collect_timeout #67
Conversation
I suggest to provide only 1 configuration to user , maybe named "scrape_timeout". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to change the scrape_timeout as well? And I suggest to use the same name with grafana-agent.
@Pjack I have changed the name of the option. |
Even though a detail, I strongly disagree with the name change. Scraping is what prometheus does to the exporter, and it will lend to confusion using the same name here. Just imagine having a conversation about this exporter and scrape timeout comes up. I'd suggest |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀 Just left one small, non-blocking comment to get some info.
It does feel a bit wasteful that we pass the full Config
object to each of the collector classes even though they just need to use thecollect_timeout
parameter to send it to their Command
super class. But I'm guessing it's not that much overhead and it's easier to manage all these config options in one place.
If we only pass the |
+1 for this. We should keep the exporter simple and leave the relate configuration with grafana-agent in the charm. |
Add a config option
--collect-timeout
which can be used to change the timeout used by the collectors while making subprocess calls.