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

# Functions

ExecuteErrorToLabel converts an execute error to label.
GenerateReorgLabel returns the label with schema name and table name.
GetAccountLockCounter gets the AccountLockCounter.
GetAggressiveLockingUsageCounter returns the Aggressive Locking usage counter.
GetBackfillProgressByLabel returns the Gauge showing the percentage progress for the given type label.
GetCTECounter gets the TxnCommitCounter.
GetDDLUsageCounter gets the add index acceleration solution counts.
GetExchangePartitionCounter gets the TxnCommitCounter.
GetIndexMergeCounter gets the IndexMerge usage counter.
GetLazyPessimisticUniqueCheckSetCounter returns the counter of setting tidb_constraint_check_in_place_pessimistic to false.
GetMultiSchemaCounter gets the TxnCommitCounter.
GetNonTransactionalStmtCounter gets the NonTransactionalStmtCounter.
GetSavepointStmtCounter gets the savepoint statement executed counter.
GetStoreBatchCoprCounter gets the IndexMerge usage counter.
GetTablePartitionCounter gets the TxnCommitCounter.
RegisterMetrics registers the metrics which are ONLY used in TiDB server.
ResetTablePartitionCounter gets the TxnCommitCounter.
RetLabel returns "ok" when err == nil and "err" when err != nil.
ToggleSimplifiedMode is used to register/unregister the metrics that unused by grafana.

# Constants

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.
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.
metrics labels.
metrics labels.
metrics labels.
metrics labels.
metrics labels.

# Variables

log backup metrics.
log backup metrics.
Metrics.
Session metrics.
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.
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.
Metrics for the DDL package.
Metrics.
distsql metrics.
distsql metrics.
distsql metrics.
distsql metrics.
distsql metrics.
distsql metrics.
distsql metrics.
Stats metrics.
EMACPUUsageGauge means exponential moving average of CPU usage.
Metrics.
Metrics.
Eventkill occurs when the server.Kill() function is called.
Metrics.
ExecPhaseDuration records the duration of each execution phase.
Metrics.
ExecutorCounter records the number of expensive executors.
Stats 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.
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.
Metrics for the DDL package.
log backup metrics.
Session metrics.
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.
Metrics.
MemoryUsage measures the usage gauge of memory.
Metrics.
Metrics.
Metrics.
Session metrics.
Metrics.
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.
Stats metrics.
Stats metrics.
PoolConcurrencyCounter means how much concurrency in the pool.
Metrics.
Stats metrics.
Metrics.
Metrics.
Metrics.
Metrics.
Stats metrics.
log backup metrics.
log backup metrics.
log backup metrics.
ResettablePlanCacheCounterFortTest be used to support reset counter in test.
Session metrics.
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.
Session metrics.
Session metrics.
Session metrics.
Session metrics.
Session metrics.
Session metrics.
Metrics.
Stats metrics.
SmallTxnWriteDuration uses to collect small transaction write duration.
Session metrics.
Session metrics.
Session metrics.
Session metrics.
Stats metrics.
Stats metrics.
Stats metrics.
Stats metrics.
StmtNodeCounter records the number of statement with the same type.
Stats metrics.
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.
Metrics.
Metrics.
Metrics.
Metrics.
Metrics.
Metrics.
Metrics.
Metrics.
Metrics.
Metrics.
Metrics.
Metrics.
Metrics.
Metrics.
Metrics.
Metrics.
Metrics.
Metrics.
Metrics.
Metrics.
Metrics.
Metrics.
Metrics.
Metrics.
Metrics.
Metrics.
Metrics.
Metrics.
Metrics.
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.
Session metrics.
Session metrics.
TxnWriteThroughput uses to collect transaction write throughput which transaction is not small.
Metrics for the DDL package.
Stats metrics.
Session metrics.
Metrics.
Metrics.
Metrics for the DDL package.
Metrics for the DDL package.
Metrics for ddl_worker.go.
Metrics for the DDL package.
Metrics for the DDL package.

# Structs

AccountLockCounter records the number of lock users/roles.
AggressiveLockingUsageCounter records the usage of Aggressive Locking feature of pessimistic transaction.
CTEUsageCounter records the usages of CTE.
DDLUsageCounter records the usages of DDL related features.
ExchangePartitionUsageCounter records the usages of exchange partition.
IndexMergeUsageCounter records the usages of IndexMerge feature.
MultiSchemaChangeUsageCounter records the usages of multi-schema change.
NonTransactionalStmtCounter records the usages of non-transactional statements.
StoreBatchCoprCounter records the usages of batch copr statements.
TablePartitionUsageCounter records the usages of table partition.