openstack_database_exporter

module
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: Apache-2.0

README

OpenStack Database Exporter

This is a Prometheus exporter that aims to pull some of the data that is provided by the OpenStack Exporter but directly from the database.

Why?

The existance of this exporter is an OpenStack bug. At scale, the APIs become extremely sluggish at operating with large number of API requests.

In addition, certain queries can be done far more effectively directly without going through many different API calls. The goal of this exporter is to be operator-facing and providing high performance for large scale clouds.

Database queries

Service database APIs, SQL definitions, and integration schema fixtures are maintained in openstackdb. This exporter owns Prometheus collectors and metric-output tests. Query changes belong in openstackdb; update the pinned module version here after validating compatibility.

go test -short -race ./...
# Requires Docker for MariaDB fixtures and exporter end-to-end tests.
go test -race -tags integration -timeout 15m ./...
go build ./cmd/openstack-database-exporter

Integration tests load embedded fixtures from the pinned openstackdb module. Database URLs and exporter configuration remain the same.

Jump to

Keyboard shortcuts

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