Skip to main content

Prometheus integration for blacksheep

Project description

Blacksheep Prometheus

Build Statuscodecov

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.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

blacksheep_prometheus-0.1.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: blacksheep-prometheus-0.1.1.tar.gz
  • Upload date:
  • Size: 3.7 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.1.tar.gz
Algorithm Hash digest
SHA256 1c1d3ba9f002b923b344178d9b8fc4d09f51a2fbbe4ce4155569a1be4d0ee3a7
MD5 3153c5cdb7456559a9c5e1b6771ed7d8
BLAKE2b-256 9f0143ba802109641f42c39be9c20d224a58c0d4c5e0a28d7b1babe350e64e31

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for blacksheep_prometheus-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9e19d809edfbc144de324cd65ada4dff33fb4da8231ff29f4a10e73490bb81ba
MD5 718d08ca9cdcdbfb2afbb87dd4e5415f
BLAKE2b-256 c9c789f80093aa2a5d4c371e41774ae063b193cd4f797d5136b724079728b965

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