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

add support to show overall cluster maintenance mode #260

Merged

Conversation

scrusanhrt
Copy link
Contributor

@scrusanhrt scrusanhrt commented Jul 24, 2024

if you put an entire cluster into maintenance mode (for whatever reason, sometimes valid) via "crm configure property maintenance-mode=true", then it won't be shown by this exporter.

this is because it currently only checks node properties. If you set an individual node to maintenance-mode, then it will show up.

new functionality:

# HELP ha_cluster_pacemaker_maintenance_mode_enabled Whether or not cluster wide maintenance-mode is enabled
# TYPE ha_cluster_pacemaker_maintenance_mode_enabled gauge
ha_cluster_pacemaker_maintenance_mode_enabled 1
ha_cluster_pacemaker_nodes{node="<host>",status="maintenance",type="member"} 0

tests pass via "make test"

@stefanotorresi
Copy link
Member

Cool! Thanks a lot for your contribution!

@stefanotorresi stefanotorresi merged commit e26395b into ClusterLabs:main Aug 2, 2024
6 checks passed
@scrusanhrt scrusanhrt deleted the add-cluster-maintenance-mode branch August 4, 2024 21:44
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