metrics

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2019 License: Apache-2.0 Imports: 4 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Prometheus

type Prometheus struct {
	RunMetrics <-chan run.Result
	// contains filtered or unexported fields
}

Prometheus implements instrumentation of metrics for kube-applier. fileApplyCount is a Counter vector to increment the number of successful and failed apply attempts for each file in the repo. runLatency is a Summary vector that keeps track of the duration for apply runs.

func (*Prometheus) Configure added in v0.2.0

func (p *Prometheus) Configure()

Configure creates and registers the custom metrics for kube-applier, and starts a loop to receive run results.

func (*Prometheus) GetHandler

func (p *Prometheus) GetHandler() http.Handler

GetHandler returns a handler for exposing Prometheus metrics via HTTP.

func (*Prometheus) StartMetricsLoop added in v0.2.0

func (p *Prometheus) StartMetricsLoop()

StartMetricsLoop receives from the RunMetrics channel and calls processResult when a run result comes in.

Jump to

Keyboard shortcuts

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