You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
143711: sql: Queries under the InternalAppNamePrefix attribute to internal metrics. r=alyshanjahani-crl a=alyshanjahani-crl
Previously, there did not exist a way for external connections to have their
SQL metrics (ex/ `sql.insert.count`) be counted as internal queries
(ex/ `sql.insert.count.internal`).
This is specifically problematic for cli utilities like `cockroach debug zip`
which issue SQL queries that often take much longer than queries in a user's
workload. As a result, users see a spike in their p99.99 or p99.9 SQL service
latencies causing unnecessary concern.
This commit utilizes the existing constant InternalAppNamePrefix. Specifically,
it modifies the connExecutor to set the metrics struct to the server's internal
or user facing metrics according to the app name.
This commit also modifies the debug zip to use the InternalAppNamePrefix.
Fixes: #143224
Release note (ops change): debug zip queries are attributed towards internal
sql metrics. As a result user's won't see the debug zip impact on the SQL
charts in DB console.
Co-authored-by: Alyshan Jahani <[email protected]>
0 commit comments