-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
Milestone
Description
Hi,
over in IRC there was a discussion if it would make sense to include a commandline-flag of some sort to be able to enable collectors additional to the standard.
This would have several benefits:
- default exporters are enabled by default for a reason. If one could simply specify the collectors one wants to have enabled additionally and a new collector is added, one wouldn't have to adjust the entire list of enabled collectors (which is actually not that short and therefore not that clear to read imo) with the new one that would be enabled by default anyways. This could be countered by reading the release notes, but one might have skipped one release or actually run node_exporter from git, where we don't have any release notes. And as things are moving fast in Prometheus-land currently (and usually into very desirable directions), I actually know a lot of people who are running node_exporter from a git checkout.
- the commandline would get much shorter and therefore much clearer, because currently, for enabling one additional exporter I have to include 132 characters for this single commandline flag, which is far from readable imo. Especially if you add other flags (like
-collectors.textfile.directory) that can get fairly long.
Therefore I'm proposing adding some possibility to just specify the additional collectors.
We talked about some ideas in IRC how this could be implemented, which I will just recall here:
- add an additional flag like
-collectors.enabled.additional - allow
-collectors.enablednot just to take a list of collectors, but check if the first character is a+. If that's the case, append to the list of default collectors. - allow for each collector a prefix like
+or-to disable default collectors as well.
These, are ideas emerging from the first discussion and do of course not have to be the final user interface.
Any opinions on the idea in general? Finding a good user interface would be the second step if the general idea is found to be worth investigating.
@juliusv @brian-brazil @grobie @fabxc
If I have forgotten to highlight someone, feel free to do it. ;)
Reactions are currently unavailable