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.5.0.tar.gz (16.8 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.5.0-py3-none-any.whl (23.4 kB view details)

Uploaded Python 3

File details

Details for the file asgi_monitor-0.5.0.tar.gz.

File metadata

  • Download URL: asgi_monitor-0.5.0.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.16.1 CPython/3.12.4 Darwin/23.6.0

File hashes

Hashes for asgi_monitor-0.5.0.tar.gz
Algorithm Hash digest
SHA256 e101c3919ad4afb3b56b73a5165d115da1194de55feb6898c1076e6976120a4c
MD5 72c663456ac6be82f76af0dd30cbae7a
BLAKE2b-256 048e42fe965c2a953b222e2668cd7add89c518ddd3ada1fc2909434777609805

See more details on using hashes here.

File details

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

File metadata

  • Download URL: asgi_monitor-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 23.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.16.1 CPython/3.12.4 Darwin/23.6.0

File hashes

Hashes for asgi_monitor-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c672bd04e7127f771c454b77e5653b5621299236c24995899f92440bec950770
MD5 41a66ad79f6b38c2798a531c051b6980
BLAKE2b-256 414e9029c733535ec9e3beeff6a442fcd28614ea9a00e2936e08ecef7b48842f

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