statsd
The statsd
codec supports the statsd format.
The format is similar to the influx
line protocol.
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
forcounter
ms
fortiming
g
forgauge
h
forhistogram
s
forsets
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 -