A number of advanced configuration options are available for StackState Agent V3. These can be set either in the stackstate.yaml configuration file (Linux and Windows) or using environment variables (Docker, Kubernetes and OpenShift).
Reduce data production
The StackState Agent V3 collection interval can be configured. This will reduce the amount of data produced by the Agent.
To configure the collection interval of the Kubernetes and system level integrations, create a values.yaml file with the below contents and specify this when you install/upgrade StackState Agent V3. In this values.yaml example, the min_collection_interval has been set to double the default setting. This should result in a noticeable drop in the amount of data produced. If required, you can increase the interval further, however, the aim should be to find a balance between the frequency of data collection and the amount of data received by StackState:
To reduce data production in StackState Agent running in a Docker container:
Configure the min_collection_interval for each of the following system integrations. The default setting is 15 seconds. Doubling this value should result in a noticeable drop in the amount of data produced. If required, you can increase the interval further, however, the aim should be to find a balance between the frequency of data collection and the amount of data received by StackState:
To reduce data production in StackState Agent running on Linux:
Configure the min_collection_interval for each of the following system integrations. The default setting is 15 seconds. Doubling this value should result in a noticeable drop in the amount of data produced. If required, you can increase the interval further, however, the aim should be to find a balance between the frequency of data collection and the amount of data received by StackState:
To reduce data production in StackState Agent running on Windows:
Configure the min_collection_interval for each of the following system integrations. The default setting is 15 seconds. Doubling this value should result in a noticeable drop in the amount of data produced. If required, you can increase the interval further, however, the aim should be to find a balance between the frequency of data collection and the amount of data received by StackState:
The Agent can be configured to use a proxy for HTTP and HTTPS requests. For details, see use an HTTP/HTTPS proxy.
Blacklist and inclusions
Processes reported by StackState Agent V3 can optionally be filtered using a blacklist. Using this in conjunction with inclusion rules will allow otherwise excluded processes to be included.
The blacklist is specified as a list of regex patterns. Inclusions override the blacklist patterns, these are used to include processes that consume a lot of resources. Each inclusion type specifies an amount of processes to report as the top resource using processes. For top_cpu and top_mem a threshold must first be met, meaning that a process needs to consume a higher percentage of resources than the specified threshold before it's reported.
To specify a blacklist or inclusions, set the associated environment variables and restart StackState Agent V3.
The number of processes to report that have a high IO write usage. Default 0.
process_blacklist.inclusions.mem_usage_threshold
Threshold that enables the reporting of high memory usage processes.
process_blacklist.inclusions.amount_top_mem_usage
The number of processes to report that have a high memory usage. Default 0.
Enable traces
The trace Agent will be enabled by default when StackState Agent is installed. It's required to receive traces in StackState. In case it has been disabled, you can enable it again using the instructions below.
To enable tracing on StackState Agent running on Docker, edd the following parameters to your docker run command:
Allows the StackState Trace Agent to capture traces.
To enable tracing on StackState Agent running on Linux, edit the configuration file /etc/stackstate-agent/stackstate.yamland set the following variables:
Allows the StackState Trace Agent to capture traces.
To enable tracing on StackState Agent running on Windows, edit the configuration file C:\ProgramData\StackState\stackstate.yaml and change the following variables: