empiredan commented on code in PR #1427:
URL:
https://github.com/apache/incubator-pegasus/pull/1427#discussion_r1159245469
##########
src/common/fs_manager.cpp:
##########
@@ -108,6 +154,10 @@ bool dir_node::update_disk_stat(const bool
update_disk_status)
disk_available_ratio = static_cast<int>(
disk_capacity_mb == 0 ? 0 : std::round(disk_available_mb * 100.0 /
disk_capacity_mb));
+ METRIC_CALL_SET_METHOD(disk_capacity, total_disk_capacity_mb,
disk_capacity_mb);
+ METRIC_CALL_SET_METHOD(disk_capacity, avail_disk_capacity_mb,
disk_available_mb);
+ METRIC_CALL_SET_METHOD(disk_capacity, avail_disk_capacity_percentage,
disk_available_ratio);
Review Comment:
OK, I'll drop this metric.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]