Prometheus integration for blacksheep
Project description
Blacksheep Prometheus
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
Built Distribution
Close
Hashes for blacksheep-prometheus-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c1d3ba9f002b923b344178d9b8fc4d09f51a2fbbe4ce4155569a1be4d0ee3a7 |
|
MD5 | 3153c5cdb7456559a9c5e1b6771ed7d8 |
|
BLAKE2b-256 | 9f0143ba802109641f42c39be9c20d224a58c0d4c5e0a28d7b1babe350e64e31 |
Close
Hashes for blacksheep_prometheus-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e19d809edfbc144de324cd65ada4dff33fb4da8231ff29f4a10e73490bb81ba |
|
MD5 | 718d08ca9cdcdbfb2afbb87dd4e5415f |
|
BLAKE2b-256 | c9c789f80093aa2a5d4c371e41774ae063b193cd4f797d5136b724079728b965 |