Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

where can I find the list of systemd node exporter metrics?

I have looked and googled all around , unable to find the list of systemd metrics that node exporter exposes?

like image 862
user2062360 Avatar asked Nov 13 '18 22:11

user2062360


People also ask

How do I monitor node exporter?

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.

How do I check my Prometheus status?

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.


1 Answers

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.

like image 141
Stefan R Avatar answered Jan 04 '23 00:01

Stefan R