Versions in this module Expand all Collapse all v6 v6.4.2 Aug 17, 2020 Changes in this version + var BuildsRunning = &Gauge + var BuildsStarted = &Counter + var ChecksDeleted = &Counter + var ChecksEnqueued = &Counter + var ChecksFinishedWithError = &Counter + var ChecksFinishedWithSuccess = &Counter + var ChecksQueueSize = &Gauge + var ChecksStarted = &Counter + var ConcurrentRequests = map[string]*Gauge + var ConcurrentRequestsLimitHit = map[string]*Counter + var ContainersCreated = &Counter + var ContainersDeleted = &Counter + var DatabaseQueries = &Counter + var Databases []db.Conn + var ErrFailedToEmit = errors.New("failed to emit metric") + var FailedContainers = &Counter + var FailedVolumes = &Counter + var JobsScheduled = &Counter + var JobsScheduling = &Gauge + var TasksWaiting = &Gauge + var VolumesCreated = &Counter + var VolumesDeleted = &Counter + func CountQueries(conn db.Conn) db.Conn + func Deinitialize(logger lager.Logger) + func Initialize(logger lager.Logger, host string, attributes map[string]string, ...) error + func LogLockAcquired(logger lager.Logger, lockID lock.LockID) + func LogLockReleased(logger lager.Logger, lockID lock.LockID) + func PeriodicallyEmit(logger lager.Logger, interval time.Duration) ifrit.Runner + func RegisterEmitter(factory EmitterFactory) + func WireEmitters(group *flags.Group) + func WrapHandler(logger lager.Logger, route string, handler http.Handler) http.Handler + type ArtifactCollectorDuration struct + Duration time.Duration + func (event ArtifactCollectorDuration) Emit(logger lager.Logger) + type BuildCollectorDuration struct + Duration time.Duration + func (event BuildCollectorDuration) Emit(logger lager.Logger) + type BuildFinished struct + BuildDuration time.Duration + BuildID int + BuildName string + BuildStatus db.BuildStatus + JobName string + PipelineName string + TeamName string + func (event BuildFinished) Emit(logger lager.Logger) + type BuildStarted struct + BuildID int + BuildName string + JobName string + PipelineName string + TeamName string + func (event BuildStarted) Emit(logger lager.Logger) + type ContainerCollectorDuration struct + Duration time.Duration + func (event ContainerCollectorDuration) Emit(logger lager.Logger) + type Counter struct + func (m *Counter) Delta() float64 + func (m *Counter) Inc() + func (m *Counter) IncDelta(delta int) + type CreatedContainersToBeGarbageCollected struct + Containers int + func (event CreatedContainersToBeGarbageCollected) Emit(logger lager.Logger) + type CreatedVolumesToBeGarbageCollected struct + Volumes int + func (event CreatedVolumesToBeGarbageCollected) Emit(logger lager.Logger) + type CreatingContainersToBeGarbageCollected struct + Containers int + func (event CreatingContainersToBeGarbageCollected) Emit(logger lager.Logger) + type DestroyingContainersToBeGarbageCollected struct + Containers int + func (event DestroyingContainersToBeGarbageCollected) Emit(logger lager.Logger) + type DestroyingVolumesToBeGarbageCollected struct + Volumes int + func (event DestroyingVolumesToBeGarbageCollected) Emit(logger lager.Logger) + type Emitter interface + Emit func(lager.Logger, Event) + type EmitterFactory interface + Description func() string + IsConfigured func() bool + NewEmitter func() (Emitter, error) + type ErrorLog struct + Message string + Value int + func (e ErrorLog) Emit(logger lager.Logger) + type ErrorSinkCollector struct + func NewErrorSinkCollector(logger lager.Logger) ErrorSinkCollector + func (c *ErrorSinkCollector) Log(f lager.LogFormat) + type Event struct + Attributes map[string]string + Host string + Name string + Time time.Time + Value float64 + type FailedContainersToBeGarbageCollected struct + Containers int + func (event FailedContainersToBeGarbageCollected) Emit(logger lager.Logger) + type FailedVolumesToBeGarbageCollected struct + Volumes int + func (event FailedVolumesToBeGarbageCollected) Emit(logger lager.Logger) + type GarbageCollectionContainerCollectorJobDropped struct + WorkerName string + func (event GarbageCollectionContainerCollectorJobDropped) Emit(logger lager.Logger) + type Gauge struct + func (c *Gauge) Dec() + func (c *Gauge) Inc() + func (c *Gauge) Max() float64 + func (c *Gauge) Set(val int64) + type HTTPResponseTime struct + Duration time.Duration + Method string + Path string + Route string + StatusCode int + func (event HTTPResponseTime) Emit(logger lager.Logger) + type LockAcquired struct + LockType string + func (event LockAcquired) Emit(logger lager.Logger) + type LockReleased struct + LockType string + func (event LockReleased) Emit(logger lager.Logger) + type MetricsHandler struct + Handler http.Handler + Logger lager.Logger + Route string + func (handler MetricsHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) + type ResourceCacheCollectorDuration struct + Duration time.Duration + func (event ResourceCacheCollectorDuration) Emit(logger lager.Logger) + type ResourceCacheUseCollectorDuration struct + Duration time.Duration + func (event ResourceCacheUseCollectorDuration) Emit(logger lager.Logger) + type ResourceConfigCheckSessionCollectorDuration struct + Duration time.Duration + func (event ResourceConfigCheckSessionCollectorDuration) Emit(logger lager.Logger) + type ResourceConfigCollectorDuration struct + Duration time.Duration + func (event ResourceConfigCollectorDuration) Emit(logger lager.Logger) + type SchedulingJobDuration struct + Duration time.Duration + JobID int + JobName string + PipelineName string + func (event SchedulingJobDuration) Emit(logger lager.Logger) + type VolumeCollectorDuration struct + Duration time.Duration + func (event VolumeCollectorDuration) Emit(logger lager.Logger) + type VolumesToBeGarbageCollected struct + Volumes int + func (event VolumesToBeGarbageCollected) Emit(logger lager.Logger) + type WorkerCollectorDuration struct + Duration time.Duration + func (event WorkerCollectorDuration) Emit(logger lager.Logger) + type WorkerContainers struct + Containers int + Platform string + Tags []string + TeamName string + WorkerName string + func (event WorkerContainers) Emit(logger lager.Logger) + type WorkerTasks struct + Platform string + Tasks int + WorkerName string + func (event WorkerTasks) Emit(logger lager.Logger) + type WorkerUnknownContainers struct + Containers int + WorkerName string + func (event WorkerUnknownContainers) Emit(logger lager.Logger) + type WorkerUnknownVolumes struct + Volumes int + WorkerName string + func (event WorkerUnknownVolumes) Emit(logger lager.Logger) + type WorkerVolumes struct + Platform string + Tags []string + TeamName string + Volumes int + WorkerName string + func (event WorkerVolumes) Emit(logger lager.Logger) + type WorkersState struct + WorkerStateByName map[string]db.WorkerState + func (event WorkersState) Emit(logger lager.Logger)