Telegraf Insufficient lockable memory warning

Hi!

I am getting a warning message regarding lockable memory.

2024-09-20T15:45:58Z I! Starting Telegraf 1.32.0 brought to you by InfluxData the makers of InfluxDB
2024-09-20T15:45:58Z I! Available plugins: 235 inputs, 9 aggregators, 32 processors, 26 parsers, 62 outputs, 6 secret-stores
2024-09-20T15:45:58Z I! Loaded inputs: snmp (2970x)
2024-09-20T15:45:58Z I! Loaded aggregators:
2024-09-20T15:45:58Z I! Loaded processors:
2024-09-20T15:45:58Z I! Loaded secretstores:
2024-09-20T15:45:58Z I! Loaded outputs: discard
2024-09-20T15:45:58Z I! Tags enabled: host=ARBBCWP_GDE_DSS01
2024-09-20T15:45:58Z I! Found 5940 secrets...
2024-09-20T15:45:58Z W! Insufficient lockable memory 64kb when 71280kb is required. Please increase the limit for Telegraf in your Operating System!

I understand that this message is related to the secret stores. I am no using secret stores yet, and my “secrets” are in each config file.

Is that message still relevant?
Should I try to get more memory even not using secret stores?

Regards!

Yes it is. The values in the config are also stored in an encrypted locked memory section. You can circumvent this by using the --unprotected flag of Telegraf. However, this will be less safe as secrets are the stored unencrypted in swappable memory…

1 Like