Documentation

telegraf secrets list

The telegraf secrets list command lists known secrets and secret stores.

This command requires your configuration file that contains the secret store definitions you want to access. If the --config or --config-directory flags are not included in the command, Telegraf checks the default configuration file location.

If you haven’t configured a secret store, use telegraf plugins secretstores to list available secret store plugins. View secret store plugin configuration documentation in the Telegraf GitHub repository.

Usage

telegraf [global-flags] secrets list [flags] [SECRET_STORE_ID[ ...[SECRET_STORE_ID]]]
  • Copy
  • Fill window

Arguments

ArgumentDescription
SECRET_STORE_IDID of the secret store to list secrets from. You can include multiple, space-delimited IDs. If no ID(s) are provided, the command lists secrets from all secret stores.

Flags

FlagDescription
--reveal-secretPrint secret values
-h--helpShow command help

Examples

List secrets and secret stores using the default configuration location

The following example assumes the Telegraf configuration file that contains the secret store definition is at the default location.

telegraf secrets list
  • Copy
  • Fill window

List secrets and secret stores using a non-default configuration location

telegraf --config 
CUSTOM_CONFIG_PATH
secrets list
  • Copy
  • Fill window
  • Replace CUSTOM_CONFIG_PATH with the non-default filepath to your Telegraf configuration file containing your secret store definitions.

List secrets from a specific secret store

telegraf secrets list 
SECRET_STORE_ID
  • Copy
  • Fill window
  • Replace SECRET_STORE_ID with the ID of the secret store to retrieve the secret from.

Show secret values when listing secrets and secret stores

To print secret values with listing secrets and secret stores, include the --reveal-secret flag:

telegraf secrets list --reveal-secret
  • Copy
  • Fill window

Was this page helpful?

Thank you for your feedback!


The future of Flux

Flux is going into maintenance mode. You can continue using it as you currently are without any changes to your code.

Read more

InfluxDB 3 Core and Enterprise are now in Beta

InfluxDB 3 Core and Enterprise are now available for beta testing, available under MIT or Apache 2 license.

InfluxDB 3 Core is a high-speed, recent-data engine that collects and processes data in real-time, while persisting it to local disk or object storage. InfluxDB 3 Enterprise is a commercial product that builds on Core’s foundation, adding high availability, read replicas, enhanced security, and data compaction for faster queries. A free tier of InfluxDB 3 Enterprise will also be available for at-home, non-commercial use for hobbyists to get the full historical time series database set of capabilities.

For more information, check out: