Skip to content

Commit 8dfabd0

Browse files
committed
Add documentation
1 parent c9a687c commit 8dfabd0

2 files changed

Lines changed: 14 additions & 4 deletions

File tree

lustre-collector/src/llite/mod.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@ pub(crate) const LLITE: &str = "llite";
1313
pub(crate) const STATS: &str = "stats";
1414

1515
pub(crate) fn params() -> Vec<String> {
16-
[STATS]
17-
.into_iter()
18-
.map(|x| format!("{LLITE}.*.{x}"))
19-
.collect()
16+
vec![format!("{LLITE}.*.{STATS}")]
2017
}
2118

2219
fn target_name<I>() -> impl Parser<I, Output = Target>

lustrefs-exporter/src/llite.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22
// Use of this source code is governed by a MIT-style
33
// license that can be found in the LICENSE file.
44

5+
//! `llite` metrics
6+
//!
7+
//! This file defines metrics related to `llite`.
8+
//!
9+
//! The associated lustre parameter path is `llite.*.stats`.
10+
//!
11+
//! Registered metrics:
12+
//!
13+
//! | Metric | Content | Content |
14+
//! |-|-|-|
15+
//! | `lustre_client_stats` | Lustre client interface stats | `Counter<u64>` |
16+
//!
17+
518
use crate::Family;
619
use lustre_collector::LliteStat;
720
use prometheus_client::{metrics::counter::Counter, registry::Registry};

0 commit comments

Comments
 (0)