measure

package
v0.22.88 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2017 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// FunctionDurations - Create a summary to track elapsed time of our key functions
	FunctionDurations = prometheus.NewSummaryVec(
		prometheus.SummaryOpts{
			Name:       "function_durations_seconds",
			Help:       "Function timings for Rancher Exporter",
			Objectives: map[float64]float64{0.5: 0.05, 0.9: 0.01, 0.99: 0.001},
		}, []string{"pkg", "fnc"})

	// FunctionCountTotal - Create a counter to track total executions of the functions
	FunctionCountTotal = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "function_count_totals",
			Help: "total count of function calls",
		}, []string{"pkg", "fnc"})
)

Functions

func Init

func Init()

Init registers the prometheus metrics for the measurement of the exporter itsself.

Types

This section is empty.

Jump to

Keyboard shortcuts

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