Install & Compatibility
Where this runs
tested against v0.16.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 45.1MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 5.1s · import 0.000s · 47MB
49MB installed
● package 49MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
MetricsClient
✓ from oslo_metrics import MetricsClient
✗ from oslo_metrics import MetricsClient
Basic usage: configure and use a MetricClient, register metrics, and flush.
from oslo_metrics import get_metrics_client, Counter
from oslo_config import cfg
# Configuration (example using oslo.config)
conf = cfg.ConfigOpts()
conf.register_opts(cfg.CONF.opts)
client = get_metrics_client(conf)
# Create a counter metric
counter = Counter('requests.total', 'Total number of requests')
client.register_metric(counter)
# Increment counter
counter.increment()
# Flush metrics to backend
client.flush()
oslo-metrics --version
Upgrade
Version history
0.16.0latest on PyPI · released May 18, 2026
Audit
Dependencies
oslo.configrequiredRequired for configuration options
oslo.logrequiredUsed for logging