I have looked and googled all around , unable to find the list of systemd metrics that node exporter exposes?
Step 1: Create a node_exporter user to run the node exporter service. Step 2: Create a node_exporter service file under systemd. Step 3: Add the following service file content to the service file and save it. Step 4: Reload the system daemon and star the node exporter service.
To verify the Prometheus server installation, open your browser and navigate to http://localhost:9090. You should see the Prometheus interface. Click on Status and then Targets. Under State, you should see your machines listed as UP.
List of node_systemd metrics:
node_systemd_unit_state - Systemd unit
node_systemd_unit_start_time_seconds - Start time of the unit since unix epoch in seconds
node_systemd_system_running - Whether the system is operational (see 'systemctl is-system-running')
node_systemd_units - Summary of systemd unit states
node_systemd_service_restart_total - Service unit count of Restart triggers
node_systemd_timer_last_trigger_seconds - Seconds since epoch of last trigger
node_systemd_socket_accepted_connections_total - Total number of accepted socket connections
node_systemd_socket_current_connections - Current number of socket connections
node_systemd_socket_refused_connections_total - Total number of refused socket connections
Keep in mind that the systemd collector is disabled by default. You can enable it by passing --collector.systemd
when starting node-exporter.
P.S. At the moment I do not have access to a prometheus / node-exporter instance but I got the list above by having a quick glance at the code for that collector here.
If you have access to a running node-exporter and the collector in question is enabled, you can easily find all metrics by going to /metrics on whichever port node-exporter is exposed on.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With