Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/lustre-metrics-bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ jobs:
- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1

- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Install Valgrind
run: sudo apt-get update && sudo apt-get install -y valgrind

Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/scrape-memory-metrics-bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ jobs:
- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1

- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Run Scrape Memory Metrics Benchmark
run: |
# Run the benchmark first (suppress Criterion output)
Expand Down
212 changes: 26 additions & 186 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 1 addition & 9 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,8 @@ criterion = "0.7"
iai-callgrind = "0.16"
include_dir = { version = "0.7", features = ["glob"] }
insta = "1"
opentelemetry = "0.29.1"
opentelemetry-otlp = "0.29"
opentelemetry-prometheus = "0.29.1"
opentelemetry_sdk = "0.29"
opentelemetry-semantic-conventions = { version = "0.29", features = [
"semconv_experimental",
] }
pretty_assertions = "1.4.1"
prometheus = "0.14"
prometheus-client = { git = "https://github.com/whamcloud/client_rust", branch = "whamcloud-08-12-2025" }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there an upstream PR for these changes?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a couple patches that are in review:

prometheus/client_rust#278
prometheus/client_rust#279

This patch does not have a PR upstream: whamcloud/client_rust@d81f9a1

prometheus-parse = "0.2.5"
serde = "1"
serde_json = "1"
Expand All @@ -43,7 +36,6 @@ serial_test = "3.2"
sysinfo = "0.29"
thiserror = "2"
tokio = "1"
tokio-stream = "0.1"
tower = "0.5"
tower-http = "0.6"
tracing = "0.1"
Expand Down
9 changes: 8 additions & 1 deletion lustre-collector/src/lnetctl_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,14 @@ pub fn parse(xs: &[u8]) -> Result<Vec<Record>, LustreCollectorError> {
let y: LnetNetStats = serde_yaml::from_slice(xs)?;

Ok(y.net
.map(|x| x.iter().flat_map(build_lnet_stats).collect())
.map(|xs| {
let capacity = xs.iter().map(|x| x.local_nis.len() * 3).sum();
let mut records = Vec::with_capacity(capacity);

records.extend(xs.iter().flat_map(build_lnet_stats));

records
})
.unwrap_or_default())
}

Expand Down
Loading
Loading