package
9.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev
# Functions
ExecuteErrorToLabel converts an execute error to label.
GetBackfillProgressByLabel returns the Gauge showing the percentage progress for the given type label.
GetBackfillTotalByLabel returns the Counter showing the speed of backfilling for the given type label.
GetRegisteredImportMetrics returns the registered import metrics.
InitBindInfoMetrics initializes bindinfo metrics.
InitDDLMetrics initializes defines DDL metrics.
InitDistSQLMetrics initializes distsql metrics.
InitDistTaskMetrics initializes disttask metrics.
InitDomainMetrics initializes domain metrics.
InitExecutorMetrics initializes excutor metrics.
InitGCWorkerMetrics initializes GC worker metrics.
InitGlobalSortMetrics initializes defines global sort metrics.
InitInfoSchemaV2Metrics intializes infoschema v2 related metrics.
InitLogBackupMetrics initializes log backup metrics.
InitMetaMetrics initializes meta metrics.
InitMetrics is used to initialize metrics.
InitOwnerMetrics initializes owner metrics.
InitResourceGroupMetrics initializes resource group metrics.
InitResourceManagerMetrics initializes resource manager metrics.
InitServerMetrics initializes server metrics.
InitSessionMetrics initializes session metrics.
InitSliMetrics initializes sli metrics.
InitStatsMetrics initializes stats metrics.
InitTopSQLMetrics initializes top-sql metrics.
InitTTLMetrics initializes ttl metrics.
NewCounter wraps a prometheus.NewCounter.
NewCounterVec wraps a prometheus.NewCounterVec.
NewGauge wraps a prometheus.NewGauge.
NewGaugeVec wraps a prometheus.NewGaugeVec.
NewHistogram wraps a prometheus.NewHistogram.
NewHistogramVec wraps a prometheus.NewHistogramVec.
NewSummaryVec wraps a prometheus.NewSummaryVec.
RegisterMetrics registers the metrics which are ONLY used in TiDB server.
RetLabel returns "ok" when err == nil and "err" when err != nil.
SetConstLabels sets constant labels for metrics.
ToggleSimplifiedMode is used to register/unregister the metrics that unused by grafana.
UnregisterImportMetrics unregisters the registered import metrics.
UpdateMetricsForAddTask update metrics when a task is added.
UpdateMetricsForFinishTask update metrics when a task is finished.
UpdateMetricsForRunTask update metrics when a task starts running.
UpdateMetricsForScheduleTask update metrics when a task is added.
# Constants
status for task.
metrics labels.
metrics labels.
metrics labels.
metrics labels.
metrics labels.
metrics labels.
metrics labels.
metrics labels.
metrics labels.
metrics labels.
metrics labels.
metrics labels.
metrics labels.
Label constants.
Label constants.
Label constants.
Used by BackfillTotalCounter.
Used by BackfillProgressGauge.
Label constants.
Label constants.
Label constants.
Label constants.
Label constants.
Label constants.
Label constants.
Label constants.
Label constants.
Label constants.
Label constants.
Label constants.
Label constants.
Label constants.
Label constants.
Label constants.
Label constants.
Label constants.
Label constants.
Label constants.
Label constants.
Label constants.
Label constants.
Label constants.
Label constants.
Label constants.
Label constants.
Label constants.
Label constants.
Label constants.
Label constants.
Label constants.
Label constants.
Label constants.
Label constants.
Label constants.
Label constants.
Label constants.
Label constants.
Label constants.
Label constants.
Label constants.
Label constants.
Label constants.
Label constants.
Label constants.
Label constants.
Label constants.
Label constants.
status for task.
status for task.
metrics labels.
metrics labels.
metrics labels.
metrics labels.
metrics labels.
status for task.
# Variables
Metrics for the DDL package.
log backup metrics.
log backup metrics.
AffectedRowsCounter records the number of affected rows.
AffectedRowsCounterDelete records the number of delete affected rows.
AffectedRowsCounterInsert records the number of insert affected rows.
AffectedRowsCounterReplace records the number of replace affected rows.
AffectedRowsCounterUpdate records the number of update affected rows.
Stats metrics.
Stats metrics.
Metrics.
Session metrics.
Metrics for the DDL package.
Metrics for the DDL package.
Metrics for the DDL package.
bindinfo metrics.
bindinfo metrics.
bindinfo metrics.
bindinfo metrics.
bindinfo metrics.
Metrics.
Metrics.
Metrics.
Metrics.
Metrics.
Metrics.
Metrics.
Metrics for the DDL package.
Metrics for the DDL package.
Metrics.
Metrics.
DbStmtNodeCounter records the number of statement with the same type and db.
Metrics for the DDL package.
Metrics for the DDL package.
Metrics for the DDL package.
Metrics for the DDL package.
Metrics for the DDL package.
Metrics for the DDL package.
Metrics for the DDL package.
Metrics for the DDL package.
Metrics for the DDL package.
Metrics for the DDL package.
DDLRunOneStep is the label for the DDL worker operation run_one_step.
Metrics for the DDL package.
Metrics for the DDL package.
Metrics for the DDL package.
Metrics.
Metrics for the DDL package.
Metrics.
distsql metrics.
distsql metrics.
distsql metrics.
distsql metrics.
distsql metrics.
distsql metrics.
distsql metrics.
DistTaskGauge is the gauge of dist task count.
DistTaskStartTimeGauge is the gauge of dist task count.
DistTaskUsedSlotsGauge is the gauge of used slots on executor node.
EMACPUUsageGauge means exponential moving average of CPU usage.
Eventkill occurs when the server.Kill() function is called.
ExecPhaseDuration records the duration of each execution phase.
Metrics.
ExecutorCounter records the number of expensive executors.
Session metrics.
Metrics for the GC worker.
Metrics for the GC worker.
Metrics for the GC worker.
Metrics for the GC worker.
Metrics for the GC worker.
Metrics for the GC worker.
Metrics for the GC worker.
log backup metrics.
Metrics.
Metrics.
Metrics.
Metrics.
GlobalSortIngestWorkerCnt records the working number of ingest workers.
GlobalSortReadFromCloudStorageDuration records the duration of reading from cloud storage.
GlobalSortReadFromCloudStorageRate records the rate of reading from cloud storage.
GlobalSortUploadWorkerCount is the gauge of active parallel upload worker count.
GlobalSortWriteToCloudStorageDuration records the duration of writing to cloud storage.
GlobalSortWriteToCloudStorageRate records the rate of writing to cloud storage.
Metrics.
Metrics for the DDL package.
HandleSchemaValidate records the counter of handling schema validate.
Metrics.
Stats metrics.
InfoCacheCounterGet is the total number of getting entry.
InfoCacheCounterHit is the cache hit numbers for get.
InfoCacheCounters are the counters of get/hit.
InfoSchemaV2CacheCounter records the counter of infoschema v2 cache hit/miss/evict.
InfoSchemaV2CacheMemLimit records the memory limit of infoschema v2 cache.
InfoSchemaV2CacheMemUsage records the memory size of infoschema v2 cache.
Metrics.
Metrics for the DDL package.
log backup metrics.
Session metrics.
LeaseExpireTime records the lease expire time.
LoadPrivilegeCounter records the counter of load privilege.
LoadSchemaCounter records the counter of load schema.
LoadSchemaDuration records the duration of load schema.
LoadSysVarCacheCounter records the counter of loading sysvars.
Metrics.
log backup metrics.
log backup metrics.
Metrics.
Metrics.
MemoryUsage measures the usage gauge of memory.
Metrics.
MppCoordinatorLatency records latencies of mpp coordinator operations.
MppCoordinatorStats records the number of mpp coordinator instances and related events.
Metrics.
Metrics.
Session metrics.
Metrics.
OngoingTxnDurationHistogram records the duration of ongoing transactions.
Metrics for the DDL package.
Metrics for the DDL package.
Metrics for the DDL package.
Metrics.
PanicCounter measures the count of panics.
Metrics.
Metrics.
Session metrics.
Metrics.
Metrics.
Metrics.
Metrics.
Metrics.
Stats metrics.
Stats metrics.
PoolConcurrencyCounter means how much concurrency in the pool.
Metrics.
Stats metrics.
Metrics.
Metrics.
Metrics.
Metrics.
Metrics.
Metrics.
Metrics.
Stats metrics.
log backup metrics.
log backup metrics.
log backup metrics.
Metrics.
ResettablePlanCacheCounterFortTest be used to support reset counter in test.
Session metrics.
Metrics Query duration by query is QueryDurationHistogram in `server.go`.
Session metrics.
Metrics for the domain package.
Metrics for the domain package.
Metrics for the domain package.
Metrics for the domain package.
Metrics for the domain package.
Metrics.
Metrics.
Metrics.
Metrics.
Metrics.
Session metrics.
Session metrics.
Session metrics.
Session metrics.
Session metrics.
Session metrics.
Metrics.
SmallTxnWriteDuration uses to collect small transaction write duration.
Session metrics.
Session metrics.
Session metrics.
Session metrics.
Metrics for the DDL package.
Stats metrics.
Stats metrics.
Stats metrics.
Stats metrics.
Stats metrics.
Stats metrics.
StmtNodeCounter records the number of statement with the same type.
Metrics for the DDL package.
Metrics for the DDL package.
Metrics for the DDL package.
Metrics for the DDL package.
Stats metrics.
Stats metrics.
Stats metrics.
Stats metrics.
Metrics.
Metrics.
TableByNameDuration records the duration of TableByName API for infoschema v2.
TableByNameHitDuration is TableByNameDuration with label type "hit".
TableByNameMissDuration is TableByNameDuration with label type "miss".
Metrics.
Metrics.
Metrics.
Metrics.
Top SQL metrics.
Top SQL metrics.
Top SQL metrics.
Metrics.
Metrics.
Metrics.
Session metrics.
TTL metrics.
TTL metrics.
TTL metrics.
TTL metrics.
TTL metrics.
TTL metrics.
TTL metrics.
TTL metrics.
TTL metrics.
TTL metrics.
Session metrics.
Session metrics.
TxnWriteThroughput uses to collect transaction write throughput which transaction is not small.
Metrics for the DDL package.
Metrics for the DDL package.
Session metrics.
Metrics.
Metrics.
Metrics for job_worker.go.