uWSGI Prometheus
A uWSGI stats exporter for Prometheus that integrates directly into an existing uWSGI app
Installation
Install using pip:
pip install uwsgi-prometheus
Enable the http stats endpoint in your uWSGI config:
https://uwsgi-docs.readthedocs.io/en/latest/StatsServer.html
Add the following in your uwsgi.py:
from prometheus_client.core import REGISTRY
from uwsgi_prometheus.collectors import UWSGIStatsCollector
REGISTRY.register(UWSGIStatsCollector())
The following stats will then be added to your existing metrics endpoint:
- uwsgi_listen_queue_requests - Number of requests in the uWSGI listen queue
- uwsgi_requests_total - Total number of uWSGI requests across all workers
- uwsgi_harakiris_total - Total number of harakiris across all workers
Configuration
A few configuration options are available on the collector:
- stats_url - The URL that uWSGI is exposing stats on
Default: http://127.0.0.1:1717 - timeout - The timeout for fetching stats
Default: 2 - prefix - A prefix for the exported metrics
Default: ''
REGISTRY.register(UWSGIStatsCollector(
stats_url='http://127.0.0.1:1717',
timeout=2,
prefix=''
))
Metadata
Release files for uwsgi-prometheus 1.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 |
|---|---|---|---|---|
| uwsgi-prometheus-1.0.0.tar.gz | 3.9 kB | Without provenance | Details for uwsgi-prometheus-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| uwsgi_prometheus-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for uwsgi_prometheus-1.0.0-py3-none-any.whl |
Total release size: 8.4 kB
Release files / uwsgi-prometheus-1.0.0.tar.gz
| Download URL | uwsgi-prometheus-1.0.0.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
87ac73d035decdec1c0545ae66b9eb2c09a61e79347aaadb6ae77cf5529b1741
|
|
BLAKE2b-256 checksum How to use checksums |
78aeae1b7698de94f58c04c30e44017ddf0f9962f6dcf80941ef4efb8fb8d4fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.6
|
Release files / uwsgi_prometheus-1.0.0-py3-none-any.whl
| Download URL | uwsgi_prometheus-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
765666ae51cdc61600b0afff7fe2a094d62897fddb943d78cb7016d59f680142
|
|
BLAKE2b-256 checksum How to use checksums |
c77b6762a92151d8597dcf5c87b45f24d6bbb0b97cc884e97422ded8f6ba06e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.6
|
Security for uwsgi-prometheus 1.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.