Search in sources :

Example 1 with DataDogPortUnificationHandler

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

the class PushAgent method startDataDogListener.

protected void startDataDogListener(final String strPort, ReportableEntityHandlerFactory handlerFactory, HttpClient httpClient) {
    if (tokenAuthenticator.authRequired()) {
        logger.warning("Port: " + strPort + " (DataDog) is not compatible with HTTP authentication, ignoring");
        return;
    }
    int port = Integer.parseInt(strPort);
    registerPrefixFilter(strPort);
    registerTimestampFilter(strPort);
    if (proxyConfig.isHttpHealthCheckAllPorts())
        healthCheckManager.enableHealthcheck(port);
    ChannelHandler channelHandler = new DataDogPortUnificationHandler(strPort, healthCheckManager, handlerFactory, proxyConfig.getDataDogRequestRelayAsyncThreads(), proxyConfig.isDataDogRequestRelaySyncMode(), proxyConfig.isDataDogProcessSystemMetrics(), proxyConfig.isDataDogProcessServiceChecks(), httpClient, proxyConfig.getDataDogRequestRelayTarget(), 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-datadog-" + port);
    logger.info("listening on port: " + strPort + " for DataDog metrics");
}
Also used : DataDogPortUnificationHandler(com.wavefront.agent.listeners.DataDogPortUnificationHandler) ChannelHandler(io.netty.channel.ChannelHandler) ReportPoint(wavefront.report.ReportPoint) TcpIngester(com.wavefront.ingester.TcpIngester)

Aggregations

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