-
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
finer grain control of systemd metrics #1790
Comments
We are planning to deprecate all "process supervisor" collectors and remove them in node_exporter 2.0. Once prometheus-community/systemd_exporter#6 is complete, we will be marking the systemd collector officially deprecated. So keep that in mind. |
Thank you. Since it's hopefully a small change, I'd like to proceed by making a node_exporter PR and coordinating with systemd_exporter maintainer on parity and the command line API. |
I don't think we should add that since we're going to deprecate the exporter anyway. |
Please don't deprecate the systemd metrics until the |
As raised at #1201 (comment), it isn't possible to get
--collector.systemd.enable-restarts-metrics
without pulling in other, very numerous metrics that come with--collector.systemd
.For example, on our prometheus deployment, metric
node_systemd_unit_state
represents 14% of our total metric key space. It's wasteful, as we only neednode_systemd_service_restart_total
(which is 2% of key space).non-solution: "filter at the server side". We want to prevent these sizable, unneeded metrics from affecting the leaves and intermediaries of the system.
questionable-solution: "use systemd exporter". Why must we learn, configure, and deploy another exporter when node_exporter already has the metric we need?
Proposal: add a new flag to disable the default metrics of
--collector.systemd
(methodcollectUnitStatusMetrics
of the collector)node_exporter/collector/systemd_linux.go
Line 179 in 8c3de12
cc: @pgier
The text was updated successfully, but these errors were encountered: