Skip to content

📊 Prometheus exporter middleware for the Graphene GraphQL framework.

License

Notifications You must be signed in to change notification settings

Synopsis/graphene-prometheus

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

📊 Prometheus exporter middleware for the Graphene GraphQL framework.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 68.1%
  • Shell 31.9%