Package com.wavefront.agent
Class ProxyConfig
- java.lang.Object
-
- com.wavefront.agent.config.Configuration
-
- com.wavefront.agent.ProxyConfig
-
public class ProxyConfig extends Configuration
Proxy configuration (refactored fromAbstractAgent
).- Author:
- [email protected]
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ProxyConfig.TaskQueueLevelConverter
static class
ProxyConfig.TokenValidationMethodConverter
-
Field Summary
Fields Modifier and Type Field Description protected String
privateCertPath
protected String
privateKeyPath
protected String
tlsPorts
protected boolean
trafficShaping
protected double
trafficShapingHeadroom
protected Integer
trafficShapingWindowSeconds
-
Constructor Summary
Constructors Constructor Description ProxyConfig()
-
Method Summary
-
Methods inherited from class com.wavefront.agent.config.Configuration
ensure, equals, hashCode, toString
-
-
-
-
Field Detail
-
privateCertPath
protected String privateCertPath
-
privateKeyPath
protected String privateKeyPath
-
tlsPorts
protected String tlsPorts
-
trafficShaping
protected boolean trafficShaping
-
trafficShapingWindowSeconds
protected Integer trafficShapingWindowSeconds
-
trafficShapingHeadroom
protected double trafficShapingHeadroom
-
-
Method Detail
-
isHelp
public boolean isHelp()
-
isVersion
public boolean isVersion()
-
getPrefix
public String getPrefix()
-
getToken
public String getToken()
-
isTestLogs
public boolean isTestLogs()
-
getTestPreprocessorForPort
public String getTestPreprocessorForPort()
-
getTestSpanPreprocessorForPort
public String getTestSpanPreprocessorForPort()
-
getServer
public String getServer()
-
getBufferFile
public String getBufferFile()
-
isSqsQueueBuffer
public boolean isSqsQueueBuffer()
-
getSqsQueueNameTemplate
public String getSqsQueueNameTemplate()
-
getSqsQueueRegion
public String getSqsQueueRegion()
-
getSqsQueueIdentifier
public String getSqsQueueIdentifier()
-
getTaskQueueLevel
public TaskQueueLevel getTaskQueueLevel()
-
getExportQueuePorts
public String getExportQueuePorts()
-
getExportQueueOutputFile
public String getExportQueueOutputFile()
-
isExportQueueRetainData
public boolean isExportQueueRetainData()
-
isUseNoopSender
public boolean isUseNoopSender()
-
getFlushThreads
public Integer getFlushThreads()
-
getFlushThreadsSourceTags
public int getFlushThreadsSourceTags()
-
getFlushThreadsEvents
public int getFlushThreadsEvents()
-
isPurgeBuffer
public boolean isPurgeBuffer()
-
getPushFlushInterval
public int getPushFlushInterval()
-
getPushFlushMaxPoints
public int getPushFlushMaxPoints()
-
getPushFlushMaxHistograms
public int getPushFlushMaxHistograms()
-
getPushFlushMaxSourceTags
public int getPushFlushMaxSourceTags()
-
getPushFlushMaxSpans
public int getPushFlushMaxSpans()
-
getPushFlushMaxSpanLogs
public int getPushFlushMaxSpanLogs()
-
getPushFlushMaxEvents
public int getPushFlushMaxEvents()
-
getPushRateLimit
public double getPushRateLimit()
-
getPushRateLimitHistograms
public double getPushRateLimitHistograms()
-
getPushRateLimitSourceTags
public double getPushRateLimitSourceTags()
-
getPushRateLimitSpans
public double getPushRateLimitSpans()
-
getPushRateLimitSpanLogs
public double getPushRateLimitSpanLogs()
-
getPushRateLimitEvents
public double getPushRateLimitEvents()
-
getPushRateLimitMaxBurstSeconds
public int getPushRateLimitMaxBurstSeconds()
-
getPushMemoryBufferLimit
public int getPushMemoryBufferLimit()
-
getPushBlockedSamples
public Integer getPushBlockedSamples()
-
getBlockedPointsLoggerName
public String getBlockedPointsLoggerName()
-
getBlockedHistogramsLoggerName
public String getBlockedHistogramsLoggerName()
-
getBlockedSpansLoggerName
public String getBlockedSpansLoggerName()
-
getPushListenerPorts
public String getPushListenerPorts()
-
getPushListenerMaxReceivedLength
public Integer getPushListenerMaxReceivedLength()
-
getPushListenerHttpBufferSize
public Integer getPushListenerHttpBufferSize()
-
getTraceListenerMaxReceivedLength
public Integer getTraceListenerMaxReceivedLength()
-
getTraceListenerHttpBufferSize
public Integer getTraceListenerHttpBufferSize()
-
getListenerIdleConnectionTimeout
public int getListenerIdleConnectionTimeout()
-
getMemGuardFlushThreshold
public int getMemGuardFlushThreshold()
-
isHistogramPassthroughRecompression
public boolean isHistogramPassthroughRecompression()
-
getHistogramStateDirectory
public String getHistogramStateDirectory()
-
getHistogramAccumulatorResolveInterval
public Long getHistogramAccumulatorResolveInterval()
-
getHistogramAccumulatorFlushInterval
public Long getHistogramAccumulatorFlushInterval()
-
getHistogramAccumulatorFlushMaxBatchSize
public Integer getHistogramAccumulatorFlushMaxBatchSize()
-
getHistogramMaxReceivedLength
public Integer getHistogramMaxReceivedLength()
-
getHistogramHttpBufferSize
public Integer getHistogramHttpBufferSize()
-
getHistogramMinuteListenerPorts
public String getHistogramMinuteListenerPorts()
-
getHistogramMinuteFlushSecs
public Integer getHistogramMinuteFlushSecs()
-
getHistogramMinuteCompression
public Short getHistogramMinuteCompression()
-
getHistogramMinuteAvgKeyBytes
public Integer getHistogramMinuteAvgKeyBytes()
-
getHistogramMinuteAvgDigestBytes
public Integer getHistogramMinuteAvgDigestBytes()
-
getHistogramMinuteAccumulatorSize
public Long getHistogramMinuteAccumulatorSize()
-
isHistogramMinuteAccumulatorPersisted
public boolean isHistogramMinuteAccumulatorPersisted()
-
isHistogramMinuteMemoryCache
public boolean isHistogramMinuteMemoryCache()
-
getHistogramHourListenerPorts
public String getHistogramHourListenerPorts()
-
getHistogramHourFlushSecs
public Integer getHistogramHourFlushSecs()
-
getHistogramHourCompression
public Short getHistogramHourCompression()
-
getHistogramHourAvgKeyBytes
public Integer getHistogramHourAvgKeyBytes()
-
getHistogramHourAvgDigestBytes
public Integer getHistogramHourAvgDigestBytes()
-
getHistogramHourAccumulatorSize
public Long getHistogramHourAccumulatorSize()
-
isHistogramHourAccumulatorPersisted
public boolean isHistogramHourAccumulatorPersisted()
-
isHistogramHourMemoryCache
public boolean isHistogramHourMemoryCache()
-
getHistogramDayListenerPorts
public String getHistogramDayListenerPorts()
-
getHistogramDayFlushSecs
public Integer getHistogramDayFlushSecs()
-
getHistogramDayCompression
public Short getHistogramDayCompression()
-
getHistogramDayAvgKeyBytes
public Integer getHistogramDayAvgKeyBytes()
-
getHistogramDayAvgDigestBytes
public Integer getHistogramDayAvgDigestBytes()
-
getHistogramDayAccumulatorSize
public Long getHistogramDayAccumulatorSize()
-
isHistogramDayAccumulatorPersisted
public boolean isHistogramDayAccumulatorPersisted()
-
isHistogramDayMemoryCache
public boolean isHistogramDayMemoryCache()
-
getHistogramDistListenerPorts
public String getHistogramDistListenerPorts()
-
getHistogramDistFlushSecs
public Integer getHistogramDistFlushSecs()
-
getHistogramDistCompression
public Short getHistogramDistCompression()
-
getHistogramDistAvgKeyBytes
public Integer getHistogramDistAvgKeyBytes()
-
getHistogramDistAvgDigestBytes
public Integer getHistogramDistAvgDigestBytes()
-
getHistogramDistAccumulatorSize
public Long getHistogramDistAccumulatorSize()
-
isHistogramDistAccumulatorPersisted
public boolean isHistogramDistAccumulatorPersisted()
-
isHistogramDistMemoryCache
public boolean isHistogramDistMemoryCache()
-
getGraphitePorts
public String getGraphitePorts()
-
getGraphiteFormat
public String getGraphiteFormat()
-
getGraphiteDelimiters
public String getGraphiteDelimiters()
-
getGraphiteFieldsToRemove
public String getGraphiteFieldsToRemove()
-
getJsonListenerPorts
public String getJsonListenerPorts()
-
getDataDogJsonPorts
public String getDataDogJsonPorts()
-
getDataDogRequestRelayTarget
public String getDataDogRequestRelayTarget()
-
getDataDogRequestRelayAsyncThreads
public int getDataDogRequestRelayAsyncThreads()
-
isDataDogRequestRelaySyncMode
public boolean isDataDogRequestRelaySyncMode()
-
isDataDogProcessSystemMetrics
public boolean isDataDogProcessSystemMetrics()
-
isDataDogProcessServiceChecks
public boolean isDataDogProcessServiceChecks()
-
getWriteHttpJsonListenerPorts
public String getWriteHttpJsonListenerPorts()
-
getFilebeatPort
public Integer getFilebeatPort()
-
getRawLogsPort
public Integer getRawLogsPort()
-
getRawLogsMaxReceivedLength
public Integer getRawLogsMaxReceivedLength()
-
getRawLogsHttpBufferSize
public Integer getRawLogsHttpBufferSize()
-
getLogsIngestionConfigFile
public String getLogsIngestionConfigFile()
-
getHostname
public String getHostname()
-
getIdFile
public String getIdFile()
-
getAllowRegex
public String getAllowRegex()
-
getBlockRegex
public String getBlockRegex()
-
getOpentsdbPorts
public String getOpentsdbPorts()
-
getOpentsdbAllowRegex
public String getOpentsdbAllowRegex()
-
getOpentsdbBlockRegex
public String getOpentsdbBlockRegex()
-
getPicklePorts
public String getPicklePorts()
-
getTraceListenerPorts
public String getTraceListenerPorts()
-
getTraceJaegerListenerPorts
public String getTraceJaegerListenerPorts()
-
getTraceJaegerHttpListenerPorts
public String getTraceJaegerHttpListenerPorts()
-
getTraceJaegerGrpcListenerPorts
public String getTraceJaegerGrpcListenerPorts()
-
getTraceJaegerApplicationName
public String getTraceJaegerApplicationName()
-
getTraceZipkinListenerPorts
public String getTraceZipkinListenerPorts()
-
getTraceZipkinApplicationName
public String getTraceZipkinApplicationName()
-
getCustomTracingListenerPorts
public String getCustomTracingListenerPorts()
-
getCustomTracingApplicationName
public String getCustomTracingApplicationName()
-
getCustomTracingServiceName
public String getCustomTracingServiceName()
-
getTraceSamplingRate
public double getTraceSamplingRate()
-
getTraceSamplingDuration
public Integer getTraceSamplingDuration()
-
isTraceAlwaysSampleErrors
public boolean isTraceAlwaysSampleErrors()
-
getPushRelayListenerPorts
public String getPushRelayListenerPorts()
-
isPushRelayHistogramAggregator
public boolean isPushRelayHistogramAggregator()
-
getPushRelayHistogramAggregatorAccumulatorSize
public Long getPushRelayHistogramAggregatorAccumulatorSize()
-
getPushRelayHistogramAggregatorFlushSecs
public Integer getPushRelayHistogramAggregatorFlushSecs()
-
getPushRelayHistogramAggregatorCompression
public Short getPushRelayHistogramAggregatorCompression()
-
isSplitPushWhenRateLimited
public boolean isSplitPushWhenRateLimited()
-
getRetryBackoffBaseSeconds
public double getRetryBackoffBaseSeconds()
-
isEphemeral
public boolean isEphemeral()
-
isDisableRdnsLookup
public boolean isDisableRdnsLookup()
-
isGzipCompression
public boolean isGzipCompression()
-
getGzipCompressionLevel
public int getGzipCompressionLevel()
-
getSoLingerTime
public Integer getSoLingerTime()
-
getProxyHost
public String getProxyHost()
-
getProxyPort
public Integer getProxyPort()
-
getProxyUser
public String getProxyUser()
-
getProxyPassword
public String getProxyPassword()
-
getHttpUserAgent
public String getHttpUserAgent()
-
getHttpConnectTimeout
public Integer getHttpConnectTimeout()
-
getHttpRequestTimeout
public Integer getHttpRequestTimeout()
-
getHttpMaxConnTotal
public Integer getHttpMaxConnTotal()
-
getHttpMaxConnPerRoute
public Integer getHttpMaxConnPerRoute()
-
getHttpAutoRetries
public Integer getHttpAutoRetries()
-
getPreprocessorConfigFile
public String getPreprocessorConfigFile()
-
getDataBackfillCutoffHours
public int getDataBackfillCutoffHours()
-
getDataPrefillCutoffHours
public int getDataPrefillCutoffHours()
-
getAuthMethod
public TokenValidationMethod getAuthMethod()
-
getAuthTokenIntrospectionServiceUrl
public String getAuthTokenIntrospectionServiceUrl()
-
getAuthTokenIntrospectionAuthorizationHeader
public String getAuthTokenIntrospectionAuthorizationHeader()
-
getAuthResponseRefreshInterval
public int getAuthResponseRefreshInterval()
-
getAuthResponseMaxTtl
public int getAuthResponseMaxTtl()
-
getAuthStaticToken
public String getAuthStaticToken()
-
getAdminApiListenerPort
public Integer getAdminApiListenerPort()
-
getAdminApiRemoteIpAllowRegex
public String getAdminApiRemoteIpAllowRegex()
-
getHttpHealthCheckPorts
public String getHttpHealthCheckPorts()
-
isHttpHealthCheckAllPorts
public boolean isHttpHealthCheckAllPorts()
-
getHttpHealthCheckPath
public String getHttpHealthCheckPath()
-
getHttpHealthCheckResponseContentType
public String getHttpHealthCheckResponseContentType()
-
getHttpHealthCheckPassStatusCode
public int getHttpHealthCheckPassStatusCode()
-
getHttpHealthCheckPassResponseBody
public String getHttpHealthCheckPassResponseBody()
-
getHttpHealthCheckFailStatusCode
public int getHttpHealthCheckFailStatusCode()
-
getHttpHealthCheckFailResponseBody
public String getHttpHealthCheckFailResponseBody()
-
getDeltaCountersAggregationIntervalSeconds
public long getDeltaCountersAggregationIntervalSeconds()
-
getDeltaCountersAggregationListenerPorts
public String getDeltaCountersAggregationListenerPorts()
-
getTimeProvider
public com.wavefront.common.TimeProvider getTimeProvider()
-
getPrivateCertPath
public String getPrivateCertPath()
-
getPrivateKeyPath
public String getPrivateKeyPath()
-
getTlsPorts
public String getTlsPorts()
-
isTrafficShaping
public boolean isTrafficShaping()
-
getTrafficShapingWindowSeconds
public Integer getTrafficShapingWindowSeconds()
-
getTrafficShapingHeadroom
public double getTrafficShapingHeadroom()
-
verifyAndInit
public void verifyAndInit()
- Specified by:
verifyAndInit
in classConfiguration
-
parseArguments
public boolean parseArguments(String[] args, String programName) throws com.beust.jcommander.ParameterException
Parse commandline arguments intoProxyConfig
object.- Parameters:
args
- arguments to parseprogramName
- program name (to display help)- Returns:
- true if proxy should continue, false if proxy should terminate.
- Throws:
com.beust.jcommander.ParameterException
- if configuration parsing failed
-
-