metrics

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LaunchFailedOperationsTotal = prometheus.NewCounterVec(
	prometheus.CounterOpts{
		Namespace: "kubernikus",
		Subsystem: "launch",
		Name:      "failed_operation_total",
		Help:      "Number of failed operations."},
	[]string{"method"})
View Source
var LaunchOperationsLatency = prometheus.NewSummaryVec(
	prometheus.SummaryOpts{
		Namespace: "kubernikus",
		Subsystem: "launch",
		Name:      "operation_latency_seconds",
		Help:      "Total duration of reconciliation in microseconds.",
	},
	[]string{"method"})
View Source
var LaunchOperationsTotal = prometheus.NewCounterVec(
	prometheus.CounterOpts{
		Namespace: "kubernikus",
		Subsystem: "launch",
		Name:      "operation_total",
		Help:      "Number of operations."},
	[]string{"method"})
View Source
var LaunchSuccessfulOperationsTotal = prometheus.NewCounterVec(
	prometheus.CounterOpts{
		Namespace: "kubernikus",
		Subsystem: "launch",
		Name:      "successful_operation_total",
		Help:      "Number of successful operations."},
	[]string{"method"})

Functions

func ExposeMetrics

func ExposeMetrics(host string, metricPort int, stopCh <-chan struct{}, wg *sync.WaitGroup, logger log.Logger) error

func SetMetricBootDurationSummary

func SetMetricBootDurationSummary(creationTimestamp, now time.Time)

func SetMetricKlusterInfo

func SetMetricKlusterInfo(namespace, name, version, projectID string, annotations, labels map[string]string)

func SetMetricKlusterStatusPhase

func SetMetricKlusterStatusPhase(klusterName string, klusterPhase models.KlusterPhase)

kubernikus_kluster_status_phase{"kluster_id"="<id>","phase"="<phase>"} < 1|0 > kubernikus_kluster_status_phase{"kluster_id"="<id>","phase"="creating"} 1 kubernikus_kluster_status_phase{"kluster_id"="<id>","phase"="running"} 0 kubernikus_kluster_status_phase{"kluster_id"="<id>","phase"="pending"} 0 kubernikus_kluster_status_phase{"kluster_id"="<id>","phase"="terminating"} 0

func SetMetricKlusterTerminated

func SetMetricKlusterTerminated(klusterName string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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