metrics

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2016 License: Apache-2.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package metrics defines and exposes instrumentation metrics related to Mesos offers.

Index

Constants

View Source
const (
	OfferExpired   = OfferDeclinedReason("expired")
	OfferRescinded = OfferDeclinedReason("rescinded")
	OfferCompat    = OfferDeclinedReason("compat")
)

Variables

View Source
var (
	OffersReceived = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Subsystem: offerSubsystem,
			Name:      "received",
			Help:      "Counter of offers received from Mesos broken out by slave host.",
		},
		[]string{"hostname"},
	)

	OffersDeclined = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Subsystem: offerSubsystem,
			Name:      "declined",
			Help:      "Counter of offers declined by the framework broken out by slave host.",
		},
		[]string{"hostname", "reason"},
	)

	OffersAcquired = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Subsystem: offerSubsystem,
			Name:      "acquired",
			Help:      "Counter of offers acquired for task launch broken out by slave host.",
		},
		[]string{"hostname"},
	)

	OffersReleased = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Subsystem: offerSubsystem,
			Name:      "released",
			Help:      "Counter of previously-acquired offers later released, broken out by slave host.",
		},
		[]string{"hostname"},
	)
)

Functions

func InMicroseconds

func InMicroseconds(d time.Duration) float64

func Register

func Register()

Types

type OfferDeclinedReason

type OfferDeclinedReason string

Jump to

Keyboard shortcuts

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