Skip to content
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

[indexer grpc] More fields to short connection metric #10385

Merged
merged 1 commit into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ pub static CONNECTION_COUNT: Lazy<IntCounter> = Lazy::new(|| {
/// Count of the short connections; i.e., < 10 seconds.
pub static SHORT_CONNECTION_COUNT: Lazy<IntCounterVec> = Lazy::new(|| {
register_int_counter_vec!(
"indexer_grpc_data_service_short_connection_by_user_count",
"indexer_grpc_data_service_short_connection_by_user_processor_count",
"Count of the short connections; i.e., < 10 seconds",
&["request_token", "email"],
&["request_token", "email", "processor"],
)
.unwrap()
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ impl RawData for RawDataServerWrapper {
.with_label_values(&[
request_metadata.request_api_key_name.as_str(),
request_metadata.request_email.as_str(),
request_metadata.processor_name.as_str(),
])
.inc();
// Connection will be dropped anyway, so we ignore the error here.
Expand Down Expand Up @@ -205,6 +206,7 @@ impl RawData for RawDataServerWrapper {
.with_label_values(&[
request_metadata.request_api_key_name.as_str(),
request_metadata.request_email.as_str(),
request_metadata.processor_name.as_str(),
])
.inc();
// Connection will be dropped anyway, so we ignore the error here.
Expand Down Expand Up @@ -374,6 +376,7 @@ impl RawData for RawDataServerWrapper {
.with_label_values(&[
request_metadata.request_api_key_name.as_str(),
request_metadata.request_email.as_str(),
request_metadata.processor_name.as_str(),
])
.inc();
}
Expand Down
Loading