Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ConflictDetectDuration records the duration of detecting conflict. ConflictDetectDuration = prometheus.NewHistogramVec( prometheus.HistogramOpts{ Namespace: "ticdc", Subsystem: "sink", Name: "txn_conflict_detect_duration", Help: "Bucketed histogram of conflict detect time (s) for single DML statement.", Buckets: prometheus.ExponentialBuckets(0.001, 2, 20), }, []string{"namespace", "changefeed"}) // QueueDuration = ConflictDetectDuration + (queue time in txn workers). QueueDuration = prometheus.NewHistogramVec( prometheus.HistogramOpts{ Namespace: "ticdc", Subsystem: "sink", Name: "txn_queue_duration", Help: "Bucketed histogram of queue time (s) for single DML statement.", Buckets: prometheus.ExponentialBuckets(0.001, 2, 20), }, []string{"namespace", "changefeed"}) WorkerFlushDuration = prometheus.NewHistogramVec( prometheus.HistogramOpts{ Namespace: "ticdc", Subsystem: "sink", Name: "txn_worker_flush_duration", Help: "Flush duration (s) for txn worker.", Buckets: prometheus.ExponentialBuckets(0.001, 2, 20), }, []string{"namespace", "changefeed", "id"}) WorkerTotalDuration = prometheus.NewHistogramVec( prometheus.HistogramOpts{ Namespace: "ticdc", Subsystem: "sink", Name: "txn_worker_total_duration", Help: "total duration (s) for txn worker.", Buckets: prometheus.ExponentialBuckets(0.0001, 2, 20), }, []string{"namespace", "changefeed", "id"}) WorkerHandledRows = prometheus.NewCounterVec( prometheus.CounterOpts{ Namespace: "ticdc", Subsystem: "sink", Name: "txn_worker_handled_rows", Help: "Busy ratio (X ms in 1s) for all workers.", }, []string{"namespace", "changefeed", "id"}) SinkDMLBatchCommit = prometheus.NewHistogramVec( prometheus.HistogramOpts{ Namespace: "ticdc", Subsystem: "sink", Name: "txn_sink_dml_batch_commit", Help: "Duration of committing a DML batch", Buckets: prometheus.ExponentialBuckets(0.01, 2, 18), }, []string{"namespace", "changefeed"}) SinkDMLBatchCallback = prometheus.NewHistogramVec( prometheus.HistogramOpts{ Namespace: "ticdc", Subsystem: "sink", Name: "txn_sink_dml_batch_callback", Help: "Duration of execuing a batch of callbacks", Buckets: prometheus.ExponentialBuckets(0.01, 2, 18), }, []string{"namespace", "changefeed"}) PrepareStatementErrors = prometheus.NewCounterVec( prometheus.CounterOpts{ Namespace: "ticdc", Subsystem: "sink", Name: "txn_prepare_statement_errors", Help: "Prepare statement errors", }, []string{"namespace", "changefeed"}) )
---------- Metrics for txn sink and backends. ---------- //
Functions ¶
func InitMetrics ¶
func InitMetrics(registry *prometheus.Registry)
InitMetrics registers all metrics in this file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.