Documentation ¶
Index ¶
Constants ¶
View Source
const ( // NatssChannelReadyCountN is the number of natss channels that have become ready. NatssChannelReadyCountN = "natsschannel_ready_count" // NatssChannelReadyLatencyN is the time it takes for a natss channel to become ready since the resource is created. NatssChannelReadyLatencyN = "natsschannel_ready_latency" )
Variables ¶
View Source
var ( KindToStatKeys = map[string]StatKey{ "NatssChannel": { ReadyCountKey: NatssChannelReadyCountN, ReadyLatencyKey: NatssChannelReadyLatencyN, }, } KindToMeasurements map[string]Measurements )
Functions ¶
This section is empty.
Types ¶
type Measurement ¶
type Measurement int
type Measurements ¶
type Measurements struct { ReadyLatencyStat *stats.Int64Measure ReadyCountStat *stats.Int64Measure }
type StatsReporter ¶
type StatsReporter interface { // ReportReady reports the time it took a resource to become Ready. ReportReady(kind, namespace, service string, d time.Duration) error }
StatsReporter reports reconcilers' metrics.
func NewStatsReporter ¶
func NewStatsReporter(reconciler string) (StatsReporter, error)
NewStatsReporter creates a reporter for reconcilers' metrics
Click to show internal directories.
Click to hide internal directories.