Add metrics for tracking rendezvous method

Update tests for metrics

Add rendezvous_method to Prometheus metrics

Update broker spec docs with rendezvous method metrics

Bug fix
This commit is contained in:
Michael Pu 2024-01-28 17:09:08 -05:00 committed by Cecylia Bocovich
parent b8df42a377
commit 26ceb6e20d
No known key found for this signature in database
GPG key ID: 009DE379FD9B7B90
8 changed files with 355 additions and 30 deletions

View file

@ -82,6 +82,96 @@ Metrics data from the Snowflake broker can be retrieved by sending an HTTP GET r
A count of the number of times a client successfully received a
proxy from the broker, rounded up to the nearest multiple of 8.
"client-http-denied-count" NUM NL
[At most once.]
A count of the number of times a client has requested a proxy using
the HTTP rendezvous method from the broker but no proxies were
available, rounded up to the nearest multiple of 8.
"client-http-restricted-denied-count" NUM NL
[At most once.]
A count of the number of times a client with a restricted or
unknown NAT type has requested a proxy using the HTTP rendezvous
method from the broker but no proxies were available, rounded up to
the nearest multiple of 8.
"client-http-unrestricted-denied-count" NUM NL
[At most once.]
A count of the number of times a client with an unrestricted NAT
type has requested a proxy using the HTTP rendezvous method from
the broker but no proxies were available, rounded up to the nearest
multiple of 8.
"client-snowflake-http-match-count" NUM NL
[At most once.]
A count of the number of times a client successfully received a
proxy using the HTTP rendezvous method from the broker, rounded
up to the nearest multiple of 8.
"client-ampcache-denied-count" NUM NL
[At most once.]
A count of the number of times a client has requested a proxy using
the ampcache rendezvous method from the broker but no proxies were
available, rounded up to the nearest multiple of 8.
"client-ampcache-restricted-denied-count" NUM NL
[At most once.]
A count of the number of times a client with a restricted or
unknown NAT type has requested a proxy using the ampcache rendezvous
method from the broker but no proxies were available, rounded up to
the nearest multiple of 8.
"client-ampcache-unrestricted-denied-count" NUM NL
[At most once.]
A count of the number of times a client with an unrestricted NAT
type has requested a proxy using the ampcache rendezvous method from
the broker but no proxies were available, rounded up to the nearest
multiple of 8.
"client-snowflake-ampcache-match-count" NUM NL
[At most once.]
A count of the number of times a client successfully received a
proxy using the ampcache rendezvous method from the broker, rounded
up to the nearest multiple of 8.
"client-sqs-denied-count" NUM NL
[At most once.]
A count of the number of times a client has requested a proxy using
the sqs rendezvous method from the broker but no proxies were
available, rounded up to the nearest multiple of 8.
"client-sqs-restricted-denied-count" NUM NL
[At most once.]
A count of the number of times a client with a restricted or
unknown NAT type has requested a proxy using the sqs rendezvous
method from the broker but no proxies were available, rounded up to
the nearest multiple of 8.
"client-sqs-unrestricted-denied-count" NUM NL
[At most once.]
A count of the number of times a client with an unrestricted NAT
type has requested a proxy using the sqs rendezvous method from
the broker but no proxies were available, rounded up to the nearest
multiple of 8.
"client-snowflake-sqs-match-count" NUM NL
[At most once.]
A count of the number of times a client successfully received a
proxy using the sqs rendezvous method from the broker, rounded
up to the nearest multiple of 8.
"snowflake-ips-nat-restricted" NUM NL
[At most once.]