Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DurationMs ¶
type DurationMs string
func (DurationMs) Send ¶
func (name DurationMs) Send(duration uint64)
type MetricsEmitter ¶
type MetricsEmitter interface {
Emit(*MetricsReport)
}
func NewMetricsEmitter ¶
func NewMetricsEmitter() MetricsEmitter
type MetricsReport ¶
type MetricsReport struct { TotalCurrentQueuedRequests uint64 TotalBackendConnectionErrors uint64 AverageQueueTimeMs uint64 AverageConnectTimeMs uint64 ProxyMetrics map[models.RoutingKey]ProxyStats RouteErrorMap map[string]uint64 }
func Convert ¶
func Convert(proxyStats haproxy_client.HaproxyStats) *MetricsReport
type MetricsReporter ¶
type MetricsReporter struct {
// contains filtered or unexported fields
}
func NewMetricsReporter ¶
func NewMetricsReporter(clock clock.Clock, haproxyClient haproxy_client.HaproxyClient, metricsEmitter MetricsEmitter, interval time.Duration, logger lager.Logger) *MetricsReporter
type ProxyDurationMs ¶
type ProxyDurationMs string
func (ProxyDurationMs) Send ¶
func (name ProxyDurationMs) Send(proxyName string, duration uint64)
type ProxyStats ¶
type ProxyValue ¶
type ProxyValue string
func (ProxyValue) Send ¶
func (name ProxyValue) Send(proxyName string, value uint64)
type RouteErrorReport ¶
type RouteErrorReport struct {
RouteErrors map[models.RoutingKey]uint64
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.