package
9.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev

# Functions

FromContext returns the metrics stored in the context.
GetCommonMetric returns the common metrics stored in the context.
NewCommon returns common metrics instance.
NewMetrics creates a new empty metrics.
ReadAllCounters reports the summary value of the counters with given labels.
ReadCounter reports the current value of the counter.
ReadHistogram reports the current value of the histogram.
ReadHistogramSum reports the sum of all observed values in the histogram.
WithCommonMetric returns a new context with the provided common metrics.
WithMetric returns a new context with the provided metrics.

# Constants

metric label values.
metric label values.
for the ChunkCounter labels, below too.
metric label values.
metric label values.
metric label values.
metric label values.
import engine progress.
restore engine progress.
total restore progress(not include post-process, like checksum and analyze).
metric label values.
for the SSTSecondsHistogram labels, below too.
metric label values.
kv bytes imported during import engine.
source data bytes restored during restore engine.
kv bytes written during restore engine.
total source data bytes needs to restore.
metric label values.
for the TableCounter labels, below too.
metric label values.
metric label values.
for the TableCounter labels, below too.

# Structs

Common contains metrics shared for lightning and import-into.
Metrics contains all metrics used by lightning.