prometheus-zodb
Prometheus collector for ZODB database metrics.
Works with any ZODB storage backend (FileStorage, RelStorage, MemoryStorage, etc.).
Metrics exposed
| Metric | Type | Description |
|---|---|---|
zodb_connection_pool_size |
Gauge | Current number of open connections in the pool |
zodb_cache_size |
Gauge | Number of objects currently in the connection cache (per connection) |
zodb_cache_non_ghost_count |
Gauge | Number of non-ghost (loaded) objects in the cache (per connection) |
zodb_activity_loads |
Gauge | Object loads recorded by the activity monitor |
zodb_activity_stores |
Gauge | Object stores recorded by the activity monitor |
zodb_activity_connections |
Gauge | Connections opened recorded by the activity monitor |
Usage
from ZODB import DB
from prometheus_zodb import ZODBCollector
from prometheus_client import REGISTRY
db = DB(storage)
# Register on the default global registry (picked up by start_http_server)
ZODBCollector(db)
# Or use a custom registry
from prometheus_client import CollectorRegistry
registry = CollectorRegistry()
ZODBCollector(db, registry=registry)
# Or manage registration manually
collector = ZODBCollector(db, registry=None)
registry.register(collector)
Metadata
Release files for prometheus-zodb 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| prometheus_zodb-0.1.0.tar.gz | 8.4 kB | With provenance | Details for prometheus_zodb-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| prometheus_zodb-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for prometheus_zodb-0.1.0-py3-none-any.whl |
Total release size: 13.5 kB
Release files / prometheus_zodb-0.1.0.tar.gz
| Download URL | prometheus_zodb-0.1.0.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c418366e73a4ebd9a91e201dba3db497145e0d42da056afa24a42ec5d5cd3c3d
|
|
BLAKE2b-256 checksum How to use checksums |
e84f59a4a1eae6104fe69bec6788a51d3163b7c22f3fff8f1d4c2219e1766356
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.
Transparency logRelease files / prometheus_zodb-0.1.0-py3-none-any.whl
| Download URL | prometheus_zodb-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0f36b1601a21912de24334b8c9aea51b541743101388c5c21d29cde581b827dc
|
|
BLAKE2b-256 checksum How to use checksums |
19088ca56c5a1d88caf06b676af16fb2becb166c7bf6e85657e2a97dedb3358f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.
Transparency logSecurity for prometheus-zodb 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for prometheus_zodb-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.