node_exporter icon indicating copy to clipboard operation
node_exporter copied to clipboard

node_exporter can't retrieve metrics for DRBD 9.X

Open geoL86 opened this issue 4 years ago • 3 comments

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 node_drbd_*

What did you see instead?

Don't see metrics related to node_drbd_*

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)

geoL86 avatar Aug 14 '20 09:08 geoL86

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.

SuperQ avatar Aug 14 '20 09:08 SuperQ

I also couldn't find

geoL86 avatar Aug 14 '20 10:08 geoL86

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:

  • https://github.com/LINBIT/drbd-reactor
  • https://github.com/ClusterLabs/ha_cluster_exporter/

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

anarcat avatar Jun 14 '23 14:06 anarcat