#metrics #exporter #log #logging #logs #metric

metrics-exporter-log

metric exporter for outputting to logs

3 unstable releases

✓ Uses Rust 2018 edition

0.2.1 Jun 11, 2019
0.2.0 May 1, 2019
0.1.0 Apr 24, 2019

31 downloads per month
Used in 1 crate

MIT license

6KB
74 lines

metrics-exporter-log

conduct-badge downloads-badge release-badge docs-badge license-badge

metrics-exporter-log is a metric exporter that outputs metrics in a textual format via the log crate.

code of conduct

NOTE: All conversations and contributions to this project shall adhere to the Code of Conduct.


lib.rs:

Exports metrics via the log crate.

This exporter can utilize recorders that are able to be converted to a textual representation via [Into]. It will emit that output by logging via the log crate at the specified level.

Run Modes

  • run can be used to block the current thread, taking snapshots and exporting them on an interval
  • into_future will return a [Future] that when driven will take a snapshot on the configured interval and log it

Dependencies

~767KB
~12K SLoC