Expand description
Exports metrics by logging them in a textual format.
This exporter utilizes the log
crate to log a textual representation of metrics in a given
snapshot. Metrics that are scoped are represented using an indented tree structure.
As an example, for a snapshot with two metrics – server.msgs_received
and server.msgs_sent
– we would expect to see:
root:
server:
msgs_received: 42
msgs_sent: 13
If we added another metric – configuration_reloads
– we would expect to see:
root:
configuration_reloads: 2
server:
msgs_received: 42
msgs_sent: 13
Metrics are sorted alphabetically.
§Histograms
Histograms received a little extra love and care when it comes to formatting. This is the general format of a given histogram when rendered:
root:
connect_time count: 15
connect_time min: 1334ns
connect_time p50: 1934ns
connect_time p99: 5330ns
connect_time max: 139389ns
The percentiles shown are based on the percentiles configured for hotmic itself, which are
generated for us and can’t be influenced at the exporter level. The count
value represents
the number of samples in the histogram at the time of measurement.
Structs§
- Exports metrics by logging them in a textual format.