metrics

package
v13.3.3+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL