[Node exporter] to monitor yunohost server with prometheus

Node Exporter

Github link

The Prometheus Node Exporter exposes a wide variety of hardware- and kernel-related metrics.
:uk:
I just packaged this software for yunohost, for the moment, the package distributes the (latest) version 1.2.2.
This package supports amd64, arm64 and i386 architectures.
Prometheus is not provided.
Would it be possible for people to test the package on their yunohost.
Feel free to give feedback (in english or french)
Thank you.
:fr:
Je viens de packager ce logiciel pour yunohost, pour l’heure, le paquet distribue la (dernière) version 1.2.2.
Ce paquet supporte les architectures amd64, arm64 et i386.
Prometheus n’est pas fourni.
Serait il possible à des personnes de tester le paquet sur leur yunohost.
N’hésitez pas à faire des retours (en français ou en anglais)
Merci.

4 Likes

Bonjour bonjour !
Quelqu’un a pu tester l’app ?

With your help on the chat, tested and confirmed working. :rocket:

App updated to version 1.2.0

Hello there,

That’s exactly the app I’m looking for, but it seems its not in the app catalog anymore, and not even in the deprecated ones.

Any updates?

Thanks a lot.

Hello !

I had completely forgotten about this package.

It has never been published in the official yunohost catalog, still installable by informing the git link.

On the other hand, the node_exporter version hasn’t been updated for over 4 years and I think the package isn’t compatible with the new package format.

But feel free to fork and update the package yourself!

1 Like

ok lets package Node Exporter with latest YNH script

It should be installable but I have no idea how to configure it…
Feel free to make a PR

1 Like

I should try if it works… A friend have install a node-exporter on one of my server, with a service like this

[Unit]
Description=Prometheus Node Exporter component
Wants=network-online.target
After=network-online.target

[Service]
User=prometheus
Type=simple
Restart=always
RestartSec=1
StartLimitInterval=0
ExecStart=/opt/prometheus/node_exporter/node_exporter --web.listen-address=<$IPv4_YUNOHOST_SERVER>:9100
ProtectSystem=strict
ProtectControlGroups=true
ProtectKernelModules=true
ProtectKernelTunables=yes
NoNewPrivileges=yes

[Install]
WantedBy=multi-user.target

and I have to add a hooks for the iptables /etc/yunohost/hooks.d/post_iptable_rules/95-monitor_rules

#!/bin/bash
# Add promotheus accept rules
iptables -w -A INPUT -s <$IPv4_PROMOTHEUS_SERVER>/32 -p tcp -m tcp --dport 9100 -j ACCEPT
exit 0
2 Likes

I have created a PR with these settings

2 Likes

What an amazing community <3

Well, I have a branch working for node_exporter with an external promotheus server.

maybe it should be different for a local prometheus ?? Or it could be a conf added if this use case is needed only ?

I haven’t verify with a local prometheus, but I imagine the url for the api should be the same, api.url = "/metrics" and not this one api.url = "/api", does someone have tested on local ?