Documentation ¶
Overview ¶
Package metrics contains support for reporting metrics to an external server, currently a Prometheus pushgateway. Because plz runs as a transient process we can't wait around for Prometheus to call us, we've got to push to them.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitFromConfig ¶
func InitFromConfig(config *core.Configuration)
InitFromConfig sets up the initial metrics from the configuration.
func Record ¶
func Record(target *core.BuildTarget, duration time.Duration)
Record records metrics for the given target.
func Stop ¶
func Stop()
Stop shuts down the metrics and ensures the final ones are sent before returning.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.