public abstract class AbstractAgent extends Object
Constructor and Description |
---|
AbstractAgent() |
AbstractAgent(boolean localAgent,
boolean pushAgent) |
Modifier and Type | Method and Description |
---|---|
protected AgentAPI |
createAgentService()
Create RESTeasy proxies for remote calls via HTTP.
|
protected PostPushDataTimedTask[] |
getFlushTasks(String handle) |
protected PostPushDataTimedTask[] |
getFlushTasks(String pushFormat,
String handle) |
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 pushLogLevel
protected String pushValidationLevel
protected String server
protected int retryThreads
protected int flushThreads
protected long pushFlushInterval
protected int pushFlushMaxPoints
protected int pushRateLimit
protected int pushMemoryBufferLimit
protected int pushBlockedSamples
protected String pushListenerPorts
protected int memGuardFlushThreshold
protected String histogramStateDirectory
protected long histogramAccumulatorResolveInterval
protected String histogramMinsListenerPorts
protected int histogramMinuteAccumulators
protected int histogramMinuteFlushSecs
protected String histogramHoursListenerPorts
protected int histogramHourAccumulators
protected int histogramHourFlushSecs
protected String histogramDaysListenerPorts
protected int histogramDayAccumulators
protected int histogramDayFlushSecs
protected String histogramDistListenerPorts
protected int histogramDistAccumulators
protected int histogramDistFlushSecs
protected long histogramAccumulatorSize
protected int avgHistogramKeyBytes
protected int 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 double retryBackoffBaseSeconds
protected String customSourceTagsProperty
protected String agentMetricsPointTags
protected boolean ephemeral
protected boolean disableRdnsLookup
protected boolean javaNetConnection
protected boolean gzipCompression
protected int soLingerTime
protected String proxyHost
protected int proxyPort
protected String proxyUser
protected String proxyPassword
protected String httpUserAgent
protected int httpConnectTimeout
protected int httpRequestTimeout
protected String preprocessorConfigFile
protected int dataBackfillCutoffHours
protected String logsIngestionConfigFile
protected QueuedAgentService agentAPI
protected ResourceBundle props
protected final AtomicLong bufferSpaceLeft
protected final List<PostPushDataTimedTask> managedTasks
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 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 AgentAPI createAgentService()
protected PostPushDataTimedTask[] getFlushTasks(String handle)
protected PostPushDataTimedTask[] getFlushTasks(String pushFormat, String handle)
protected void processConfiguration(AgentConfiguration config)
config
- The configuration to process.public void shutdown()
Copyright © 2017. All rights reserved.