metrics

package
v0.0.0-...-87f958c Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2015 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package metrics provides methods to instrument the scheduler. Metrics are provided simultaneously in expvar and Prometheus "formats". expvar is automatically mounted in http.DefaultServeMux /debug/vars. Clients need to mount the Prometheus handler manually, via prometheus.Handler().

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IncAgentConnectionsEstablished

func IncAgentConnectionsEstablished(n int)

IncAgentConnectionsEstablished increments the number of connections successfully established to remote agents. That can happen when a scheduler initially starts, or after an existing connection is interrupted.

func IncAgentConnectionsInterrupted

func IncAgentConnectionsInterrupted(n int)

IncAgentConnectionsInterrupted increments the number of times a connection from the scheduler to a remote agent is interrupted.

func IncAgentsLost

func IncAgentsLost(n int)

IncAgentsLost increments the number of times the scheduler has lost communication with an agent for long enough to consider its containers abandoned.

func IncContainerEventsReceived

func IncContainerEventsReceived(n int)

IncContainerEventsReceived increments the number of event-stream events received by the scheduler from an agent.

func IncContainersFailed

func IncContainersFailed(n int)

IncContainersFailed increments the number of containers that weren't able to be placed by a scheduling algorithm.

func IncContainersPlaced

func IncContainersPlaced(n int)

IncContainersPlaced increments the number of containers successfully placed by a scheduling algorithm.

func IncContainersRequested

func IncContainersRequested(n int)

IncContainersRequested increments the number of containers that were requested for placement by a scheduling algorithm.

func IncJobScheduleRequests

func IncJobScheduleRequests(n int)

IncJobScheduleRequests increments the number of requests to schedule new jobs.

func IncJobUnscheduleRequests

func IncJobUnscheduleRequests(n int)

IncJobUnscheduleRequests increments the number of requests to unschedule a job.

func IncTransactionsCreated

func IncTransactionsCreated(n int)

IncTransactionsCreated increments the number of transactions created.

func IncTransactionsFailed

func IncTransactionsFailed(n int)

IncTransactionsFailed increments the number of transactions unsuccessfully resolved.

func IncTransactionsResolved

func IncTransactionsResolved(n int)

IncTransactionsResolved increments the number of transactions successfully resolved.

func IncTransformsExecuted

func IncTransformsExecuted(n int)

IncTransformsExecuted increments the number of transforms executed.

func IncTransformsSkipped

func IncTransformsSkipped(n int)

IncTransformsSkipped increments the number of transforms skipped.

Types

This section is empty.

Jump to

Keyboard shortcuts

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