Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

graphene-prometheus-0.1.0.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

graphene_prometheus-0.1.0-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page