mirror of
https://github.com/ceph/ceph
synced 2025-01-20 01:51:34 +00:00
Merge pull request #46153 from lxbsz/wip-54411-1
client: force send global open_files/metadata metrics Reviewed-by: Venky Shankar <vshankar@redhat.com>
This commit is contained in:
commit
8beaa5e5db
@ -6834,7 +6834,8 @@ void Client::collect_and_send_global_metrics() {
|
||||
}
|
||||
|
||||
// metadata latency
|
||||
if (session->mds_metric_flags.test(CLIENT_METRIC_TYPE_METADATA_LATENCY)) {
|
||||
if (_collect_and_send_global_metrics ||
|
||||
session->mds_metric_flags.test(CLIENT_METRIC_TYPE_METADATA_LATENCY)) {
|
||||
metric = ClientMetricMessage(MetadataLatencyPayload(logger->tget(l_c_lat),
|
||||
logger->tget(l_c_md_avg),
|
||||
logger->get(l_c_md_sqsum),
|
||||
@ -6859,7 +6860,8 @@ void Client::collect_and_send_global_metrics() {
|
||||
}
|
||||
|
||||
// opened files
|
||||
if (session->mds_metric_flags.test(CLIENT_METRIC_TYPE_OPENED_FILES)) {
|
||||
if (_collect_and_send_global_metrics ||
|
||||
session->mds_metric_flags.test(CLIENT_METRIC_TYPE_OPENED_FILES)) {
|
||||
auto [opened_files, total_inodes] = get_opened_files_rates();
|
||||
metric = ClientMetricMessage(OpenedFilesPayload(opened_files, total_inodes));
|
||||
message.push_back(metric);
|
||||
|
Loading…
Reference in New Issue
Block a user