#metrics #exporter #log #metrics-core

metrics-exporter-log

A metrics-core compatible exporter for forwarding metrics to logs

4 releases (2 breaking)

✓ Uses Rust 2018 edition

0.3.0 Jul 30, 2019
0.2.1 Jun 11, 2019
0.2.0 May 1, 2019
0.1.0 Apr 24, 2019

#6 in #exporter

Download history 15/week @ 2019-04-23 14/week @ 2019-04-30 3/week @ 2019-05-07 6/week @ 2019-05-14 13/week @ 2019-05-21 18/week @ 2019-05-28 13/week @ 2019-06-04 221/week @ 2019-06-11 760/week @ 2019-06-18 429/week @ 2019-06-25 571/week @ 2019-07-02 333/week @ 2019-07-09 423/week @ 2019-07-16 221/week @ 2019-07-23

1,015 downloads per month
Used in 1 crate

MIT license

18KB
240 lines

metrics-exporter-log

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

metrics-exporter-log is a metrics-core compatible exporter for forwarding metrics to logs.

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 observers that are able to be converted to a textual representation via [Drain<String>]. 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

~1MB
~17K SLoC