Prometheus exporter for Pacemaker cluster resource manager.
$ go get github.com/mjtrangoni/pacemaker_exporter
$ cd $GOPATH/src/github.com/mjtrangoni/pacemaker_exporter
$ make
$ ./pacemaker_exporter <flags>
Note: Please run it as root user, otherwise crm_mon
will be failing.
Alternatively, add user you run it as into haclient group.
- http://localhost:9356/metrics for the Prometheus metrics.
- http://localhost:9356/html for a HTML cluster status page.
- http://localhost:9356/xml for a XML cluster status page.
This exporter run crm_mon -Xr
, and parse its XML output.
XML element | Status | Default |
---|---|---|
summary | implemented | enabled |
nodes | implemented | enabled |
node_attributes | implemented | enabled |
node_history | not implemented | |
resources | implemented | enabled |
resources/bundle | not implemented | |
resources/group | implemented | enabled |
resources/clone | implemented | enabled |
tickets | not implemented | |
bans | implemented | enabled |
failures | implemented | enabled |
Refer to CONTRIBUTING.md
Apache License 2.0, see LICENSE.