Skip to main content

Prometheus integration for blacksheep

Project description

Blacksheep Prometheus

Build Status codecov Package Version PyPI Version

Introduction

Prometheus integration for Blacksheep.

Requirements

  • Python 3.6+
  • Blacksheep 1.0.7+

Installation

$ pip install blacksheep-prometheus

Usage

A complete example that exposes prometheus metrics endpoint under /metrics/ path.

from blacksheep.server import Application
from blacksheep_prometheus import PrometheusMiddleware, metrics

app = Application()

app.middlewares.append(PrometheusMiddleware())
app.router.add_get('/metrics/', metrics)

Contributing

This project is absolutely open to contributions so if you have a nice idea, create an issue to let the community discuss it.

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

blacksheep-prometheus-0.1.4.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

blacksheep_prometheus-0.1.4-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file blacksheep-prometheus-0.1.4.tar.gz.

File metadata

  • Download URL: blacksheep-prometheus-0.1.4.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.8.10 Linux/5.8.0-1033-azure

File hashes

Hashes for blacksheep-prometheus-0.1.4.tar.gz
Algorithm Hash digest
SHA256 59211dd87a677bb2a994fe2e75ae67ca2031bcf01744add098308649ed62cc78
MD5 3b326cfec1803910ee30742becb6e422
BLAKE2b-256 2dc0cba54b46380b809b30f39e6e568499685805500c65267ca0191ef6d608cc

See more details on using hashes here.

File details

Details for the file blacksheep_prometheus-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for blacksheep_prometheus-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c0b15ad5ff66deb78036db39dea5bdf34ed34cc77aa565b4bfc8b312c95f7de9
MD5 50b4f864beaf8b013a0994813c8dbea1
BLAKE2b-256 9746b0e6b8b68e29e09ca64d671162e8485b05a33796911bd9a42dd0fd3df84e

See more details on using hashes here.

Supported by

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