Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Prometheus ¶
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.
Click to show internal directories.
Click to hide internal directories.