}
}
metrics.add_group("segment_cleaner", {
- sm::make_derive("segments_number",
- [this] { return segments.get_num_segments(); },
- sm::description("the number of segments")),
- sm::make_derive("segment_size",
- [this] { return segments.get_segment_size(); },
- sm::description("the bytes of a segment")),
- sm::make_derive("segments_in_journal",
- [this] { return segments.get_num_in_journal(); },
- sm::description("the number of segments in journal")),
- sm::make_derive("segments_open",
- [this] { return segments.get_num_open(); },
- sm::description("the number of open segments")),
- sm::make_derive("segments_empty",
- [this] { return segments.get_num_empty(); },
- sm::description("the number of empty segments")),
- sm::make_derive("segments_closed",
- [this] { return segments.get_num_closed(); },
- sm::description("the number of closed segments")),
- sm::make_derive("segments_count_open",
- [this] { return segments.get_count_open(); },
- sm::description("the count of open segment operations")),
- sm::make_derive("segments_count_release",
- [this] { return segments.get_count_release(); },
- sm::description("the count of release segment operations")),
- sm::make_derive("segments_count_close",
- [this] { return segments.get_count_close(); },
- sm::description("the count of close segment operations")),
- sm::make_derive("total_bytes",
- [this] { return segments.get_total_bytes(); },
- sm::description("the size of the space")),
- sm::make_derive("available_bytes",
- [this] { return segments.get_available_bytes(); },
- sm::description("the size of the space is available")),
+ sm::make_counter("segments_number",
+ [this] { return segments.get_num_segments(); },
+ sm::description("the number of segments")),
+ sm::make_counter("segment_size",
+ [this] { return segments.get_segment_size(); },
+ sm::description("the bytes of a segment")),
+ sm::make_counter("segments_in_journal",
+ [this] { return segments.get_num_in_journal(); },
+ sm::description("the number of segments in journal")),
+ sm::make_counter("segments_open",
+ [this] { return segments.get_num_open(); },
+ sm::description("the number of open segments")),
+ sm::make_counter("segments_empty",
+ [this] { return segments.get_num_empty(); },
+ sm::description("the number of empty segments")),
+ sm::make_counter("segments_closed",
+ [this] { return segments.get_num_closed(); },
+ sm::description("the number of closed segments")),
+ sm::make_counter("segments_count_open",
+ [this] { return segments.get_count_open(); },
+ sm::description("the count of open segment operations")),
+ sm::make_counter("segments_count_release",
+ [this] { return segments.get_count_release(); },
+ sm::description("the count of release segment operations")),
+ sm::make_counter("segments_count_close",
+ [this] { return segments.get_count_close(); },
+ sm::description("the count of close segment operations")),
+ sm::make_counter("total_bytes",
+ [this] { return segments.get_total_bytes(); },
+ sm::description("the size of the space")),
+ sm::make_counter("available_bytes",
+ [this] { return segments.get_available_bytes(); },
+ sm::description("the size of the space is available")),
sm::make_counter("accumulated_blocked_ios", stats.accumulated_blocked_ios,
sm::description("accumulated total number of ios that were blocked by gc")),
sm::description("rewritten bytes due to reclaim")),
sm::make_counter("reclaiming_bytes", stats.reclaiming_bytes,
sm::description("bytes being reclaimed")),
- sm::make_derive("ios_blocking", stats.ios_blocking,
- sm::description("IOs that are blocking on space usage")),
- sm::make_derive("used_bytes", stats.used_bytes,
- sm::description("the size of the space occupied by live extents")),
- sm::make_derive("projected_used_bytes", stats.projected_used_bytes,
- sm::description("the size of the space going to be occupied by new extents")),
+ sm::make_counter("ios_blocking", stats.ios_blocking,
+ sm::description("IOs that are blocking on space usage")),
+ sm::make_counter("used_bytes", stats.used_bytes,
+ sm::description("the size of the space occupied by live extents")),
+ sm::make_counter("projected_used_bytes", stats.projected_used_bytes,
+ sm::description("the size of the space going to be occupied by new extents")),
sm::make_histogram("segment_utilization_distribution",
[this]() -> seastar::metrics::histogram& {
return stats.segment_util;