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 ¶
- func IncAgentConnectionsEstablished(n int)
- func IncAgentConnectionsInterrupted(n int)
- func IncAgentsLost(n int)
- func IncContainerEventsReceived(n int)
- func IncContainersFailed(n int)
- func IncContainersPlaced(n int)
- func IncContainersRequested(n int)
- func IncJobScheduleRequests(n int)
- func IncJobUnscheduleRequests(n int)
- func IncTransactionsCreated(n int)
- func IncTransactionsFailed(n int)
- func IncTransactionsResolved(n int)
- func IncTransformsExecuted(n int)
- func IncTransformsSkipped(n int)
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.