prometheus / node_exporter

Exporter for machine metrics
https://prometheus.io/
Apache License 2.0
10.97k stars 2.33k forks source link

node_exporter can't retrieve metrics for DRBD 9.X #1814

Open geoL86 opened 4 years ago

geoL86 commented 4 years ago

Host operating system: output of uname -a

Linux 3.10.0-1127.el7.x86_64 #1 SMP Tue Mar 31 23:36:51 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

node_exporter version: output of node_exporter --version

node_exporter, version 1.0.1 (branch: HEAD, revision: 3715be6ae899f2a9b9dbfd9c39f3e09a7bd4559f) build user: root@1f76dbbcfa55 build date: 20200616-12:44:12 go version: go1.14.4

node_exporter command line flags

--collector.drbd

Are you running node_exporter in Docker?

No

What did you do that produced an error?

Installed DRBD 9.0.22 Configured node_exporter with --collector.drbd flag

What did you expect to see?

Metrics like nodedrbd*

What did you see instead?

Don't see metrics related to nodedrbd*

Notes:

Regarding to the: https://www.linbit.com/drbd-user-guide/drbd-guide-9_0-en/ (4.2.3. Status information in /proc/drbd) - drbd 9.x version doesn't provide live statistics by virtual file /proc/drbd. Now this functionality is outdated and output looks like:

[user@<host name> ~]# cat /proc/drbd
version: 9.0.22-2 (api:2/proto:86-116)
GIT-hash: 719792f2cc1360c65c848ffdb66090959e27fde5 build by mockbuild@, 2020-04-05 03:16:50
Transports (api:16): tcp (9.0.22-2)
SuperQ commented 4 years ago

I thought we already had an issue about this, but I can't find it. There is an undocumented replacement for this in /sys that can be used. But it needs to be implemented.

geoL86 commented 4 years ago

I also couldn't find

anarcat commented 1 year ago

There is an undocumented replacement for this in /sys that can be used. But it needs to be implemented.

do you mean the /sys filesystem any other references you can throw at us here?

here the node exporter still works, since we're still using 8.4. it seems like DRBD 9 is not mainline yet, so we're probably not going to need this for a while, but it would sure be nice to have the node exporter ready when (if?) that lands...

otherwise i've also found two other exporters that might be useful as a replacement here:

neither are available in Debian, so not a great option for me.