package
0.0.0-20231108094301-503c6884a217
Repository: https://github.com/twotigers93/tidb.git
Documentation: pkg.go.dev
# Functions
GetTelemetryStatus returns the telemetry status saved in etcd.
GetTrackingID gets the current tracking ID.
InitialRun reports the Telmetry configuration and trigger an initial run.
IsTelemetryEnabled check whether telemetry enabled.
PostReportTelemetryDataForTest is for test.
PostSavepointCount exports for testing.
PreviewUsageData returns a preview of the usage data that is going to be reported.
ReportUsageData generates the latest usage data and sends it to PingCAP.
ResetTrackingID generates a new tracking ID.
RotateSubWindow rotates the telemetry sub window.
# Constants
OwnerKey is the telemetry owner path that is saved to etcd.
Prompt is the prompt for telemetry owner manager.
ReportInterval is the interval of the report.
SubWindowSize determines how often data is rotated.
WindowSize determines how long some data is aggregated by.
# Variables
CurrentCoprCacheHitRatioGTE0Count is CurrentCoprCacheHitRatioGTE1Count.
CurrentCoprCacheHitRatioGTE100Count is CurrentCoprCacheHitRatioGTE100Count.
CurrentCoprCacheHitRatioGTE10Count is CurrentCoprCacheHitRatioGTE10Count.
CurrentCoprCacheHitRatioGTE1Count is CurrentCoprCacheHitRatioGTE1Count.
CurrentCoprCacheHitRatioGTE20Count is CurrentCoprCacheHitRatioGTE20Count.
CurrentCoprCacheHitRatioGTE40Count is CurrentCoprCacheHitRatioGTE40Count.
CurrentCoprCacheHitRatioGTE80Count is CurrentCoprCacheHitRatioGTE80Count.
CurrentExecuteCount is CurrentExecuteCount.
CurrentTiFlashExchangePushDownCount is CurrentTiFlashExchangePushDownCount.
CurrentTiFlashPushDownCount is CurrentTiFlashPushDownCount.
CurrentTiflashTableScanCount count the number of tiflash table scan and tiflash partition table scan.
CurrentTiflashTableScanWithFastScanCount count the number of tiflash table scan and tiflash partition table scan which use fastscan.
GetDomainInfoSchema is used by the telemetry package to get the latest schema information while avoiding circle dependency with domain package.
GlobalBuiltinFunctionsUsage is used to collect builtin functions usage information.
# Structs
NewClusterIndexUsage records the clustered index usage info of all the tables.
TableClusteredInfo records the usage info of clusterindex of each table CLUSTERED, NON_CLUSTERED, NA.
TxnUsage records the usage info of transaction related features, including async-commit, 1PC and counters of transactions committed with different protocols.
# Type aliases
BuiltinFunctionsUsage is a map from ScalarFuncSig_name(string) to usage count(uint32).
ClusterIndexUsage records the usage info of all the tables, no more than 10k tables, deprecated.
SlowQueryBucket records the statistic information of slow query buckets Buckets: prometheus.ExponentialBuckets(0.001, 2, 28), // 1ms ~ 1.5days // defined in metrics/server.go.