pacemaker_exporter

command module
v0.0.0-...-ce8c46f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

README

Pacemaker Exporter Build Status

CircleCI GoDoc Coverage Status Go Report Card Codacy Badge License

Prometheus exporter for 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 <flags>

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.
  3. 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

License

Apache License 2.0, see LICENSE.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package collector includes all individual collectors to gather and export pacemaker metrics.
Package collector includes all individual collectors to gather and export pacemaker metrics.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL