Hi,

On 3/31/20 10:56 PM, Joey Jojo wrote:
> I have a node exporter setup and installed in a Linux Ubuntu server and
> everything works fine. I've had to setup a few different custom SystemD
> services located in /etc/systemd/system/ and I'd like to know how I can
> whitelist them into the node_exporter.service which is also located in
> /etc/systemd/system
> 
> This is the configuration in there right now:
> 
[...]
> Question is, how can I add a custom SystemD service called let's say,
> "nuxt_sitename-a.service" as well as "nuxt_sitename-b.service" etc...
> When I try to add it in the /*--collector.systemd.unit-whitelist= */I
> don't see anything with that name in Prometheus query
> /*node_systemd_unit_state */related to the nuxt_sitename-a/b but I do
> see all the other whitelist services like SSH, Apache etc..
> **/**/
> 
> Does anybody know how to get node exporter to see

Your approach sounds correct -- this is what we are using as well.
Can you confirm that the unit is loaded? systemctl list-units must
return it; it being returned from systemctl list-unit-files is not
enough. Maybe you still need to start and/or reference/enable it?

Can you confirm that node_exporter is running using the updated
whitelist, e.g. did you perform a full node_exporter restart?

Kind regards,
Christian

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/9b1733e8-a621-6285-349e-4324f703ce33%40hoffmann-christian.info.

Reply via email to