Exporting Systemd service status with node exporter

One9twO
Mar 16, 2022

--

Depending on which version of node exporter you are using, one of the following options will work.

Node exporter version go1.14.4

/usr/local/bin/node_exporter \
--collector.systemd \
--collector.system.unit-whitelist=(graylog-server|mongod|elasticsearch).service

Node exporter version go1.15.8

Since the option “collector.system.unit-whitelist” was deprecated, the syntax has changed to “collector.systemd.unit-include”.

Note that there might be a bug in this version such that it won’t work if you put an equal (=) sign before the value:

/usr/local/bin/node_exporter \
--collector.systemd \
--collector.systemd.unit-include "(graylog-server|mongod|elasticsearch).service"

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

One9twO
One9twO

Written by One9twO

A security engineer who shifts things left

No responses yet

What are your thoughts?