#metrics #telemetry #prometheus

elfo-telemeter

A telemeter collecting metrics

5 releases

0.1.4 Oct 14, 2021
0.1.3 Sep 27, 2021
0.1.2 Sep 27, 2021
0.1.1 Sep 23, 2021
0.1.0 Sep 9, 2021

#11 in #telemetry

41 downloads per month
Used in elfo

MIT license

26KB
635 lines


lib.rs:

Interaction with the metrics crate. Records metrics in the Prometheus exposition format.

A lot of code here is highly inspired by metrics-exporter-prometheus, and even copy-pasted from it with removing some useful features. Firstly, push gateways aren't supported. Secondly, histogram overrides don't work, only summaries.

All metrics include information about the actor, where they were produced. Such information is added as labels. By default, only the actor_group label is added, but it's possible to provide actor_key on a group basis. It's useful, if a group has few actors inside.

I'm going to extend the original crate to reuse code.

Dependencies

~13MB
~252K SLoC