Search in sources :

Example 1 with JsonMetricsPortUnificationHandler

use of com.wavefront.agent.listeners.JsonMetricsPortUnificationHandler in project java by wavefrontHQ.

the class PushAgent method startJsonListener.

protected void startJsonListener(String strPort, ReportableEntityHandlerFactory handlerFactory) {
    final int port = Integer.parseInt(strPort);
    registerTimestampFilter(strPort);
    if (proxyConfig.isHttpHealthCheckAllPorts())
        healthCheckManager.enableHealthcheck(port);
    ChannelHandler channelHandler = new JsonMetricsPortUnificationHandler(strPort, tokenAuthenticator, healthCheckManager, handlerFactory, proxyConfig.getPrefix(), proxyConfig.getHostname(), preprocessors.get(strPort));
    startAsManagedThread(port, new TcpIngester(createInitializer(channelHandler, port, proxyConfig.getPushListenerMaxReceivedLength(), proxyConfig.getPushListenerHttpBufferSize(), proxyConfig.getListenerIdleConnectionTimeout(), getSslContext(strPort), getCorsConfig(strPort)), port).withChildChannelOptions(childChannelOptions), "listener-plaintext-json-" + port);
    logger.info("listening on port: " + strPort + " for JSON metrics data");
}
Also used : JsonMetricsPortUnificationHandler(com.wavefront.agent.listeners.JsonMetricsPortUnificationHandler) ChannelHandler(io.netty.channel.ChannelHandler) ReportPoint(wavefront.report.ReportPoint) TcpIngester(com.wavefront.ingester.TcpIngester)

Aggregations

JsonMetricsPortUnificationHandler (com.wavefront.agent.listeners.JsonMetricsPortUnificationHandler)1 TcpIngester (com.wavefront.ingester.TcpIngester)1 ChannelHandler (io.netty.channel.ChannelHandler)1 ReportPoint (wavefront.report.ReportPoint)1