Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChangelogReader ¶
type ChangelogReader struct { Events ChangelogRowEventsWritten *Counter ChangelogAlterTableEvents *Counter ChangelogQueryEventsWritten *Counter ChangelogUnhandledEvents *Counter TimeToEncounter *Timer NumTablesIngesting *Counter Errors *Counter LockLost *Counter }
ChangelogReader contains metrics related to changelog reader
func NewChangelogReaderMetrics ¶
func NewChangelogReaderMetrics(tags map[string]string) *ChangelogReader
NewChangelogReaderMetrics initializes and returns a Changelog metrics object
type Counter ¶
type Counter struct {
// contains filtered or unexported fields
}
Counter is a stateful counter statistics variable
func CounterInit ¶
CounterInit is a constructor for Counter
type Events ¶
type Events struct { NumWorkers *ProcessCounter EventsRead *Counter EventsWritten *Counter BytesRead *Counter BytesWritten *Counter BatchSize *Timer ReadLatency *Timer ProduceLatency *Timer }
Events represents the common structure for event based metrics
type FilePipeMetrics ¶
type FilePipeMetrics struct { BytesWritten *Counter BytesRead *Counter FilesCreated *Counter FilesOpened *Counter FilesClosed *Counter // == FilesCreated }
FilePipeMetrics ...
func NewFilePipeMetrics ¶
func NewFilePipeMetrics(prefix string, tags map[string]string) *FilePipeMetrics
NewFilePipeMetrics initializes and returns a FilePipeMetrics object
type ProcessCounter ¶
type ProcessCounter struct { MStarted *Counter MFinished *Counter MRunning *Counter Started int64 Finished int64 }
ProcessCounter counts number of started, finished and currently running processes
var IdleWorkers *ProcessCounter
IdleWorkers count idle workers
func ProcessCounterInit ¶
func ProcessCounterInit(c scope, name string) *ProcessCounter
ProcessCounterInit is the constructor for ProcessCounter
func (*ProcessCounter) Dec ¶
func (p *ProcessCounter) Dec()
Dec decrements number of processes finished and reports metric for number of finished and running processes
func (*ProcessCounter) Get ¶
func (p *ProcessCounter) Get() int64
Get returns number of currently running processes
func (*ProcessCounter) Inc ¶
func (p *ProcessCounter) Inc()
Inc increments number of processes started and reports metric for number of started and running processes
type Snapshot ¶
type Snapshot struct { Events Errors *Counter Duration *Timer SizeRead *Counter SizeWritten *Counter ThrottledUs *Counter }
Snapshot contains metrics related to snapshot reader
type State ¶
type State struct { NumTablesRegistered *Counter Sync *ProcessCounter SyncDuration *Timer TableReg *ProcessCounter TableRegDuration *Timer TableDereg *ProcessCounter TableDeregDuration *Timer SyncErrors *Counter }
State contains metrics related to state
func NewStateMetrics ¶
func NewStateMetrics() *State
NewStateMetrics initializes and returns a State metrics object
type Streamer ¶
Streamer contains metrics related to event streamer
func NewStreamerMetrics ¶
NewStreamerMetrics initializes and returns a Streamer metrics object
type TallyConfiguration ¶
TallyConfiguration ...
type Timer ¶
type Timer struct {
// contains filtered or unexported fields
}
Timer is a wrapper around metrics.Timer
type Validation ¶
type Validation struct { NumValidations *ProcessCounter ValidationRowsProcessed *Counter ValidatedInsertEvents *Counter ValidatedDeleteEvents *Counter ValidatedSchemaEvents *Counter ValidationFailed *Counter ValidationSuccess *Counter ValidationSuccessBatch *Counter ValidationSchemaErrors *Counter ValidationEventTypeError *Counter SnapshotBase *Snapshot SnapshotRef *Snapshot }
Validation contains metrics related to validation
func NewValidationMetrics ¶
func NewValidationMetrics(tags map[string]string) *Validation
NewValidationMetrics initializes and returns a Validation metrics object