scx/rust
Tejun Heo 03495cd37b scx_stat: Initial commit
scx_stat is a statistics reporting library with the following goals:

- Minimal boilerplate code. Statistics are defined as a regular rust struct
  which can contain integers, floats, strings, structs, and array or
  BTreeMap of them. The struct and each field can be annotated using the
  "stat" attribute. The "Stat" derive macro generates the necessary
  metadata.

- On-demand reporting. ScxStatServer implements a UNIX domain socket server
  which communicates using a simple json protocol. Stat structs can be added
  to the server with closures to output them. There can be any number of
  readers. ScxStatServer can be queried for the metadata of all stat structs
  that it may report so that a generic tool can be written to pipe the
  reported statistics to other frameworks (e.g. openmetrics).

- The interface protocol is pretty simple and it isn't difficult to interact
  directly in json. ScxStatClient is provided to further simplify client
  implementation.

- See rust/scx_stat/examples/{server,client}.rs for usage.
2024-08-14 11:37:06 -10:00
..
scx_rustland_core versions: Synchronize crate dependency versions 2024-08-08 14:45:46 -10:00
scx_stat scx_stat: Initial commit 2024-08-14 11:37:06 -10:00
scx_utils Merge branch 'main' into topic/inlined-skeleton-members 2024-08-08 14:23:37 -10:00
meson.build scx_stat: Initial commit 2024-08-14 11:37:06 -10:00