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

finer grain control of systemd metrics #1790

Open
belm0 opened this issue Jul 21, 2020 · 4 comments
Open

finer grain control of systemd metrics #1790

belm0 opened this issue Jul 21, 2020 · 4 comments

Comments

@belm0
Copy link
Contributor

belm0 commented Jul 21, 2020

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 need node_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 (method collectUnitStatusMetrics of the collector)

c.collectUnitStatusMetrics(conn, ch, units)

cc: @pgier

@SuperQ
Copy link
Member

SuperQ commented Jul 21, 2020

questionable-solution: "use systemd exporter". Why must we learn, configure, and deploy another exporter when node_exporter already has the metric we need?

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.

@belm0
Copy link
Contributor Author

belm0 commented Jul 22, 2020

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.

@discordianfish
Copy link
Member

I don't think we should add that since we're going to deprecate the exporter anyway.

@MarkusTeufelberger
Copy link

Please don't deprecate the systemd metrics until the systemd_exporter has reached a 1.0.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants