Documentation
¶
Overview ¶
Package metrics mirrors the Prometheus surface emitted by benchmarking/locust/common/metrics.py — same metric names and labels so dashboards built against the Python locust workers keep working when the load source is a boomer-Go worker.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RecordFailure ¶
RecordFailure reports a failed request to both boomer and Prometheus.
func RecordSuccess ¶
RecordSuccess reports a successful request to both boomer (→ locust master via ZMQ) and the local Prometheus surface.
func Serve ¶
Serve starts a /metrics HTTP server on addr. Returns when the server stops (or when ctx is cancelled, after which the server is gracefully shut down).
func UpdateUsers ¶
UpdateUsers shifts the active-users gauge for a class by delta (positive on user start, negative on stop).
Types ¶
This section is empty.