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

Add option to enable systemd in node_exporter #1

Open
bkelly16 opened this issue Mar 14, 2021 · 0 comments
Open

Add option to enable systemd in node_exporter #1

bkelly16 opened this issue Mar 14, 2021 · 0 comments

Comments

@bkelly16
Copy link
Member

Add option to node_exporter defaults.yml "node_exporter_enable_systemd" : true/false

Edit node_exporter.service.j2

Add "-v /run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket:ro" to ExecStart line
Add "--collector.systemd" to last option in ExecStart line

Wrap ^ with condtional statements
{% if node_exporter_enable_systemd %}
...
{% endif %}

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

1 participant