docs(config): Add notes for secret-store pitfalls (#13707)

This commit is contained in:
Sven Rebhan 2023-08-01 15:25:50 +02:00 committed by GitHub
parent d8a13ff5d3
commit bc8070f241
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -205,6 +205,17 @@ This example illustrates the use of secret-store(s) in plugins
bucket = "replace_with_your_bucket_name"
```
### Notes
When using plugins supporting secrets, Telegraf locks the memory pages
containing the secrets. Therefore, the locked memory limit has to be set to a
suitable value. Telegraf will check the limit and the number of used secrets at
startup and will warn if your limit is too low. In this case, please increase
the limit via `ulimit -l`.
If you are running Telegraf in an jail you might need to allow locked pages in
that jail by setting `allow.mlock = 1;` in your config.
## Intervals
Intervals are durations of time and can be specified for supporting settings by