mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-30 16:59:52 +00:00
improve comment and error
This commit is contained in:
@@ -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
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user