Send pubsub metrics to metrics server (#13584)

This commit is contained in:
Tyera Eulberg 2020-11-13 12:31:23 -07:00 committed by GitHub
parent 887b0e4b72
commit 34bf80ba9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

View File

@ -936,6 +936,19 @@ impl RpcSubscriptions {
num_signatures_notified,
signatures_time,
);
datapoint_info!(
"rpc_subscriptions",
("source", source.to_string(), String),
("num_account_subscriptions", pubkeys.len(), i64),
("num_account_pubkeys_notified", num_pubkeys_notified, i64),
("accounts_time", accounts_time.as_us() as i64, i64),
("num_program_subscriptions", programs.len(), i64),
("num_programs_notified", num_programs_notified, i64),
("programs_time", programs_time.as_us() as i64, i64),
("num_signature_subscriptions", signatures.len(), i64),
("num_signatures_notified", num_signatures_notified, i64),
("signatures_time", signatures_time.as_us() as i64, i64)
);
}
}