Documentation ¶
Index ¶
- Variables
- func CountQueries(conn db.Conn) db.Conn
- func Initialize(logger lager.Logger, host string, attributes map[string]string) error
- func PeriodicallyEmit(logger lager.Logger, interval time.Duration)
- func RegisterEmitter(factory EmitterFactory)
- func WireEmitters(group *flags.Group)
- func WrapHandler(logger lager.Logger, route string, handler http.Handler) http.Handler
- type BuildFinished
- type BuildStarted
- type CreatedContainersToBeGarbageCollected
- type CreatedVolumesToBeGarbageCollected
- type CreatingContainersToBeGarbageCollected
- type DestroyingContainersToBeGarbageCollected
- type DestroyingVolumesToBeGarbageCollected
- type Emitter
- type EmitterFactory
- type Event
- type EventState
- type FailedContainersToBeGarbageCollected
- type FailedVolumesToBeGarbageCollected
- type GarbageCollectionContainerCollectorJobDropped
- type Gauge
- type HTTPResponseTime
- type Meter
- type MetricsHandler
- type ResourceCheck
- type SchedulingFullDuration
- type SchedulingJobDuration
- type SchedulingLoadVersionsDuration
- type VolumesToBeGarbageCollected
- type WorkerContainers
- type WorkerVolumes
Constants ¶
This section is empty.
Variables ¶
View Source
var ContainersCreated = Meter(0)
View Source
var ContainersDeleted = Meter(0)
View Source
var DatabaseQueries = Meter(0)
View Source
var Databases []db.Conn
View Source
var FailedContainers = Meter(0)
View Source
var FailedVolumes = Meter(0)
View Source
var VolumesCreated = Meter(0)
View Source
var VolumesDeleted = Meter(0)
Functions ¶
func Initialize ¶
func RegisterEmitter ¶
func RegisterEmitter(factory EmitterFactory)
func WireEmitters ¶
Types ¶
type BuildFinished ¶
type BuildFinished struct { PipelineName string JobName string BuildName string BuildID int BuildStatus db.BuildStatus BuildDuration time.Duration TeamName string }
func (BuildFinished) Emit ¶
func (event BuildFinished) Emit(logger lager.Logger)
type BuildStarted ¶
type BuildStarted struct { PipelineName string JobName string BuildName string BuildID int TeamName string }
func (BuildStarted) Emit ¶
func (event BuildStarted) Emit(logger lager.Logger)
type CreatedContainersToBeGarbageCollected ¶
type CreatedContainersToBeGarbageCollected struct {
Containers int
}
func (CreatedContainersToBeGarbageCollected) Emit ¶
func (event CreatedContainersToBeGarbageCollected) Emit(logger lager.Logger)
type CreatedVolumesToBeGarbageCollected ¶
type CreatedVolumesToBeGarbageCollected struct {
Volumes int
}
func (CreatedVolumesToBeGarbageCollected) Emit ¶
func (event CreatedVolumesToBeGarbageCollected) Emit(logger lager.Logger)
type CreatingContainersToBeGarbageCollected ¶
type CreatingContainersToBeGarbageCollected struct {
Containers int
}
func (CreatingContainersToBeGarbageCollected) Emit ¶
func (event CreatingContainersToBeGarbageCollected) Emit(logger lager.Logger)
type DestroyingContainersToBeGarbageCollected ¶
type DestroyingContainersToBeGarbageCollected struct {
Containers int
}
func (DestroyingContainersToBeGarbageCollected) Emit ¶
func (event DestroyingContainersToBeGarbageCollected) Emit(logger lager.Logger)
type DestroyingVolumesToBeGarbageCollected ¶
type DestroyingVolumesToBeGarbageCollected struct {
Volumes int
}
func (DestroyingVolumesToBeGarbageCollected) Emit ¶
func (event DestroyingVolumesToBeGarbageCollected) Emit(logger lager.Logger)
type EmitterFactory ¶
type EventState ¶
type EventState string
const EventStateCritical EventState = "critical"
const EventStateOK EventState = "ok"
const EventStateWarning EventState = "warning"
type FailedContainersToBeGarbageCollected ¶
type FailedContainersToBeGarbageCollected struct {
Containers int
}
func (FailedContainersToBeGarbageCollected) Emit ¶
func (event FailedContainersToBeGarbageCollected) Emit(logger lager.Logger)
type FailedVolumesToBeGarbageCollected ¶
type FailedVolumesToBeGarbageCollected struct {
Volumes int
}
func (FailedVolumesToBeGarbageCollected) Emit ¶
func (event FailedVolumesToBeGarbageCollected) Emit(logger lager.Logger)
type GarbageCollectionContainerCollectorJobDropped ¶
type GarbageCollectionContainerCollectorJobDropped struct {
WorkerName string
}
func (GarbageCollectionContainerCollectorJobDropped) Emit ¶
func (event GarbageCollectionContainerCollectorJobDropped) Emit(logger lager.Logger)
type HTTPResponseTime ¶
func (HTTPResponseTime) Emit ¶
func (event HTTPResponseTime) Emit(logger lager.Logger)
type MetricsHandler ¶
func (MetricsHandler) ServeHTTP ¶
func (handler MetricsHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type ResourceCheck ¶
func (ResourceCheck) Emit ¶
func (event ResourceCheck) Emit(logger lager.Logger)
type SchedulingFullDuration ¶
func (SchedulingFullDuration) Emit ¶
func (event SchedulingFullDuration) Emit(logger lager.Logger)
type SchedulingJobDuration ¶
func (SchedulingJobDuration) Emit ¶
func (event SchedulingJobDuration) Emit(logger lager.Logger)
type SchedulingLoadVersionsDuration ¶
func (SchedulingLoadVersionsDuration) Emit ¶
func (event SchedulingLoadVersionsDuration) Emit(logger lager.Logger)
type VolumesToBeGarbageCollected ¶
type VolumesToBeGarbageCollected struct {
Volumes int
}
func (VolumesToBeGarbageCollected) Emit ¶
func (event VolumesToBeGarbageCollected) Emit(logger lager.Logger)
type WorkerContainers ¶
func (WorkerContainers) Emit ¶
func (event WorkerContainers) Emit(logger lager.Logger)
type WorkerVolumes ¶
func (WorkerVolumes) Emit ¶
func (event WorkerVolumes) Emit(logger lager.Logger)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.