Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/courtsite/graphene-prometheus
📊 Prometheus exporter middleware for the Graphene GraphQL framework.
https://github.com/courtsite/graphene-prometheus
fastapi graphene graphene-graphql-framework graphene-prometheus middleware prometheus starlette
Last synced: about 1 month ago
JSON representation
📊 Prometheus exporter middleware for the Graphene GraphQL framework.
- Host: GitHub
- URL: https://github.com/courtsite/graphene-prometheus
- Owner: Courtsite
- License: mit
- Created: 2020-05-12T16:54:36.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-08-15T22:09:42.000Z (over 1 year ago)
- Last Synced: 2024-10-09T11:24:41.348Z (about 1 month ago)
- Topics: fastapi, graphene, graphene-graphql-framework, graphene-prometheus, middleware, prometheus, starlette
- Language: Python
- Size: 11.7 KB
- Stars: 0
- Watchers: 3
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```python
import graphene_prometheusschema.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`:
```python
GRAPHENE = {
"MIDDLEWARE": ["graphene_prometheus.PrometheusMiddleware"],
}
```See https://docs.graphene-python.org/projects/django/en/latest/settings/#middleware for more information.
### FastAPI / Starlette
Coming soon.