ClusterLabs / ha_cluster_exporter

Prometheus exporter for Pacemaker based Linux HA clusters
Apache License 2.0
78 stars 35 forks source link

Add drbd disable option #257

Open SckyzO opened 2 months ago

SckyzO commented 2 months ago

Hi,

I had a Warning in log file, and, as you tell in README :

While the exporter can run outside a HA cluster node, it won't export any metric it can't collect; e.g. it won't export DRBD metrics if it can't be locally inspected with drbdsetup.
A warning message will inform the user of such cases.

But for each prometheus request, I have this warning, and it is parsed by syslog parser.

Is it possible to add an option to completly disable drbd feature to remove warning in log ?

--disable.drbd for example ?

I'm only use pacemarker/corosync because i have jbod between my servers.

Regards,

stefanotorresi commented 2 months ago

Hmm, yeah, I can see the need for such a feature! I could work something out, but I can't give you any ETA, since I'm mostly busy with another project.

Let me know if you want to try yourself, I could give you some guidance.