prom_connector
qoa4ml.connector.prom_connector
¶
Classes¶
PromConnector
¶
Functions¶
render_violation_counts()
¶
Render the current violation counters as Prometheus text payloads.
Replaces the legacy update_violation_count whose name implied
mutation but only called :func:prometheus_client.generate_latest
(a renderer) and threw the result away. Callers can now use the
returned bytes for exposition endpoints.
set(key, num=1)
¶
Set a Gauge or observe a Histogram/Summary value.
Raises ValueError for Counter keys — Counters do not support
set; callers must use :meth:inc instead. Previous silent
translation to .inc(num) masked misuse.