github.com/influxdata/telegraf@v1.30.3/config/testdata/single_plugin_env_vars.toml (about)

     1  # Telegraf Configuration
     2  #
     3  # Telegraf is entirely plugin driven. All metrics are gathered from the
     4  # declared inputs, and sent to the declared outputs.
     5  #
     6  # Plugins must be declared in here to be active.
     7  # To deactivate a plugin, comment out the name and any variables.
     8  #
     9  # Use 'telegraf -config telegraf.conf -test' to see what metrics a config
    10  # file would generate.
    11  #
    12  # Environment variables can be used anywhere in this config file, simply surround
    13  # them with ${}. For strings the variable must be within quotes (ie, "${STR_VAR}"),
    14  # for numbers and booleans they should be plain (ie, ${INT_VAR}, ${BOOL_VAR})
    15  
    16  [[inputs.memcached]]
    17    # this comment line will be ignored by the parser
    18    servers = ["$MY_TEST_SERVER"]
    19    namepass = ["metricname1", "ip_${MY_TEST_SERVER}_name"] # this comment will be ignored as well
    20    namedrop = ["metricname2"]
    21    fieldinclude = ["some", "strings"]
    22    fieldexclude = ["other", "stuff"]
    23    interval = "$TEST_INTERVAL"
    24     ##### this input is provided to test multiline strings
    25    command = """
    26  Raw command which may or may not contain # in it
    27  # is unique""" # Multiline comment black starting with #
    28    [inputs.memcached.tagpass]
    29      goodtag = ["mytag", """tagwith#value""",
    30        # comment in between array items
    31        # should ignore "quotes" in comments
    32        '''TagWithMultilineSyntax''', ## ignore this comment
    33      ] # hastag
    34    [inputs.memcached.tagdrop]
    35      badtag = ["othertag"]