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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file graphene-prometheus-0.1.0.tar.gz.

File metadata

  • Download URL: graphene-prometheus-0.1.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.7.4 Linux/4.19.76-linuxkit

File hashes

Hashes for graphene-prometheus-0.1.0.tar.gz
Algorithm Hash digest
SHA256 df737b0f089c7bf7f9609594731c387b68d88fc3186e7f7be155c9fd1d5bd608
MD5 3d486bf4234fac8a03cf6cff96cc0dc8
BLAKE2b-256 9973c1f54725365052bb94583f84d1df83243a300558aaa44139dd0313a38dd1

See more details on using hashes here.

File details

Details for the file graphene_prometheus-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: graphene_prometheus-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.7.4 Linux/4.19.76-linuxkit

File hashes

Hashes for graphene_prometheus-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 441f09041117d5ecd1e701c97649395a522752e6056b28444b202d7cc08bbbfc
MD5 275e1bd65d62f1e2bc7cb90553d7c5d7
BLAKE2b-256 fc4995accaf857a77c2afb0d3189de93154bb21134ef73a2754412b776877a93

See more details on using hashes here.

Supported by

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