Documentation ¶
Index ¶
- type Collector
- type DatadogCollector
- func (dc *DatadogCollector) AminoDeployTimedOut(name, repo, ref string)
- func (dc *DatadogCollector) ContainerBuildAllDuration(name, repo, ref string, duration time.Duration, err error)
- func (dc *DatadogCollector) ContainerBuildDuration(name, repo, ref, depRepo, depRef string, duration time.Duration, err error)
- func (dc *DatadogCollector) EnvironmentCount(repo string, status models.EnvironmentStatus, num uint)
- func (dc *DatadogCollector) EventCountExceededDropped(name, repo, ref string)
- func (dc *DatadogCollector) EventRateLimitDropped(name string)
- func (dc *DatadogCollector) Failure(name, repo, ref string)
- func (dc *DatadogCollector) ImageBuildFailed(name, repo, ref string)
- func (dc *DatadogCollector) Operation(op, name, repo, ref string, err error)
- func (dc *DatadogCollector) ProvisioningDuration(name, repo, ref string, duration time.Duration, err error)
- func (dc *DatadogCollector) Pruned(count int)
- func (dc *DatadogCollector) Reaped(name, repo string, reason models.QADestroyReason, err error)
- func (dc *DatadogCollector) Success(name, repo, ref string)
- func (dc *DatadogCollector) TimeContainerBuild(name, repo, ref, depRepo, depRef string, err *error) func()
- func (dc *DatadogCollector) TimeContainerBuildAll(name, repo, ref string, err *error) func()
- func (dc *DatadogCollector) TimeProvisioning(name, repo, ref string, err *error) func()
- type FakeCollector
- func (fc *FakeCollector) AminoDeployTimedOut(name, repo, ref string)
- func (fc *FakeCollector) ContainerBuildAllDuration(name, repo, ref string, duration time.Duration, err error)
- func (fc *FakeCollector) ContainerBuildDuration(name, repo, ref, depRepo, depRef string, duration time.Duration, err error)
- func (fc *FakeCollector) EnvironmentCount(repo string, status models.EnvironmentStatus, num uint)
- func (fc *FakeCollector) EventCountExceededDropped(name, repo, ref string)
- func (fc *FakeCollector) EventRateLimitDropped(name string)
- func (fc *FakeCollector) Failure(name, repo, ref string)
- func (fc *FakeCollector) ImageBuildFailed(name, repo, ref string)
- func (fc *FakeCollector) Operation(op, name, repo, ref string, err error)
- func (fc *FakeCollector) ProvisioningDuration(name, repo, ref string, duration time.Duration, err error)
- func (fc *FakeCollector) Pruned(count int)
- func (fc *FakeCollector) Reaped(name, repo string, reason models.QADestroyReason, err error)
- func (fc *FakeCollector) Success(name, repo, ref string)
- func (fc *FakeCollector) TimeContainerBuild(name, repo, ref, depRepo, depRef string, err *error) func()
- func (fc *FakeCollector) TimeContainerBuildAll(name, repo, ref string, err *error) func()
- func (fc *FakeCollector) TimeProvisioning(name, repo, ref string, err *error) func()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector interface { Success(name, repo, ref string) Failure(name, repo, ref string) EventRateLimitDropped(name string) EventCountExceededDropped(name, repo, ref string) Operation(op, name, repo, ref string, err error) ProvisioningDuration(name, repo, ref string, duration time.Duration, err error) ContainerBuildAllDuration(name, repo, ref string, duration time.Duration, err error) ContainerBuildDuration(name, repo, ref, depRepo, depRef string, duration time.Duration, err error) EnvironmentCount(repo string, status models.EnvironmentStatus, num uint) Pruned(count int) Reaped(name, repo string, reason models.QADestroyReason, err error) TimeContainerBuildAll(name, repo, ref string, err *error) func() TimeProvisioning(name, repo, ref string, err *error) func() TimeContainerBuild(name, repo, ref, depRepo, depRef string, err *error) func() AminoDeployTimedOut(name, repo, ref string) ImageBuildFailed(name, repo, ref string) }
Collector describes an object capabale of pushing metrics somewhere
type DatadogCollector ¶
type DatadogCollector struct {
// contains filtered or unexported fields
}
DatadogCollector represents a collector that pushes metrics to Datadog
func NewDatadogCollector ¶
func NewDatadogCollector(addr string, logger *log.Logger) (*DatadogCollector, error)
NewDatadogCollector returns a DatadogCollector using dogstatsd at addr
func (*DatadogCollector) AminoDeployTimedOut ¶
func (dc *DatadogCollector) AminoDeployTimedOut(name, repo, ref string)
func (*DatadogCollector) ContainerBuildAllDuration ¶
func (dc *DatadogCollector) ContainerBuildAllDuration(name, repo, ref string, duration time.Duration, err error)
func (*DatadogCollector) ContainerBuildDuration ¶
func (dc *DatadogCollector) ContainerBuildDuration(name, repo, ref, depRepo, depRef string, duration time.Duration, err error)
func (*DatadogCollector) EnvironmentCount ¶
func (dc *DatadogCollector) EnvironmentCount(repo string, status models.EnvironmentStatus, num uint)
func (*DatadogCollector) EventCountExceededDropped ¶
func (dc *DatadogCollector) EventCountExceededDropped(name, repo, ref string)
func (*DatadogCollector) EventRateLimitDropped ¶
func (dc *DatadogCollector) EventRateLimitDropped(name string)
func (*DatadogCollector) Failure ¶
func (dc *DatadogCollector) Failure(name, repo, ref string)
func (*DatadogCollector) ImageBuildFailed ¶
func (dc *DatadogCollector) ImageBuildFailed(name, repo, ref string)
func (*DatadogCollector) Operation ¶
func (dc *DatadogCollector) Operation(op, name, repo, ref string, err error)
func (*DatadogCollector) ProvisioningDuration ¶
func (dc *DatadogCollector) ProvisioningDuration(name, repo, ref string, duration time.Duration, err error)
func (*DatadogCollector) Pruned ¶
func (dc *DatadogCollector) Pruned(count int)
func (*DatadogCollector) Reaped ¶
func (dc *DatadogCollector) Reaped(name, repo string, reason models.QADestroyReason, err error)
func (*DatadogCollector) Success ¶
func (dc *DatadogCollector) Success(name, repo, ref string)
func (*DatadogCollector) TimeContainerBuild ¶
func (dc *DatadogCollector) TimeContainerBuild(name, repo, ref, depRepo, depRef string, err *error) func()
func (*DatadogCollector) TimeContainerBuildAll ¶
func (dc *DatadogCollector) TimeContainerBuildAll(name, repo, ref string, err *error) func()
func (*DatadogCollector) TimeProvisioning ¶
func (dc *DatadogCollector) TimeProvisioning(name, repo, ref string, err *error) func()
type FakeCollector ¶
type FakeCollector struct{}
FakeCollector satisfies the Collector interface but does nothing
func (*FakeCollector) AminoDeployTimedOut ¶
func (fc *FakeCollector) AminoDeployTimedOut(name, repo, ref string)
func (*FakeCollector) ContainerBuildAllDuration ¶
func (fc *FakeCollector) ContainerBuildAllDuration(name, repo, ref string, duration time.Duration, err error)
func (*FakeCollector) ContainerBuildDuration ¶
func (fc *FakeCollector) ContainerBuildDuration(name, repo, ref, depRepo, depRef string, duration time.Duration, err error)
func (*FakeCollector) EnvironmentCount ¶
func (fc *FakeCollector) EnvironmentCount(repo string, status models.EnvironmentStatus, num uint)
func (*FakeCollector) EventCountExceededDropped ¶
func (fc *FakeCollector) EventCountExceededDropped(name, repo, ref string)
func (*FakeCollector) EventRateLimitDropped ¶
func (fc *FakeCollector) EventRateLimitDropped(name string)
func (*FakeCollector) Failure ¶
func (fc *FakeCollector) Failure(name, repo, ref string)
func (*FakeCollector) ImageBuildFailed ¶
func (fc *FakeCollector) ImageBuildFailed(name, repo, ref string)
func (*FakeCollector) Operation ¶
func (fc *FakeCollector) Operation(op, name, repo, ref string, err error)
func (*FakeCollector) ProvisioningDuration ¶
func (fc *FakeCollector) ProvisioningDuration(name, repo, ref string, duration time.Duration, err error)
func (*FakeCollector) Pruned ¶
func (fc *FakeCollector) Pruned(count int)
func (*FakeCollector) Reaped ¶
func (fc *FakeCollector) Reaped(name, repo string, reason models.QADestroyReason, err error)
func (*FakeCollector) Success ¶
func (fc *FakeCollector) Success(name, repo, ref string)
func (*FakeCollector) TimeContainerBuild ¶
func (fc *FakeCollector) TimeContainerBuild(name, repo, ref, depRepo, depRef string, err *error) func()
func (*FakeCollector) TimeContainerBuildAll ¶
func (fc *FakeCollector) TimeContainerBuildAll(name, repo, ref string, err *error) func()
func (*FakeCollector) TimeProvisioning ¶
func (fc *FakeCollector) TimeProvisioning(name, repo, ref string, err *error) func()
Click to show internal directories.
Click to hide internal directories.