Documentation ¶
Index ¶
- Variables
- func CountQueries(conn db.Conn) db.Conn
- func Initialize(logger lager.Logger, host string, attributes map[string]string)
- func PeriodicallyEmit(logger lager.Logger, interval time.Duration)
- func RegisterEmitter(factory EmitterFactory)
- func SetupConnectionCountingDriver(delegateDriverName, sqlDataSource, newDriverName string)
- func WireEmitters(group *flags.Group)
- func WrapHandler(logger lager.Logger, route string, handler http.Handler) http.Handler
- type BuildFinished
- type BuildStarted
- type Conn
- type Driver
- type Emitter
- type EmitterFactory
- type Event
- type EventState
- type Gauge
- type HTTPResponseTime
- type Meter
- type MetricsHandler
- type SchedulingFullDuration
- type SchedulingJobDuration
- type SchedulingLoadVersionsDuration
- type WorkerContainers
- type WorkerVolumes
Constants ¶
This section is empty.
Variables ¶
View Source
var DatabaseConnections = &Gauge{}
View Source
var DatabaseQueries = Meter(0)
Functions ¶
func RegisterEmitter ¶
func RegisterEmitter(factory EmitterFactory)
func SetupConnectionCountingDriver ¶
func SetupConnectionCountingDriver(delegateDriverName, sqlDataSource, newDriverName string)
func WireEmitters ¶
Types ¶
type BuildFinished ¶
type BuildFinished struct { PipelineName string JobName string BuildName string BuildID int BuildStatus db.BuildStatus BuildDuration time.Duration }
func (BuildFinished) Emit ¶
func (event BuildFinished) Emit(logger lager.Logger)
type BuildStarted ¶
func (BuildStarted) Emit ¶
func (event BuildStarted) Emit(logger lager.Logger)
type EmitterFactory ¶
type EventState ¶
type EventState string
const EventStateCritical EventState = "critical"
const EventStateOK EventState = "ok"
const EventStateWarning EventState = "warning"
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 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 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.