Class PickleProtocolMetricDecoder

    • Field Detail

      • logger

        protected static final Logger logger
    • Constructor Detail

      • PickleProtocolMetricDecoder

        public PickleProtocolMetricDecoder​(String hostName,
                                           List<String> customSourceTags,
                                           MetricMangler mangler,
                                           int port)
        Constructor.
        Parameters:
        hostName - the default host name.
        customSourceTags - list of source tags for this host.
        mangler - the metric mangler object.
        port - the listening port (for debug logging)
    • Method Detail

      • decode

        public void decode​(byte[] msg,
                           List<ReportMetric> out,
                           String customerId,
                           IngesterContext ctx)
        Description copied from interface: ReportableEntityDecoder
        Decode graphite points and dump them into an output array. The supplied customer id will be set and no customer id extraction will be attempted.
        Specified by:
        decode in interface ReportableEntityDecoder<byte[],​ReportMetric>
        Parameters:
        msg - Message to parse.
        out - List to output the parsed point.
        customerId - The customer id to use as the table for the result ReportPoint.
        ctx - The ingester context with extra params for decoding.