package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev
# Functions
New builds a new Provider.
NewMetrics builds a new instance of our Metrics struct.
WithoutTimedFlush prevents the ConcurrentBufferIngester from performing timed flushes to the underlying registry.
# Variables
AnomalyDetectionEnabled turns on a per-fingerprint heuristic-based algorithm for marking statements as slow, attempting to capture elevated p99 latency while generally excluding uninteresting executions less than 100ms.
AnomalyDetectionLatencyThreshold sets the bar above which we consider statement executions worth inspecting for slow execution.
AnomalyDetectionMemoryLimit restricts the overall memory available for tracking per-statement execution latencies.
ExecutionInsightsCapacity limits the number of execution insights retained in memory.
HighRetryCountThreshold sets the number of times a slow statement must have been retried to be marked as having a high retry count.
LatencyThreshold configures the execution time beyond which a statement is considered slow.
# Structs
ConcurrentBufferIngester amortizes the locking cost of writing to an insights registry concurrently from multiple goroutines.
Metrics holds running measurements of various insights-related runtime stats.
Provider offers access to the insights subsystem.
TestingKnobs provides hooks and testingKnobs for unit tests.