ClusterLabs / ha_cluster_exporter

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

Don't create metrics for non-running OCFS resources #191

Closed cbosdo closed 3 years ago

cbosdo commented 3 years ago

Since the non-running OCFS resources have no associated node, those are duplicate entries making the whole exporter fail. Here is a typical error message:

* collected metric "ha_cluster_pacemaker_resources"
  { label:<name:"agent" value:"ocf::heartbeat:Filesystem" > [...] }
was collected before with the same name and label values

This change just skips those entries.