Prometheus exporter middleware for the Graphene GraphQL framework.
Project description
graphene-prometheus
📊 Prometheus exporter middleware for the Graphene GraphQL framework.
This is still under development. Use at your own risk.
Usage
Install using pip install graphene-prometheus
or poetry add graphene-prometheus
.
Graphene
import graphene_prometheus
schema.execute("THE QUERY", middleware=[graphene_prometheus.PrometheusMiddleware()])
See https://docs.graphene-python.org/en/latest/execution/middleware/#middleware for more information.
Django
In settings.py
:
GRAPHENE = {
"MIDDLEWARE": ["graphene_prometheus.PrometheusMiddleware"],
}
See https://docs.graphene-python.org/projects/django/en/latest/settings/#middleware for more information.
FastAPI / Starlette
Coming soon.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for graphene-prometheus-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | df737b0f089c7bf7f9609594731c387b68d88fc3186e7f7be155c9fd1d5bd608 |
|
MD5 | 3d486bf4234fac8a03cf6cff96cc0dc8 |
|
BLAKE2b-256 | 9973c1f54725365052bb94583f84d1df83243a300558aaa44139dd0313a38dd1 |
Close
Hashes for graphene_prometheus-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 441f09041117d5ecd1e701c97649395a522752e6056b28444b202d7cc08bbbfc |
|
MD5 | 275e1bd65d62f1e2bc7cb90553d7c5d7 |
|
BLAKE2b-256 | fc4995accaf857a77c2afb0d3189de93154bb21134ef73a2754412b776877a93 |