metrics

package
v0.1.12 Latest Latest
Warning

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

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

Documentation

Overview

The metrics package defines controller runtime metrics

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics struct {
	// UncompletedReconcileTs is a sorted slice of start timestamps from the currently running reconcile loops
	// This can be used to calculate stats such as - shortest running reconcile, longest running reconcile, mean time
	UncompletedReconcileTs []int64

	// QueueLength is the number of unprocessed messages in the queue
	QueueLength int

	// MeanCompletionTime gives the average reconcile time over the past 10m
	// TODO: Implement this
	MeanReconcileTime int

	// ReconcileRate gives the average reconcile rate over the past 10m
	// TODO: Implement this
	ReconcileRate int

	// QueueLength is the average queue length over the past 10m
	// TODO: Implement this
	MeanQueueLength int
}

Metrics contains runtime metrics about the controller

Jump to

Keyboard shortcuts

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