metrics

package
v0.9.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL