Hey Christian,
Thanks for getting back to me. Yes I just ran this and looks active and
running:
root@aws-mtl-dev3:~# systemctl list-units |grep nuxt
nuxt_site-a.service loaded active
running Nuxt Vue JS Service
nuxt_site-b.service loaded active
running Nuxt Vue JS Service
nuxt_site-c.service loaded active
running Nuxt Vue JS Service
nuxt_usa-a.service loaded
active running Nuxt Vue JS Service
nuxt_usa-b.service loaded
active running Nuxt Vue JS Service
nuxt_usa-c.service loaded
active running Nuxt Vue JS Service
And this is my Node Exporter file:
And this is what I have in the collector
--collector.systemd \
--collector.systemd.unit-whitelist=
"(apache2|ssh|rsyslog|nginx|nuxt_*).service"
I am trying to use nuxt_* (wildcard) to see if it an pickup all of those
custom services.
Any idea why it doesn't show up in Prometheus when I query it?
On Tuesday, March 31, 2020 at 5:15:46 PM UTC-4, Christian Hoffmann wrote:
>
> 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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/5a8a81bc-939a-4649-8dbb-7d30194ad2fc%40googlegroups.com.