metrics

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// CreateFailures is a metric for the number of failures to create a release
	CreateFailures = prometheus.NewCounter(prometheus.CounterOpts{
		Help:      "The number of failed create events",
		Name:      "create_error_total",
		Namespace: "releases",
	})

	// CreatedReleases is a metric for the number of releases created by this operator
	CreatedReleases = prometheus.NewCounter(prometheus.CounterOpts{
		Help:      "The number of successful create events",
		Name:      "create_total",
		Namespace: "releases",
	})

	// RemoteRepoReleases is a metric for the number of releases created through remote repo
	RemoteRepoReleases = prometheus.NewCounter(prometheus.CounterOpts{
		Help:      "The number of remote repo releases",
		Name:      "remote_repo_total",
		Namespace: "releases",
	})

	// RemoteRepoError is a metric for the number of failures while accessing remote repo
	RemoteRepoError = prometheus.NewCounter(prometheus.CounterOpts{
		Help:      "The number of remote repo releases",
		Name:      "remote_repo_error_total",
		Namespace: "releases",
	})

	// LastSuccessfulCreate is a timestamp in UTC seconds of the last successful create event
	LastSuccessfulCreate = prometheus.NewGauge(prometheus.GaugeOpts{
		Help:      "A Unix timestamp (UTC) in seconds of the last successful create event",
		Name:      "last_create_timestamp_utc_seconds",
		Namespace: "releases",
	})

	// DeleteFailures is a metric for the number of times a delete by this operator
	DeleteFailures = prometheus.NewCounter(prometheus.CounterOpts{
		Help:      "The number of failed delete events",
		Name:      "delete_error_total",
		Namespace: "releases",
	})

	// DeletedReleases is a metric for the number of releases deleted by this operator
	DeletedReleases = prometheus.NewCounter(prometheus.CounterOpts{
		Help:      "The number of successful delete events",
		Name:      "delete_total",
		Namespace: "releases",
	})

	// LastSuccessfulDelete is a timestamp in UTC seconds of the last successful delete event
	LastSuccessfulDelete = prometheus.NewGauge(prometheus.GaugeOpts{
		Help:      "A Unix timestamp (UTC) in seconds of the last successful delete event",
		Name:      "last_delete_timestamp_utc_seconds",
		Namespace: "releases",
	})

	// ManagedReleases is a metric of the number of current releases managed by the operator
	ManagedReleases = prometheus.NewGauge(prometheus.GaugeOpts{
		Help:      "The number of releases managed by this operator",
		Name:      "total",
		Namespace: "releases",
	})

	// UpdateFailures is a metric for the number of times an update operation failed by this operator
	UpdateFailures = prometheus.NewCounter(prometheus.CounterOpts{
		Help:      "The number of failed update events",
		Name:      "update_error_total",
		Namespace: "releases",
	})

	// UpdatedReleases is a metric for the number of releases updated successfully
	UpdatedReleases = prometheus.NewCounter(prometheus.CounterOpts{
		Help:      "The number of successful update events",
		Name:      "update_total",
		Namespace: "releases",
	})

	// LastSuccessfulUpdate is a timestamp in UTC seconds of the last successful update event
	LastSuccessfulUpdate = prometheus.NewGauge(prometheus.GaugeOpts{
		Help:      "A Unix timestamp (UTC) in seconds of the last successful update event",
		Name:      "last_update_timestamp_utc_seconds",
		Namespace: "releases",
	})

	// TotalEvents is a metric for the number of events that have been handled by this operator
	TotalEvents = prometheus.NewCounter(prometheus.CounterOpts{
		Help:      "The number of events (create/delete/updates) processed by this operator",
		Name:      "events_total",
		Namespace: "releases",
	})
)

https://prometheus.io/docs/practices/naming/ is what we are basing naming conventions off of.

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