Skip to main content
Version: 0.12

statsd

The statsd codec supports the statsd format.

The format is similar the influx line protoco` line protocoll.

The codec translates a single statsd measurement line into a structured event

Example

The native format of a single statsd event line is as follows:

sam:7|c|@0.1

The equivalent representation as a tremor value:

{
"type": "c",
"metric": "sam",
"value": 7,
"sample_rate": 0.1
}

Supported types

  • c for counter
  • ms for timing
  • g for gauge
  • h for histogram
  • s for sets

Considerations

For gauge there is also the field action which might be add if the value was prefixed with a +, or sub if the value was prefixed with a -