-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ccl/sqlproxyccl: add proxy.sql.routing_method_count metric #130892
ccl/sqlproxyccl: add proxy.sql.routing_method_count metric #130892
Conversation
7111ef8
to
bf1c3d4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
pkg/ccl/sqlproxyccl/metrics.go
Outdated
Name: "proxy.access_control.errors", | ||
Help: "Numbers of access control list files that are currently having errors", | ||
Measurement: "Access Control File Errors", | ||
Unit: metric.Unit_COUNT, | ||
} | ||
metaClusterIdentifierReadsTotal = metric.Metadata{ | ||
Name: "proxy.cluster_identifier.reads_total", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: what do you think of the name proxy.sql.routing_method
? reads_total
sounds like a metric that counts how many times something is looked up in the database.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. I updated it to proxy.sql.routing_method_count
.
Previously, it was not possible to determine the distribution of users connecting to the proxy via SNI, database, or cluster option (via the options parameter). This commit introduces a `proxy.sql.routing_method_count` metric to record the number of occurrences of each proxy routing method. Only successful parsing will be recorded; if a user provides invalid input, it will not be tracked. This enhancement allows us to monitor and understand which method was used by the proxy to retrieve the cluster identifier. Epic: CC-6926 Release note: None
bf1c3d4
to
56fc243
Compare
Thanks for the reviews! |
bors r+ |
Previously, it was not possible to determine the distribution of users
connecting to the proxy via SNI, database, or cluster option (via the options
parameter). This commit introduces a
proxy.sql.routing_method_count
metric to record the number of occurrences of each proxy routing method. Only
successful parsing will be recorded; if a user provides invalid input, it will
not be tracked. This enhancement allows us to monitor and understand which
method was used by the proxy to retrieve the cluster identifier.
Epic: CC-6926
Release note: None