mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Fix pillar
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
{%- set UNIQUEID = salt['pillar.get']('sensor:uniqueid', '') %}
|
||||
{%- set ZEEK_ENABLED = salt['pillar.get']('zeek:enabled', True) %}
|
||||
{%- set MDENGINE = GLOBALS.md_engine %}
|
||||
{%- set TGMERGED = salt['pillar.get']('telegraf', TGDEFAULTS, merge=true) %}
|
||||
{%- set TGMERGED = salt['pillar.get']('telegraf:config', TGDEFAULTS, merge=true) %}
|
||||
# Global tags can be specified here in key="value" format.
|
||||
[global_tags]
|
||||
role = "{{ GLOBALS.role.split('-') | last }}"
|
||||
@@ -15,7 +15,7 @@
|
||||
# Configuration for telegraf agent
|
||||
[agent]
|
||||
## Default data collection interval for all inputs
|
||||
interval = "{{ TGMERGED.telegraf.config.interval }}"
|
||||
interval = "{{ TGMERGED.interval }}"
|
||||
## Rounds collection interval to 'interval'
|
||||
## ie, if interval="10s" then always collect on :00, :10, :20, etc.
|
||||
round_interval = true
|
||||
@@ -23,27 +23,27 @@
|
||||
## Telegraf will send metrics to outputs in batches of at most
|
||||
## metric_batch_size metrics.
|
||||
## This controls the size of writes that Telegraf sends to output plugins.
|
||||
metric_batch_size = {{ TGMERGED.telegraf.config.metric_batch_size }}
|
||||
metric_batch_size = {{ TGMERGED.metric_batch_size }}
|
||||
|
||||
## For failed writes, telegraf will cache metric_buffer_limit metrics for each
|
||||
## output, and will flush this buffer on a successful write. Oldest metrics
|
||||
## are dropped first when this buffer fills.
|
||||
## This buffer only fills when writes fail to output plugin(s).
|
||||
metric_buffer_limit = {{ TGMERGED.telegraf.config.metric_buffer_limit }}
|
||||
metric_buffer_limit = {{ TGMERGED.metric_buffer_limit }}
|
||||
|
||||
## Collection jitter is used to jitter the collection by a random amount.
|
||||
## Each plugin will sleep for a random time within jitter before collecting.
|
||||
## This can be used to avoid many plugins querying things like sysfs at the
|
||||
## same time, which can have a measurable effect on the system.
|
||||
collection_jitter = "{{ TGMERGED.telegraf.config.collection_jitter }}"
|
||||
collection_jitter = "{{ TGMERGED.collection_jitter }}"
|
||||
|
||||
## Default flushing interval for all outputs. Maximum flush_interval will be
|
||||
## flush_interval + flush_jitter
|
||||
flush_interval = "{{ TGMERGED.telegraf.config.flush_interval }}"
|
||||
flush_interval = "{{ TGMERGED.flush_interval }}"
|
||||
## Jitter the flush interval by a random amount. This is primarily to avoid
|
||||
## large write spikes for users running a large number of telegraf instances.
|
||||
## ie, a jitter of 5s and interval 10s means flushes will happen every 10-15s
|
||||
flush_jitter = "{{ TGMERGED.telegraf.config.flush_jitter }}"
|
||||
flush_jitter = "{{ TGMERGED.flush_jitter }}"
|
||||
|
||||
## By default or when set to "0s", precision will be set to the same
|
||||
## timestamp order as the collection interval, with the maximum being 1s.
|
||||
@@ -56,7 +56,7 @@
|
||||
|
||||
## Logging configuration:
|
||||
## Run telegraf with debug log messages.
|
||||
debug = {{ TGMERGED.telegraf.config.debug }}
|
||||
debug = {{ TGMERGED.debug }}
|
||||
## Run telegraf in quiet mode (error log messages only).
|
||||
quiet = false
|
||||
## Specify the log file name. The empty string means to log to stderr.
|
||||
|
||||
Reference in New Issue
Block a user