public abstract class AbstractAgent extends Object
Constructor and Description |
---|
AbstractAgent() |
AbstractAgent(boolean localAgent,
boolean pushAgent) |
Modifier and Type | Method and Description |
---|---|
protected WavefrontAPI |
createAgentService()
Create RESTeasy proxies for remote calls via HTTP.
|
protected PostPushDataTimedTask[] |
getFlushTasks(String handle) |
protected PostPushDataTimedTask[] |
getFlushTasks(String pushFormat,
String handle) |
protected PostSourceTagTimedTask[] |
getSourceTagFlushTasks(int port) |
protected LogsIngestionConfig |
loadLogsIngestionConfig() |
protected void |
processConfiguration(AgentConfiguration config)
Actual agents can do additional configuration.
|
void |
shutdown() |
void |
start(String[] args)
Entry-point for the application.
|
protected abstract void |
startListeners() |
protected abstract void |
stopListeners() |
protected static final Logger logger
protected final Counter activeListeners
protected String prefix
protected String token
protected String pushLogLevel
protected String pushValidationLevel
protected String server
protected Integer retryThreads
protected Integer flushThreads
protected AtomicInteger pushFlushInterval
protected int pushFlushIntervalInitialValue
protected AtomicInteger pushFlushMaxPoints
protected int pushFlushMaxPointsInitialValue
protected Integer pushRateLimit
protected Integer pushRateLimitMaxBurstSeconds
protected AtomicInteger pushMemoryBufferLimit
protected Integer pushBlockedSamples
protected String pushListenerPorts
protected int memGuardFlushThreshold
protected String histogramStateDirectory
protected Long histogramAccumulatorResolveInterval
protected Long histogramAccumulatorFlushInterval
protected Integer histogramAccumulatorFlushMaxBatchSize
protected Integer histogramReceiveBufferFlushInterval
protected Integer histogramProcessingQueueScanInterval
protected String histogramMinuteListenerPorts
protected Integer histogramMinuteAccumulators
protected Integer histogramMinuteFlushSecs
protected Short histogramMinuteCompression
protected Integer histogramMinuteAvgKeyBytes
protected Integer histogramMinuteAvgDigestBytes
protected Long histogramMinuteAccumulatorSize
protected boolean histogramMinuteMemoryCache
protected String histogramHourListenerPorts
protected Integer histogramHourAccumulators
protected Integer histogramHourFlushSecs
protected Short histogramHourCompression
protected Integer histogramHourAvgKeyBytes
protected Integer histogramHourAvgDigestBytes
protected Long histogramHourAccumulatorSize
protected boolean histogramHourMemoryCache
protected String histogramDayListenerPorts
protected Integer histogramDayAccumulators
protected Integer histogramDayFlushSecs
protected Short histogramDayCompression
protected Integer histogramDayAvgKeyBytes
protected Integer histogramDayAvgDigestBytes
protected Long histogramDayAccumulatorSize
protected boolean histogramDayMemoryCache
protected String histogramDistListenerPorts
protected Integer histogramDistAccumulators
protected Integer histogramDistFlushSecs
protected Short histogramDistCompression
protected Integer histogramDistAvgKeyBytes
protected Integer histogramDistAvgDigestBytes
protected Long histogramDistAccumulatorSize
protected boolean histogramDistMemoryCache
protected Long histogramAccumulatorSize
protected Integer avgHistogramKeyBytes
protected Integer avgHistogramDigestBytes
protected boolean persistMessages
protected boolean persistMessagesCompression
protected boolean persistAccumulator
protected Short histogramCompression
protected String graphitePorts
protected String graphiteFormat
protected String graphiteDelimiters
protected String graphiteFieldsToRemove
protected String httpJsonPorts
protected String writeHttpJsonPorts
protected Integer filebeatPort
protected Integer rawLogsPort
protected String hostname
protected String idFile
protected String graphiteWhitelistRegex
protected String graphiteBlacklistRegex
protected String whitelistRegex
protected String blacklistRegex
protected String opentsdbPorts
protected String opentsdbWhitelistRegex
protected String opentsdbBlacklistRegex
protected String picklePorts
protected boolean splitPushWhenRateLimited
protected com.google.common.util.concurrent.AtomicDouble retryBackoffBaseSeconds
protected double retryBackoffBaseSecondsInitialValue
protected String customSourceTagsProperty
protected String agentMetricsPointTags
protected boolean ephemeral
protected boolean disableRdnsLookup
protected boolean javaNetConnection
protected boolean gzipCompression
protected Integer soLingerTime
protected String proxyHost
protected Integer proxyPort
protected String proxyUser
protected String proxyPassword
protected String httpUserAgent
protected Integer httpConnectTimeout
protected Integer httpRequestTimeout
protected Integer httpMaxConnTotal
protected Integer httpMaxConnPerRoute
protected Integer httpAutoRetries
protected String preprocessorConfigFile
protected Integer dataBackfillCutoffHours
protected String logsIngestionConfigFile
protected QueuedAgentService agentAPI
protected ResourceBundle props
protected final AtomicLong bufferSpaceLeft
protected final List<PostPushDataTimedTask> managedTasks
protected final List<PostSourceTagTimedTask> managedSourceTagTasks
protected final List<ExecutorService> managedExecutors
protected final AgentPreprocessorConfiguration preprocessors
protected RecyclableRateLimiter pushRateLimiter
protected final MemoryPoolMXBean tenuredGenPool
protected com.fasterxml.jackson.databind.JsonNode agentMetrics
protected long agentMetricsCaptureTs
protected boolean shuttingDown
protected final int sessionId
protected final boolean localAgent
protected final boolean pushAgent
protected final AtomicBoolean histogramDisabled
protected UUID agentId
public AbstractAgent()
public AbstractAgent(boolean localAgent, boolean pushAgent)
protected abstract void startListeners()
protected abstract void stopListeners()
protected LogsIngestionConfig loadLogsIngestionConfig()
public void start(String[] args) throws IOException
args
- Command-line parameters passed on to JCommander to configure the daemon.IOException
protected WavefrontAPI createAgentService()
protected PostPushDataTimedTask[] getFlushTasks(String handle)
protected PostPushDataTimedTask[] getFlushTasks(String pushFormat, String handle)
protected PostSourceTagTimedTask[] getSourceTagFlushTasks(int port)
protected void processConfiguration(AgentConfiguration config)
config
- The configuration to process.public void shutdown()
Copyright © 2017. All rights reserved.