metrics

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ChildStatus is a prometheus gauge that details the state of child objects
	// of the GitTrack
	ChildStatus = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Name: "faros_gittrack_child_status",
		Help: "Shows the status of a GitTracks child objects",
	}, []string{"name", "namespace", "status"})

	// TimeToDeploy is a prometheus histogram that holds the time between a new
	// commit being added to the head of the git tree and the changes being
	// reflected within the GitTrackObjects
	TimeToDeploy = prometheus.NewHistogramVec(prometheus.HistogramOpts{
		Name: "faros_gittrack_time_to_deploy_seconds",
		Help: "Counts the time from commit to deploy of a child resource",
		Buckets: []float64{

			1 * time.Minute.Seconds(),
			2 * time.Minute.Seconds(),
			3 * time.Minute.Seconds(),
			4 * time.Minute.Seconds(),
			5 * time.Minute.Seconds(),
			10 * time.Minute.Seconds(),
			15 * time.Minute.Seconds(),
			20 * time.Minute.Seconds(),
			25 * time.Minute.Seconds(),
			30 * time.Minute.Seconds(),
			40 * time.Minute.Seconds(),
			50 * time.Minute.Seconds(),
			1 * time.Hour.Seconds(),
		},
	}, []string{"name", "namespace", "repository"})
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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