Skip to main content

Nautobot App GraphQL Observability


A GraphQL observability app for Nautobot — Prometheus metrics and structured query logging.

Overview

A Nautobot app that provides comprehensive observability for the GraphQL API. It includes two Graphene middlewares that collect Prometheus metrics and emit structured query logs — without modifying Nautobot's core code.

Features

Prometheus Metrics (PrometheusMiddleware):

  • Request metrics: Count and measure the duration of all GraphQL queries and mutations.
  • Error tracking: Count errors by operation and exception type.
  • Query depth & complexity: Histogram metrics for query nesting depth and total field count.
  • Per-user tracking: Count requests per authenticated user for auditing and capacity planning.
  • Per-field resolution: Optionally measure individual field resolver durations for debugging.
  • All metrics appear at Nautobot's default /metrics/ endpoint — no extra endpoint needed.

Query Logging (GraphQLQueryLoggingMiddleware):

  • Structured log entries: Operation type, name, user, duration, and status for every query.
  • Optional query body and variables: Include the full query text and variables in log entries.
  • Standard Python logging: Route logs to any backend (file, syslog, ELK, etc.) via Django's LOGGING configuration.

General:

  • Zero configuration: Automatically patches Nautobot's GraphQLDRFAPIView to load the middlewares — no manual GRAPHENE["MIDDLEWARE"] setup needed.

Quick Install

pip install nautobot-graphql-observability
# nautobot_config.py
PLUGINS = ["nautobot_graphql_observability"]

Documentation

Full documentation is bundled with the app and available in the docs folder of this repository:

  • User Guide (docs/user/) - Overview, Using the App, Getting Started.
  • Administrator Guide (docs/admin/) - How to Install, Configure, Upgrade, or Uninstall the App.
  • Developer Guide (docs/dev/) - Extending the App, Code Reference, Contribution Guide.
  • Release Notes (docs/admin/release_notes/).
  • FAQ (docs/user/faq.md).

Contributing to the Documentation

You can find all the Markdown source for the App documentation under the docs folder in this repository. For simple edits, a Markdown capable editor is sufficient: clone the repository and edit away.

If you need to view the fully-generated documentation site, you can build it with MkDocs. A container hosting the documentation can be started using the invoke commands on http://localhost:8001. Using this container, as your changes to the documentation are saved, they will be automatically rebuilt and any pages currently being viewed will be reloaded in your browser.

Any PRs with fixes or improvements are very welcome!

Questions

For any questions or comments, please check the FAQ first. Feel free to open an issue on GitHub.

Metadata

Release files for nautobot-graphql-observability 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nautobot-graphql-observability 2.1.0
File Size Uploaded Provenance Actions
nautobot_graphql_observability-2.1.0.tar.gz 957.9 kB With provenance Details for nautobot_graphql_observability-2.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nautobot-graphql-observability 2.1.0
File Interpreter ABI Platform Actions
nautobot_graphql_observability-2.1.0-py3-none-any.whl Python 3 none any Details for nautobot_graphql_observability-2.1.0-py3-none-any.whl

Total release size: 2.0 MB

Release files / nautobot_graphql_observability-2.1.0.tar.gz

Download URL nautobot_graphql_observability-2.1.0.tar.gz
Size 957.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c581132e5c2700fb46e264bd01a03a3b784c84a15894291ba87539735261cbb9
BLAKE2b-256 checksum
How to use checksums
ced57e380e031de7524462c2ce315c778fc385d7eb775a49af703a11577afa7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 19, 2026.

Transparency log

Release files / nautobot_graphql_observability-2.1.0-py3-none-any.whl

Download URL nautobot_graphql_observability-2.1.0-py3-none-any.whl
Size 1.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
a4d675b8fb3ba2b8862a7a8cb89f98c0e51bf0cf40afa8bbeea3c6d5bba1bcb9
BLAKE2b-256 checksum
How to use checksums
98c0efa53fb3f400a5b0a609d9e878004d93e2740bc6ea7a50d2a768def8e7c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 19, 2026.

Transparency log

Security for nautobot-graphql-observability 2.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for nautobot_graphql_observability-2.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 19, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page