cgroups-explorer

Crates.iocgroups-explorer
lib.rscgroups-explorer
version0.4.1
created_at2025-02-25 01:33:44.328919+00
updated_at2025-03-30 00:17:14.249493+00
descriptionA crate to explore cgroups and gather metrics
homepage
repositoryhttps://github.com/oguzbilgener/cgroups-explorer
max_upload_size
id1568614
size33,224
Oğuz Bilgener (oguzbilgener)

documentation

https://docs.rs/cgroups-explorer

README

cgroups-explorer

Crates.io Version Tests

A crate for exploring control groups v1 and v2 on Linux.

Uses the cgroups-rs crate to interact with cgroups.

Usage

use cgroups_explorer::Explorer;

let explorer = Explorer::detect_version()
    .include(vec!["user.slice/*".to_string()])
    .build()
    .expect("Failed to build explorer");
let found = explorer
    .iter_cgroups()
    .for_each(|c| println!("Found cgroup: {}", c.path()));
Commit count: 7

cargo fmt