Class StatsdToRecordParser
java.lang.Object
com.arpnetworking.metrics.mad.parsers.StatsdToRecordParser
- All Implemented Interfaces:
Parser<List<Record>,
ByteBuffer>
Parses Statsd data as a
Record
.
There are two Important differences compared to traditional statsd server
implementations. First, each counter or meter value, which is a delta,
is treated as a sample for that metric. Second, sets are not supported at
this time because they would need to be pushed down to our bucketing and
aggregation layer as a first-class metric type.
Except for the differences described above this parser supports both the
traditional, Data Dog, and Influx variants of the statsd protocol as defined here:
https://github.com/b/statsd_spec
https://docs.datadoghq.com/guides/dogstatsd/
https://github.com/influxdata/telegraf/tree/master/plugins/inputs/statsd#influx-statsd- Author:
- Ville Koskela (ville dot koskela at inscopemetrics dot io)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionparse
(ByteBuffer datagram) Create aRecord
from a serialized representation.
-
Constructor Details
-
StatsdToRecordParser
public StatsdToRecordParser()Public constructor.
-
-
Method Details
-
parse
Description copied from interface:Parser
Create aRecord
from a serialized representation.- Specified by:
parse
in interfaceParser<List<Record>,
ByteBuffer> - Parameters:
datagram
- Some serialized representation of aRecord
.- Returns:
- Instance of
Record
from the data. - Throws:
ParsingException
- If parsing of the data fails for any reason.
-