Munin plugin for load, 1 second resolution, Rust
Find a file
2022-06-05 14:41:48 +02:00
.github/workflows Not on macos 2022-05-09 20:32:54 +00:00
src Update to muninplugin 0.1.9 2022-05-21 15:45:01 +02:00
.gitignore Initial implementation of load plugin for munin using new Rust library 2022-05-08 14:29:43 +02:00
Cargo.lock Bump munin-plugin to 0.1.14 2022-06-05 14:41:48 +02:00
Cargo.toml Bump munin-plugin to 0.1.14 2022-06-05 14:41:48 +02:00
README.md Add a README 2022-05-09 22:16:42 +02:00

load

A really simple munin plugin to collect load statistics.

A drop-in replacement for the shell version. Mostly as a test-bed for my munin-plugin library for Rust, though it is fully functional.

How

Parsing procfs.

Usage

Compile (or load a released binary, if one is there) and put the binary somewhere. Then link it into the munin plugins dir.

Installation

  1. You need a rust environment setup. If you have none yet, please follow the instructions at either the Rust Lang Get Started Page or rustup.rs
  2. Download or clone this repo
  3. Inside your copy, run cargo build --release --target x86_64-unknown-linux-musl (you can skip the --target[..] part, if your target system has a recent enough libc).
  4. Copy target/x86_64-unknown-linux-musl/release/load (or target/release/load if you skipped target) to a useful place on your system and link it into /etc/munin/plugins/ (or place it directly into that directory).
  5. Restart munin-node (on Debian: systemctl munin-node restart)

Musl

The build using musl creates fully static binaries. "Normal" rust link against libc, and that may carry symbols that aren't available everywhere (older versions). If you do not have that requirement, not using musl will be fine.