prometheus monitor for faust
Project description
Faust Prometheus Monitor
Prometheus Monitor for Faust applications
Usage
import faust
from faust_prometheus_monitor import expose_metrics_http_response, PrometheusMonitor
APP_NAME = "app"
app = faust.App(APP_NAME, monitor=PrometheusMonitor(APP_NAME))
@app.page("/metrics")
async def expose_metrics(self, request):
return expose_metrics_http_response(request)
Metrics collected
Metric | Type | Labels | Description |
---|---|---|---|
faust_message_in | Counter | app, topic, partition | Message received by consumer |
faust_message_out | Counter | app, topic, partition | All streams finished processing message |
faust_stream_event_in | Counter | app, topic, stream | Message sent to a stream as an event |
faust_stream_event_out | Counter | app, topic, stream | Event was acknowledged by stream |
faust_stream_event_latency | Histogram | app, topic, stream | How long the event took to process |
faust_topic_buffer_full | Counter | app, topic | Topic buffer full so conductor had to wait |
faust_table_operations | Counter | app, table, operation | Operations of faust tables (get, set, delete) |
faust_commit_latency | Histogram | app | Latency of consumer committing topic offset |
faust_send_initialized | Counter | app, topic | About to send a message |
faust_send_handled | Counter | app, status | Total number of messages sent regardless of success or failure |
faust_send_latency | Histogram | app | Latency of sending messages |
faust_topic_commit | Gauge | app, topic, partition | Gauge for what offset in topic partition is committed |
faust_topic_end_offset | Gauge | app, topic, partition | Track new topic partition end offset for monitoring lags |
faust_topic_read_offset | Gauge | app, topic, partition | topic partition read offset that consumer is on |
faust_assignment_latency | Histogram | app, status | Partition assignor completion latency regardless success or error |
faust_rebalance_time | Histogram | app, status | Cluster rebalance latency |
faust_rebalance_status | Gauge | app | Cluster rebalance status. 0: rebalance fully completed (including recovery); 1: rebalance started; 2: Consumer replied assignment is done to broker |
faust_web_request_status_codes | Counter | app, status_code | Status code counters on faust web views |
faust_web_request_latency | Histogram | app | Request latency on faust web views |
Project details
Release history Release notifications | RSS feed
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 faust-prometheus-monitor-0.1.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1d6d6c37cdaef519af2342fe8022d4244e50871de93b6f9ce1b486595cb24d9 |
|
MD5 | 09b8e2f204fbde2872b32c7da413461a |
|
BLAKE2b-256 | d68276185cbd843fa948c19f96c956c706baea823621f5188e018d17c9e89ee9 |
Close
Hashes for faust_prometheus_monitor-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0855c57ef7523a66fdc809420df285a644bb9c78b69c70295e9e45db933ce559 |
|
MD5 | 5f26c6488e0cdcdd1844c3630e0bcc7c |
|
BLAKE2b-256 | f638558c2ce16956e3e419ea841c85e39f67c528a37098e078d81c3f78e5f9cb |