class PrometheusConfig: (source)
Configuration for Prometheus metrics endpoint.
Starts an HTTP server on the given address that exposes a /metrics endpoint for Prometheus scraping.
| Instance Variable | bind |
Address to bind the metrics HTTP server to (e.g. "0.0.0.0:9000" or "127.0.0.1:9090"). Prometheus will scrape http://<bind_address>/metrics. |
| Instance Variable | counters |
If True, append _total suffix to counter metric names, following the OpenMetrics convention. Defaults to False. |
| Instance Variable | durations |
If True, report duration metrics as floating-point seconds instead of integer milliseconds. Defaults to False. |
| Instance Variable | histogram |
Override the default histogram bucket boundaries for specific metrics. Keys are metric names and values are sequences of bucket boundaries (e.g. {"workflow_task_schedule_to_start_latency": [0.01, 0.05, 0.1, 0.5, 1.0, 5.0]}... |
| Instance Variable | unit |
If True, append unit suffixes (e.g. _seconds, _bytes) to metric names. Defaults to False. |
| Method | _to |
Undocumented |
Address to bind the metrics HTTP server to (e.g. "0.0.0.0:9000" or "127.0.0.1:9090"). Prometheus will scrape http://<bind_address>/metrics.
If True, append _total suffix to counter metric names, following the OpenMetrics convention. Defaults to False.
If True, report duration metrics as floating-point seconds instead of integer milliseconds. Defaults to False.
Override the default histogram bucket boundaries for specific metrics. Keys are metric names and values are sequences of bucket boundaries (e.g. {"workflow_task_schedule_to_start_latency": [0.01, 0.05, 0.1, 0.5, 1.0, 5.0]}).