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

avoid disappearing metrics for pacemaker nodes and resources #152

Conversation

stefanotorresi
Copy link
Member

@stefanotorresi stefanotorresi commented Apr 27, 2020

This PR implements what we discussed at the end last week, following up some feedback we received from MSFT.

ha_cluster_pacemaker_nodes and ha_cluster_pacemaker_resources now will report a 0 value instead of a missing metric line for those status flags that are not true in the CIB.
This way, we correctly report all the possible combinations, including the ones where all the statuses are off. This will result in a more verbose metric set, but it's much clearer in intent and usable from a consumption perspective.

This PR also removes:

  • the previously introduced unknown node type, which is not needed because the upstream data source has member as a default value.
  • the artificial empty resource status="" label value, previously used to work around the same issue the nodes metric had, now fixed properly.

@diegoakechi
Copy link
Member

@ne-msft @steffenv-msft you might want to take a look at it, as it changes a bit the behavior of the cluster node metrics.

Copy link
Member

@diegoakechi diegoakechi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@stefanotorresi stefanotorresi added the WIP work in progress, don't merge label Apr 27, 2020
@stefanotorresi
Copy link
Member Author

marking as wip because it breaks current dashboards.

Copy link
Contributor

@MalloZup MalloZup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx

@stefanotorresi stefanotorresi merged commit 2a5404a into ClusterLabs:master Apr 29, 2020
@stefanotorresi stefanotorresi deleted the fix/avoid-disappearing-metrics branch April 29, 2020 15:31
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.

3 participants