https://github.com/mjtrangoni/pacemaker_exporter
Prometheus exporter for Pacemaker high availability resource manager
https://github.com/mjtrangoni/pacemaker_exporter
clustered-servers clustering high-availability metrics pacemaker prometheus prometheus-exporter
Last synced: 28 days ago
JSON representation
Prometheus exporter for Pacemaker high availability resource manager
- Host: GitHub
- URL: https://github.com/mjtrangoni/pacemaker_exporter
- Owner: mjtrangoni
- License: apache-2.0
- Created: 2018-06-30T17:05:10.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-11-09T19:33:17.000Z (over 6 years ago)
- Last Synced: 2024-06-19T02:07:51.299Z (over 1 year ago)
- Topics: clustered-servers, clustering, high-availability, metrics, pacemaker, prometheus, prometheus-exporter
- Language: Go
- Size: 57.6 KB
- Stars: 9
- Watchers: 3
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Pacemaker Exporter [][travis]
[](https://circleci.com/gh/mjtrangoni/pacemaker_exporter)
[](https://godoc.org/github.com/mjtrangoni/pacemaker_exporter)
[](https://coveralls.io/github/mjtrangoni/pacemaker_exporter?branch=master)
[](https://goreportcard.com/report/github.com/mjtrangoni/pacemaker_exporter)
[](https://www.codacy.com/app/mjtrangoni/pacemaker_exporter?utm_source=github.com&utm_medium=referral&utm_content=mjtrangoni/pacemaker_exporter&utm_campaign=Badge_Grade)
[](https://raw.githubusercontent.com/mjtrangoni/pacemaker_exporter/master/LICENSE)
[Prometheus](https://prometheus.io/) exporter for [Pacemaker](https://github.com/ClusterLabs/pacemaker) cluster resource manager.
## Getting
```
$ go get github.com/mjtrangoni/pacemaker_exporter
```
## Building
```
$ cd $GOPATH/src/github.com/mjtrangoni/pacemaker_exporter
$ make
```
## Running
```
$ ./pacemaker_exporter
```
Note: Please run it as *root* user, otherwise `crm_mon` will be failing.
Alternatively, add user you run it as into haclient group.
## Endpoints
1. http://localhost:9356/metrics for the Prometheus metrics.
2. http://localhost:9356/html for a HTML cluster status page.
2. http://localhost:9356/xml for a XML cluster status page.
## What's exported?
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 |
## Dashboards
1. [TODO:Grafana Dashboard]()
## Contributing
Refer to [CONTRIBUTING.md](https://github.com/mjtrangoni/pacemaker_exporter/blob/master/CONTRIBUTING.md)
## License
Apache License 2.0, see [LICENSE](https://github.com/mjtrangoni/mjtrangoni/blob/master/LICENSE).
[travis]: https://travis-ci.org/mjtrangoni/pacemaker_exporter