Skip to content
BleemeoBleemeo

OpenBao

Auto-Detection
Built-in Metrics

OpenBao is an open-source fork of HashiCorp Vault for secrets management. Its metrics are exposed through the same telemetry subsystem as Vault. If you run HashiCorp Vault instead, see the Vault page.

Glouton detects OpenBao by its process and listening port (default: 8200).

First, enable the Prometheus telemetry in your OpenBao configuration file (HCL format):

telemetry {
prometheus_retention_time = "30s"
disable_hostname = true
}

Restart OpenBao for the change to take effect. The metrics endpoint (/v1/sys/metrics) requires authentication, so you must provide a token that is allowed to read sys/metrics. Set it through the service configuration:

Terminal window
sudo tee /etc/glouton/conf.d/99-openbao.conf > /dev/null << 'EOF'
service:
- type: "openbao"
address: "127.0.0.1"
port: 8200
password: "<YOUR_OPENBAO_TOKEN>"
EOF

To scrape a non-standard endpoint (for example when OpenBao is served over HTTPS or behind a different path), set stats_url to the full metrics URL instead of address and port.

Glouton automatically detects configuration changes.

MetricDescription
service_statusStatus of OpenBao
bao_core_unsealedWhether the OpenBao node is unsealed (1) or sealed (0)
bao_core_activeWhether the OpenBao node is the active node in the cluster
bao_core_in_flight_requestsNumber of requests currently being processed
bao_core_handle_requestsRate of requests handled by the core
bao_core_handle_login_requestsRate of login requests handled by the core
bao_core_check_tokensRate of token checks performed by the core
bao_core_leadership_lossesNumber of times this node lost cluster leadership
bao_expire_num_leasesNumber of currently active leases