metrics

package
v1.0.8-beta Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2015 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package metrics defines and exposes instrumentation metrics of the scheduler.

Index

Constants

This section is empty.

Variables

View Source
var (
	QueueWaitTime = prometheus.NewSummary(
		prometheus.SummaryOpts{
			Subsystem: schedulerSubsystem,
			Name:      "queue_wait_time_microseconds",
			Help:      "Launch queue wait time in microseconds",
		},
	)
	BindLatency = prometheus.NewSummary(
		prometheus.SummaryOpts{
			Subsystem: schedulerSubsystem,
			Name:      "bind_latency_microseconds",
			Help:      "Latency in microseconds between pod-task launch and pod binding.",
		},
	)
	StatusUpdates = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Subsystem: schedulerSubsystem,
			Name:      "status_updates",
			Help:      "Counter of TaskStatus updates, broken out by source, reason, state.",
		},
		[]string{"source", "reason", "state"},
	)
	ReconciliationLatency = prometheus.NewSummary(
		prometheus.SummaryOpts{
			Subsystem: schedulerSubsystem,
			Name:      "reconciliation_latency_microseconds",
			Help:      "Latency in microseconds to execute explicit task reconciliation.",
		},
	)
	ReconciliationRequested = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Subsystem: schedulerSubsystem,
			Name:      "reconciliation_requested",
			Help:      "Counter of requested task reconciliations, broken out by kind.",
		},
		[]string{"kind"},
	)
	ReconciliationExecuted = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Subsystem: schedulerSubsystem,
			Name:      "reconciliation_executed",
			Help:      "Counter of executed task reconciliations requests, broken out by kind.",
		},
		[]string{"kind"},
	)
	ReconciliationCancelled = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Subsystem: schedulerSubsystem,
			Name:      "reconciliation_cancelled",
			Help:      "Counter of cancelled task reconciliations requests, broken out by kind.",
		},
		[]string{"kind"},
	)
)

Functions

func InMicroseconds

func InMicroseconds(d time.Duration) float64

func Register

func Register()

Types

This section is empty.

Jump to

Keyboard shortcuts

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