Skip to main content

Quick and easy monitoring setup for ASGI application

Project description

asgi-monitor logo

PyPI version Documentation Status Test Supported versions Downloads License

A library for easy and fast configuration of logging, tracing and metrics for ASGI applications.

Features:

[!IMPORTANT] At this stage, the library is being tested and be careful in using it, your participation in the development will be appreciated!

📚 Documentation

Installation

pip install asgi-monitor

Quickstart

from asgi_monitor.integrations.fastapi import setup_metrics, MetricsConfig
from fastapi import FastAPI
from uvicorn import run


def run_app() -> None:
   app = FastAPI()
   setup_metrics(app, MetricsConfig(app_name="fastapi"))
   run(app, host="127.0.0.1", port=8000)


if __name__ == "__main__":
   run_app()

After setting up, you can see visualization of default metrics in Grafana

Dashboard

The library originates from structlog-asgi

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

asgi-monitor-0.4.0.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

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

asgi_monitor-0.4.0-py3-none-any.whl (23.5 kB view details)

Uploaded Python 3

File details

Details for the file asgi-monitor-0.4.0.tar.gz.

File metadata

  • Download URL: asgi-monitor-0.4.0.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.12.3 CPython/3.12.2

File hashes

Hashes for asgi-monitor-0.4.0.tar.gz
Algorithm Hash digest
SHA256 48f16decba12b23ad7b49cca940c6924120591f5a20a96cb43d0621ee5a14585
MD5 12b25ad4d8a32064c691e108fe1f1542
BLAKE2b-256 f9551bb16050402138d7edcd3dd39d16480f178ec95180d4cd7b81ad4e8fc42e

See more details on using hashes here.

File details

Details for the file asgi_monitor-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: asgi_monitor-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 23.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.12.3 CPython/3.12.2

File hashes

Hashes for asgi_monitor-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 78c0edc241b8beeb57489bbffa6dd4a497cf61ed2e61bda16423cef41f883146
MD5 322813f841a4375e52d88ee0bf3cb300
BLAKE2b-256 fb80e41365c9660f44a02fe5f9f4e71d9b300bb47eaba84f1acc781e7d5cdce7

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