/ha_cluster_exporter

Prometheus exporter for HA clusters (pacemaker). SAP/HANA clusters

Primary LanguageGoGNU General Public License v3.0GPL-3.0

ha_cluster_exporter

Build Status

This prometheus exporter is used to serve metrics for ha clusters and their components, as for single components. It should run inside a node of the cluster or both.

Table of Contents:

  1. Usage
  2. Features
  3. Devel
  4. Design

Usage:

You can find the RPM pkgs for the exporter here: https://build.opensuse.org/package/show/server:monitoring/prometheus-ha_cluster_exporter.

Once installed run the exporter inside a cluster node with:

systemctl start prometheus-ha_cluster_exporter. By default it will show on http://YOUR_HOST_IP:9002/metrics.

If you open a web-browser it will serve the metrics. The exporter can't work outside a HA cluster node.

Hint: For a terraform deployment you can also read: https://github.com/SUSE/ha-sap-terraform-deployments

Features:

  • show cluster node and resource metrics via crm_mon (pacemaker data xml)

  • show corosync metrics (ring errors, quorum metrics)

  • show SBD disk health metrics

  • show DRBD metrics (local and remote disks resource metrics)

We mantain a complete list of the metric specification, usage and possible values.

Devel:

Build the binary with make and run it inside a node of the ha cluster, it will show the metrics on port 9002 by default. Use ha_cluster_exporter -h for options.

Design:

For the technical design of the exporter have look at design (this is focused on cluster_metrics).