github.com/iron-io/functions@v0.0.0-20180820112432-d59d7d1c40b2/docs/operating/metrics.md (about)

     1  # Metrics
     2  
     3  Metrics are emitted via the logs for few couple of reasons:
     4  
     5  1. Everything supports STDERR.
     6  2. User can optionally use them, if not, they just end up in the logs.
     7  3. No particular metrics system required, in other words, all metrics systems can be used via adapters (see below).
     8  
     9  ## Metrics
    10  
    11  The metrics format follows logfmt format and looks like this:
    12  
    13  ```
    14  metric=someevent value=1 type=count
    15  metric=somegauge value=50 type=gauge
    16  ```
    17  
    18  It's a very simple format that can be easily parsed by any logfmt parser and passed on to another stats service.
    19  
    20  TODO: List all metrics we emit to logs.
    21  
    22  ## Statsd
    23  
    24  The [Logspout Statsd Adapter](https://github.com/iron-io/logspout-statsd) adapter can parse the log metrics and forward
    25  them to any statsd server.