improve comment and error

This commit is contained in:
houseme
2025-05-16 17:00:56 +08:00
parent 60635aeb65
commit 6659b77f9a
29 changed files with 228 additions and 235 deletions
+7 -7
View File
@@ -1,12 +1,12 @@
/// Scanner-related metric descriptors
use crate::metrics::{new_counter_md, new_gauge_md, subsystems, MetricDescriptor, MetricName};
/// 扫描器相关指标描述符
lazy_static::lazy_static! {
pub static ref SCANNER_BUCKET_SCANS_FINISHED_MD: MetricDescriptor =
new_counter_md(
MetricName::ScannerBucketScansFinished,
"Total number of bucket scans finished since server start",
&[], // 无标签
&[],
subsystems::SCANNER
);
@@ -14,7 +14,7 @@ lazy_static::lazy_static! {
new_counter_md(
MetricName::ScannerBucketScansStarted,
"Total number of bucket scans started since server start",
&[], // 无标签
&[],
subsystems::SCANNER
);
@@ -22,7 +22,7 @@ lazy_static::lazy_static! {
new_counter_md(
MetricName::ScannerDirectoriesScanned,
"Total number of directories scanned since server start",
&[], // 无标签
&[],
subsystems::SCANNER
);
@@ -30,7 +30,7 @@ lazy_static::lazy_static! {
new_counter_md(
MetricName::ScannerObjectsScanned,
"Total number of unique objects scanned since server start",
&[], // 无标签
&[],
subsystems::SCANNER
);
@@ -38,7 +38,7 @@ lazy_static::lazy_static! {
new_counter_md(
MetricName::ScannerVersionsScanned,
"Total number of object versions scanned since server start",
&[], // 无标签
&[],
subsystems::SCANNER
);
@@ -46,7 +46,7 @@ lazy_static::lazy_static! {
new_gauge_md(
MetricName::ScannerLastActivitySeconds,
"Time elapsed (in seconds) since last scan activity.",
&[], // 无标签
&[],
subsystems::SCANNER
);
}