metrics

package
v0.0.0-...-a69e935 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2019 License: Apache-2.0 Imports: 3 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics struct {
	LaunchTasks              tally.Counter
	LaunchTasksFail          tally.Counter
	LaunchTasksInvalid       tally.Counter
	LaunchTasksInvalidOffers tally.Counter

	AcquireHostOffers        tally.Counter
	AcquireHostOffersFail    tally.Counter
	AcquireHostOffersInvalid tally.Counter
	AcquireHostOffersCount   tally.Counter

	GetHosts        tally.Counter
	GetHostsInvalid tally.Counter
	GetHostsCount   tally.Counter

	KillTasks     tally.Counter
	KillTasksFail tally.Counter

	ShutdownExecutors        tally.Counter
	ShutdownExecutorsInvalid tally.Counter
	ShutdownExecutorsFail    tally.Counter

	ReleaseHostOffers     tally.Counter
	ReleaseHostOffersFail tally.Counter
	ReleaseHostsCount     tally.Counter

	GetMesosMasterHostPort     tally.Counter
	GetMesosMasterHostPortFail tally.Counter

	Elected         tally.Gauge
	MesosConnected  tally.Gauge
	HandlersRunning tally.Gauge

	ClusterCapacity     tally.Counter
	ClusterCapacityFail tally.Counter

	RecoverySuccess tally.Counter
	RecoveryFail    tally.Counter

	GetDrainingHosts     tally.Counter
	GetDrainingHostsFail tally.Counter

	MarkHostDrained     tally.Counter
	MarkHostDrainedFail tally.Counter

	WatchEventCancel   tally.Counter
	WatchEventOverflow tally.Counter

	WatchCancelNotFound tally.Counter

	// Time takes to acquire lock in watch processor
	WatchProcessorLockDuration tally.Timer

	GetCqosAdvisorMetric     tally.Counter
	GetCqosAdvisorMetricFail tally.Counter
	// contains filtered or unexported fields
}

Metrics is a placeholder for all metrics in hostmgr.

func NewMetrics

func NewMetrics(scope tally.Scope) *Metrics

NewMetrics returns a new instance of hostmgr.Metrics.

func (*Metrics) RefreshClusterCapacityGauges

func (m *Metrics) RefreshClusterCapacityGauges(response *hostsvc.ClusterCapacityResponse)

RefreshClusterCapacityGauges refreshes all the cluster capacity gauges

Jump to

Keyboard shortcuts

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