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 ¶
Types ¶
type OfferDeclinedReason ¶
type OfferDeclinedReason string
Click to show internal directories.
Click to hide internal directories.