All Projects → hynek → prometheus-async

hynek / prometheus-async

Licence: Apache-2.0 license
Async helpers for prometheus_client.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to prometheus-async

aioScrapy
基于asyncio与aiohttp的异步协程爬虫框架 欢迎Star
Stars: ✭ 34 (-75%)
Mutual labels:  twisted, asyncio
Eliot
Eliot: the logging system that tells you *why* it happened
Stars: ✭ 874 (+542.65%)
Mutual labels:  twisted, asyncio
Umongo
sync/async MongoDB ODM, yes.
Stars: ✭ 331 (+143.38%)
Mutual labels:  twisted, asyncio
Arsenic
Async WebDriver implementation for asyncio and asyncio-compatible frameworks
Stars: ✭ 209 (+53.68%)
Mutual labels:  twisted, asyncio
Requests Threads
🎭 Twisted Deferred Thread backend for Requests.
Stars: ✭ 366 (+169.12%)
Mutual labels:  twisted, asyncio
Pyee
A port of Node.js's EventEmitter to python
Stars: ✭ 236 (+73.53%)
Mutual labels:  twisted, asyncio
kafka-consumer-lag-monitoring
Client tool that exports the consumer lag of Kafka consumer groups to Prometheus or your terminal
Stars: ✭ 45 (-66.91%)
Mutual labels:  prometheus-exporter
swift-nio-redis
A high performance Redis protocol (RESP) implementation for SwiftNIO
Stars: ✭ 27 (-80.15%)
Mutual labels:  asyncio
egg-exporter
Egg.js 的 Prometheus 指标收集插件,附带 Grafana 看板。
Stars: ✭ 24 (-82.35%)
Mutual labels:  prometheus-exporter
vrops-exporter
Prometheus exporter running python to get metrics out of VMware vRealize Operations
Stars: ✭ 16 (-88.24%)
Mutual labels:  prometheus-exporter
async cron
crontab for python,with asyncio
Stars: ✭ 23 (-83.09%)
Mutual labels:  asyncio
pagerduty-exporter
Prometheus exporter for PagerDuty informations
Stars: ✭ 38 (-72.06%)
Mutual labels:  prometheus-exporter
ansible-blackbox-exporter
Blackbox prober exporter
Stars: ✭ 60 (-55.88%)
Mutual labels:  prometheus-exporter
modbus exporter
Exporter which retrieves stats from a modbus system and exports them via HTTP for Prometheus consumption.
Stars: ✭ 16 (-88.24%)
Mutual labels:  prometheus-exporter
tinkoff-api
Python Tinkoff API client for asyncio and humans
Stars: ✭ 60 (-55.88%)
Mutual labels:  asyncio
pgbouncer exporter
Prometheus exporter for Pgbouncer metrics.
Stars: ✭ 19 (-86.03%)
Mutual labels:  prometheus-exporter
callsign
Small DNS service to support local development. Provides the functionality of cloud-based DNS services on your local machine, allowing automated deployment simulations on the desktop.
Stars: ✭ 42 (-69.12%)
Mutual labels:  twisted
temp-probe-exporter
Export Prometheus data from 1-Wire temperature sensors, using an Arduino or Linux system
Stars: ✭ 17 (-87.5%)
Mutual labels:  prometheus-exporter
tado-exporter
A Prometheus exporter for tado smart heating solution
Stars: ✭ 32 (-76.47%)
Mutual labels:  prometheus-exporter
opentracing-metrics-tracer
Exports cross-process metrics via OpenTracing to Prometheus.
Stars: ✭ 13 (-90.44%)
Mutual labels:  prometheus-exporter

prometheus-async

Documentation License: Apache 2.0 PyPI version Downloads / Month

prometheus-async adds support for asynchronous frameworks to the official Python client for the Prometheus metrics and monitoring system.

Currently asyncio and Twisted on Python 3.7 and later are supported.

It works by wrapping the metrics from the official client:

import asyncio

from aiohttp import web
from prometheus_client import Histogram
from prometheus_async.aio import time

REQ_TIME = Histogram("req_time_seconds", "time spent in requests")

@time(REQ_TIME)
async def req(request):
      await asyncio.sleep(1)
      return web.Response(body=b"hello")

Even for synchronous applications, the metrics exposure methods can be useful since they are more powerful than the one shipped with the official client. For that, helper functions have been added that run them in separate threads (asyncio-only).

The source code is hosted on GitHub and the documentation on Read The Docs.

prometheus-async for Enterprise

Available as part of the Tidelift Subscription.

The maintainers of prometheus-async and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source packages you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact packages you use. Learn more.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].