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 %}
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 %}