Skip to content

Commit 8288064

Browse files
committed
chore(monitor): change default agent config
1 parent 0a572d5 commit 8288064

2 files changed

Lines changed: 12 additions & 10 deletions

File tree

telegraf/README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@ Telegraf configuration is based largely on a toml file that is passed in when th
1111

1212
| Name | Default | Description |
1313
|-----------|---------------|---------------|
14-
| AGENT_INTERVAL | 10s | Default data collection interval for all inputs |
14+
| AGENT_INTERVAL | 60s | Default data collection interval for all inputs |
1515
| AGENT_ROUND_INTERVAL | true | Rounds collection interval to 'interval' ie, if interval="10s" then always collect on :00, :10, :20, etc. |
16-
| AGENT_BUFFER_LIMIT | 10000 | Telegraf will cache metric_buffer_limit metrics for each output, and will flush this buffer on a successful write. |
17-
| AGENT_COLLECTION_JITTER | 0s | 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. |
18-
| AGENT_FLUSH_INTERVAL | 10s | Default data flushing interval for all outputs. You should not set this below interval. Maximum flush_interval will be flush_interval + flush_jitter |
19-
| AGENT_FLUSH_JITTER | 0s | 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 flush_interval 10s means flushes will happen every 10-15s. |
16+
| AGENT_BATCH_SIZE | 3000 | This controls the size of writes that Telegraf sends to output plugins. |
17+
| AGENT_BUFFER_LIMIT | 30000 | Telegraf will cache metric_buffer_limit metrics for each output, and will flush this buffer on a successful write. |
18+
| AGENT_COLLECTION_JITTER | 60s | 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. |
19+
| AGENT_FLUSH_INTERVAL | 60s | Default data flushing interval for all outputs. You should not set this below interval. Maximum flush_interval will be flush_interval + flush_jitter |
20+
| AGENT_FLUSH_JITTER | 60s | 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 flush_interval 10s means flushes will happen every 10-15s. |
2021
| AGENT_DEBUG | false | Run telegraf in debug mode. |
2122
| AGENT_QUIET | false | Run telegraf in quiet mode. |
2223
| AGENT_HOSTNAME | NodeName | Override default hostname |

telegraf/rootfs/home/telegraf/config.toml.tpl

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@
1010

1111
# Set Agent Configuration
1212
[agent]
13-
interval = {{ default "10s" .AGENT_INTERVAL | quote }}
13+
interval = {{ default "60s" .AGENT_INTERVAL | quote }}
1414
round_interval = {{ default true .AGENT_ROUND_INTERVAL }}
15-
metric_buffer_limit = {{ default "10000" .AGENT_BUFFER_LIMIT }}
16-
collection_jitter = {{ default "1s" .AGENT_COLLECTION_JITTER | quote }}
17-
flush_interval = {{ default "1s" .AGENT_FLUSH_INTERVAL | quote }}
18-
flush_jitter = {{ default "0s" .AGENT_FLUSH_JITTER | quote }}
15+
metric_batch_size = {{ default "3000" .AGENT_BATCH_SIZE }}
16+
metric_buffer_limit = {{ default "30000" .AGENT_BUFFER_LIMIT }}
17+
collection_jitter = {{ default "60s" .AGENT_COLLECTION_JITTER | quote }}
18+
flush_interval = {{ default "60s" .AGENT_FLUSH_INTERVAL | quote }}
19+
flush_jitter = {{ default "60s" .AGENT_FLUSH_JITTER | quote }}
1920
debug = {{ default false .AGENT_DEBUG }}
2021
quiet = {{ default false .AGENT_QUIET }}
2122
flush_buffer_when_full = {{ default true .AGENT_FLUSH_BUFFER }}

0 commit comments

Comments
 (0)