imio.prometheus
This package adds a @@metrics view used by Prometheus. It extends the view of collective.prometheus with labels identifying the instance:
plone_service_name: the SERVICE_NAME environment variable (default local-plone);
compose_service: the HOSTNAME environment variable (default localhost-instance).
The view is registered on any Zope object, so http://localhost:8080/@@metrics works without a Plone site.
Compatibility
Version 2.x supports Plone 6.2 on Python 3.10 to 3.14. Use 1.0.x for older Plone versions and Python 2.
Installation
Add imio.prometheus to the dependencies of your project and load its ZCML, for instance with zcml_package_includes: 'imio.prometheus' in the cookiecutter-zope-instance configuration, or zcml = imio.prometheus in a buildout.
Development
Requires uv. This installs Plone 6.2.3 in .venv (set PLONE_VERSION for another 6.2.x release) and starts Zope on http://localhost:8080 (admin / admin):
make install make start
Tests and QA run through tox, as the CI does:
make test # Plone 6.2.3 make test-all # lint, every Plone / Python combination, dependencies uvx --with tox-uv tox -e py314-plone62 make check # format + lint (pre-commit hooks run with prek)
.editorconfig, .flake8, .gitignore, .pre-commit-config.yaml, tox.ini, .github/ and the tool sections of pyproject.toml are generated by plone.meta: change .meta.toml, then run uvx --from plone.meta config-package --no-commit --branch current ..
License
The project is licensed under the GPLv2.
Contributors
Benoît Suttor, benoit.suttor@imio.be
Changelog
2.0.0 (2026-11-20)
Breaking: replace the pkg_resources namespace of imio with a PEP 420 native namespace. Support Plone 6.2 only, on Python 3.10 to 3.14. Python 2 and Plone 4.3 to 6.1 sites stay on 1.0.x. [remdub]
Breaking: drop the dependencies the code never imported (z3c.jbot, plone.app.dexterity, plone.restapi) and the unused robot IMIO_PROMETHEUS_ACCEPTANCE_TESTING layer. [remdub]
Import INonInstallable from plone.base instead of the alias Plone 6.2 deprecates, and make update_locale work without pkg_resources. [remdub]
Configure the package with plone.meta 2.12.0 (test matrix on Plone 6.2.3, Python 3.10 to 3.14), move its metadata to pyproject.toml and run the development environment on Plone 6.2.3 with uv instead of buildout. [remdub]
Fix list and im_self for Python 3 [laulaz]
1.0.1 (2022-02-01)
Update classifiers to accept python 2.7. [bsuttor & odelaere]
Add object_counts gauge. [bsuttor]
1.0.0 (2020-11-10)
Update package to pypi. [bsuttor]
1.0b1 (2020-04-15)
Use Hostname to get docker-compose name to become more explicit. [bsuttor]
1.0a5 (2020-04-03)
Add number of zope threads for python 2 instances. [bsuttor]
1.0a4 (2020-04-02)
Add docker-compose name on label. [bsuttor]
1.0a3 (2020-04-02)
Reformatting to add attributes to metric. [bsuttor]
1.0a2 (2020-04-02)
Add type and help text. [bsuttor]
1.0a1 (2020-04-01)
Initial release. [bsuttor]
Metadata
Release files for imio.prometheus 2.0.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 |
|---|---|---|---|---|
| imio_prometheus-2.0.0.tar.gz | 19.5 kB | Without provenance | Details for imio_prometheus-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| imio_prometheus-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for imio_prometheus-2.0.0-py3-none-any.whl |
Total release size: 37.0 kB
Release files / imio_prometheus-2.0.0.tar.gz
| Download URL | imio_prometheus-2.0.0.tar.gz |
|---|---|
| Size | 19.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
336d546070085364ad2d5671380d6b32913672cb4b82b13abf1c19b0a7192565
|
|
BLAKE2b-256 checksum How to use checksums |
86f7d1dfb1cbc086476373d58fd200bf43578ad5ea732b3558f0df3b53f7dcc5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Release files / imio_prometheus-2.0.0-py3-none-any.whl
| Download URL | imio_prometheus-2.0.0-py3-none-any.whl |
|---|---|
| Size | 17.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d81848577872ba4fc82ee825d0b01424cbbd1bb8757e192e791ea748367635db
|
|
BLAKE2b-256 checksum How to use checksums |
1cdbb6b43b437bb38d6302195138996bc2ad4818f0f91e86d194f5f5571b710b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Security for imio.prometheus 2.0.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.