fix(obs): align cluster capacity semantics (#4457)

Co-authored-by: heihutu <heihutu@gmail.com>
This commit is contained in:
houseme
2026-07-08 17:11:01 +08:00
committed by GitHub
parent 506cd156bb
commit a30a9c0aba
3 changed files with 21 additions and 7 deletions
+4 -4
View File
@@ -37,21 +37,21 @@ pub static CLUSTER_CAPACITY_USABLE_TOTAL_BYTES_MD: LazyLock<MetricDescriptor> =
)
});
/// Total used storage capacity in bytes
/// Total used usable storage capacity in bytes
pub static CLUSTER_CAPACITY_USED_BYTES_MD: LazyLock<MetricDescriptor> = LazyLock::new(|| {
new_gauge_md(
MetricName::Custom("capacity_used_bytes".to_string()),
"Total used storage capacity in bytes",
"Total used usable storage capacity in bytes (matches usable total and free capacity)",
&[],
subsystems::CLUSTER_BASE_PATH,
)
});
/// Total free storage capacity in bytes
/// Total usable free storage capacity in bytes
pub static CLUSTER_CAPACITY_FREE_BYTES_MD: LazyLock<MetricDescriptor> = LazyLock::new(|| {
new_gauge_md(
MetricName::Custom("capacity_free_bytes".to_string()),
"Total free storage capacity in bytes",
"Total usable free storage capacity in bytes (matches usable total and used capacity)",
&[],
subsystems::CLUSTER_BASE_PATH,
)