Crate elfo_telemeter
source ·Expand description
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.
Modules
- Contains the protocol to interact with the telemeter.
Functions
- Installs a global metric recorder and returns a group to handle metrics.
- newDeprecatedInstalls a global metric recorder and returns a group to handle metrics.