metrics

package
v0.0.0-...-c0686e8 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics struct {
	// Running indicates if the scheduler is currently running or not
	Running tally.Gauge

	// TaskLaunchDispatches counts the number of times we call into
	// the task launcher to request tasks to be launched and it succeeds
	// NOTE: one increment can correspond to multiple mesos
	// tasks being launched
	TaskLaunchDispatches tally.Counter

	// TaskLaunchDispatchesFail counts the number of times we call
	// into the task launcher to request tasks to be launched and it fails
	// NOTE: one increment can correspond to multiple mesos
	// tasks being launched
	TaskLaunchDispatchesFail tally.Counter

	// TasksDequeued is gauge which measures the number of tasks dequeued by the
	// placement engine in a single placement cycle.
	TasksDequeued tally.Gauge

	// OfferStarved indicates the number of times the scheduler
	// attempted to get an Offer to request a task launch, but was
	// returned an empty set.
	OfferStarved tally.Counter

	// OfferGet indicates the number of times the scheduler requested
	// an Offer and it was fulfilled successfully
	OfferGet tally.Counter

	// OfferGet indicates the number of times the scheduler requested
	// an Offer and it failed
	OfferGetFail tally.Counter

	// LaunchTask is the number of mesos tasks launched. This is a
	// many:1 relationship with offers launched into
	LaunchTask tally.Counter

	// LaunchTaskFail is the number of mesos tasks failed to
	// launch. This is a many:1 relationship with offers
	LaunchTaskFail tally.Counter

	// LaunchOfferAccept is the number of mesos offers that were accepted
	LaunchOfferAccept tally.Counter

	// LaunchOfferAcceptFail is the number of mesos offers that failed
	// to be accepted
	LaunchOfferAcceptFail tally.Counter

	// SetPlacementSuccess counts the number of tasks we put the placement
	// in resource manager
	SetPlacementSuccess tally.Counter

	// SetPlacementFail counts the number of tasks failed to be placed
	SetPlacementFail tally.Counter

	// CreatePlacementDuration is the timer for create placement
	CreatePlacementDuration tally.Timer

	// SetPlacementDuration is the timer for set placement
	SetPlacementDuration tally.Timer

	// HostGet indicates the number of times the scheduler requested
	// hosts and it was fulfilled successfully
	HostGet tally.Counter

	// HostGetFail indicates the number of times the scheduler requested
	// an Host and it failed
	HostGetFail tally.Counter

	// TaskAffinityFail indicates failure on host manager to return
	// host with affinity constraint satisfied.
	TaskAffinityFail tally.Counter
}

Metrics contains all the metrics relevant to the scheduler

func NewMetrics

func NewMetrics(scope tally.Scope) *Metrics

NewMetrics returns a new Metrics struct with all metrics initialized and rooted below the given tally scope

Jump to

Keyboard shortcuts

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