Documentation ¶
Overview ¶
Package metrics contains a sink interface to be used by clients to implement sink. It also provides a default NoopSink and LogSink for convenience
Index ¶
Constants ¶
View Source
const ( UNKNOWN byte = iota COUNTER GAUGE SinkTimeout = 1 * time.Second ChunkProcessingTimeMetricName = "chunk_processing_time" ChunkLogicalRowsCountMetricName = "chunk_num_logical_rows" ChunkAffectedRowsCountMetricName = "chunk_num_affected_rows" )
Metric types.
Variables ¶
This section is empty.
Functions ¶
func NewLogSink ¶
Types ¶
type MetricValue ¶
type NoopSink ¶
type NoopSink struct{}
NoopSink is the default sink which does nothing
func NewNoopSink ¶
func NewNoopSink() *NoopSink
Click to show internal directories.
Click to hide internal directories.