Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Apr 26, 2021

Conversation

cbosdo
Copy link
Contributor

@cbosdo cbosdo commented Apr 26, 2021

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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants