public class PushAgent extends AbstractAgent
Modifier and Type | Field and Description |
---|---|
protected IdentityHashMap<io.netty.channel.ChannelOption<?>,Object> |
childChannelOptions |
protected ScheduledExecutorService |
histogramExecutor |
protected ScheduledExecutorService |
histogramFlushExecutor |
protected ScheduledExecutorService |
histogramScanExecutor |
protected List<Thread> |
managedThreads |
activeListeners, agentAPI, agentId, agentMetrics, agentMetricsCaptureTs, agentMetricsPointTags, avgHistogramDigestBytes, avgHistogramKeyBytes, blacklistRegex, bufferSpaceLeft, customSourceTags, customSourceTagsProperty, dataBackfillCutoffHours, disableRdnsLookup, ephemeral, filebeatPort, flushThreads, graphiteBlacklistRegex, graphiteDelimiters, graphiteFieldsToRemove, graphiteFormat, graphitePorts, graphiteWhitelistRegex, gzipCompression, histogramAccumulatorFlushInterval, histogramAccumulatorFlushMaxBatchSize, histogramAccumulatorResolveInterval, histogramAccumulatorSize, histogramCompression, histogramDayAccumulators, histogramDayAccumulatorSize, histogramDayAvgDigestBytes, histogramDayAvgKeyBytes, histogramDayCompression, histogramDayFlushSecs, histogramDayListenerPorts, histogramDayMemoryCache, histogramDisabled, histogramDistAccumulators, histogramDistAccumulatorSize, histogramDistAvgDigestBytes, histogramDistAvgKeyBytes, histogramDistCompression, histogramDistFlushSecs, histogramDistListenerPorts, histogramDistMemoryCache, histogramHourAccumulators, histogramHourAccumulatorSize, histogramHourAvgDigestBytes, histogramHourAvgKeyBytes, histogramHourCompression, histogramHourFlushSecs, histogramHourListenerPorts, histogramHourMemoryCache, histogramMinuteAccumulators, histogramMinuteAccumulatorSize, histogramMinuteAvgDigestBytes, histogramMinuteAvgKeyBytes, histogramMinuteCompression, histogramMinuteFlushSecs, histogramMinuteListenerPorts, histogramMinuteMemoryCache, histogramProcessingQueueScanInterval, histogramReceiveBufferFlushInterval, histogramStateDirectory, hostname, httpConnectTimeout, httpJsonPorts, httpRequestTimeout, httpUserAgent, idFile, javaNetConnection, localAgent, logger, logsIngestionConfigFile, managedExecutors, managedSourceTagTasks, managedTasks, memGuardFlushThreshold, metadataListenerPorts, opentsdbBlacklistRegex, opentsdbPorts, opentsdbWhitelistRegex, persistAccumulator, persistMessages, persistMessagesCompression, picklePorts, prefix, preprocessorConfigFile, preprocessors, props, proxyHost, proxyPassword, proxyPort, proxyUser, pushAgent, pushBlockedSamples, pushFlushInterval, pushFlushIntervalInitialValue, pushFlushMaxPoints, pushFlushMaxPointsInitialValue, pushListenerPorts, pushLogLevel, pushMemoryBufferLimit, pushRateLimit, pushRateLimiter, pushValidationLevel, rawLogsPort, retryBackoffBaseSeconds, retryBackoffBaseSecondsInitialValue, retryThreads, server, sessionId, shutdownTasks, shuttingDown, soLingerTime, splitPushWhenRateLimited, tenuredGenPool, unparsed_params, whitelistRegex, writeHttpJsonPorts
Modifier | Constructor and Description |
---|---|
|
PushAgent() |
protected |
PushAgent(boolean reportAsPushAgent) |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args) |
protected void |
processConfiguration(AgentConfiguration config)
Push agent configuration during check-in by the collector.
|
protected void |
startAsManagedThread(Runnable target,
String threadName) |
protected void |
startCustomListener(String strPort,
Decoder<String> decoder,
PointHandler pointHandler,
PointPreprocessor preprocessor)
Registers a custom point handler on a particular port.
|
protected void |
startGraphiteListener(String strPort,
boolean withCustomFormatter) |
protected void |
startHistogramListeners(Iterator<String> ports,
Decoder<String> decoder,
PointHandler pointHandler,
TapeDeck<List<String>> receiveDeck,
String listenerBinType,
int flushSecs,
int fanout,
boolean memoryCacheEnabled,
File baseDirectory,
Long accumulatorSize,
int avgKeyBytes,
int avgDigestBytes,
short compression) |
protected void |
startListeners() |
protected void |
startMetadataListener(String strPort) |
protected void |
startOpenTsdbListener(String strPort) |
protected void |
startPickleListener(String strPort,
GraphiteFormatter formatter) |
void |
stopListeners() |
createAgentService, getFlushTasks, getFlushTasks, getSourceTagFlushTasks, loadLogsIngestionConfig, shutdown, start
protected final IdentityHashMap<io.netty.channel.ChannelOption<?>,Object> childChannelOptions
protected ScheduledExecutorService histogramExecutor
protected ScheduledExecutorService histogramScanExecutor
protected ScheduledExecutorService histogramFlushExecutor
public PushAgent()
protected PushAgent(boolean reportAsPushAgent)
public static void main(String[] args) throws IOException
IOException
protected void startListeners()
startListeners
in class AbstractAgent
protected void startOpenTsdbListener(String strPort)
protected void startPickleListener(String strPort, GraphiteFormatter formatter)
protected void startCustomListener(String strPort, Decoder<String> decoder, PointHandler pointHandler, @Nullable PointPreprocessor preprocessor)
strPort
- The port to listen on.decoder
- The decoder to use.pointHandler
- The handler to handle parsed ReportPoints.preprocessor
- Pre-processor (predicates and transform functions) for every pointprotected void startMetadataListener(String strPort)
protected void startGraphiteListener(String strPort, boolean withCustomFormatter)
protected void startHistogramListeners(Iterator<String> ports, Decoder<String> decoder, PointHandler pointHandler, TapeDeck<List<String>> receiveDeck, String listenerBinType, int flushSecs, int fanout, boolean memoryCacheEnabled, File baseDirectory, Long accumulatorSize, int avgKeyBytes, int avgDigestBytes, short compression)
protected void processConfiguration(AgentConfiguration config)
processConfiguration
in class AbstractAgent
config
- The configuration to process.protected void startAsManagedThread(Runnable target, @Nullable String threadName)
public void stopListeners()
stopListeners
in class AbstractAgent
Copyright © 2017. All rights reserved.