#metrics #instrumentation #pcp #api #directory #valid #mmv

bin+lib hornet

A Rust implementation of the PCP instrumentation API

1 unstable release

Uses old Rust 2015

0.1.0 Sep 3, 2017

#5 in #pcp

MIT/Apache

120KB
3K SLoC

hornet Travis CI Build Status AppVeyor Build Status

This is a work-in-progress PCP Memory Mapped Value (MMV) instrumentation API in Rust.

Currently, only singleton metrics are supported. There is a simple example of it's usage at examples/physical.rs. To run it, do

cargo run --example physical

Then,

  • if you have a valid PCP installation, the metrics can be monitored using the command pminfo -f mmv.physical_metrics, and the MMV file itself can be found at $PCP_TMP_DIR/mmv/physical_metrics.
  • if PCP isn't installed, the MMV file will be found in /tmp/mmv/, though in order to view it you'll have compile the mmvdump tool (found here or here) and run ./mmvdump /tmp/mmv/physical_metrics.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~7.5MB
~151K SLoC