metrics

package
v13.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: Apache-2.0 Imports: 11 Imported by: 10 modules, 36 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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