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");
}
Aggregations