36 lines
1.4 KiB
TOML
36 lines
1.4 KiB
TOML
|
# Telegraf Configuration
|
||
|
#
|
||
|
# Telegraf is entirely plugin driven. All metrics are gathered from the
|
||
|
# declared inputs, and sent to the declared outputs.
|
||
|
#
|
||
|
# Plugins must be declared in here to be active.
|
||
|
# To deactivate a plugin, comment out the name and any variables.
|
||
|
#
|
||
|
# Use 'telegraf -config telegraf.conf -test' to see what metrics a config
|
||
|
# file would generate.
|
||
|
#
|
||
|
# Environment variables can be used anywhere in this config file, simply surround
|
||
|
# them with ${}. For strings the variable must be within quotes (ie, "${STR_VAR}"),
|
||
|
# for numbers and booleans they should be plain (ie, ${INT_VAR}, ${BOOL_VAR})
|
||
|
|
||
|
[[inputs.memcached]]
|
||
|
# this comment line will be ignored by the parser
|
||
|
servers = ["$MY_TEST_SERVER"]
|
||
|
namepass = ["metricname1", "ip_${MY_TEST_SERVER}_name"] # this comment will be ignored as well
|
||
|
namedrop = ["metricname2"]
|
||
|
fieldinclude = ["some", "strings"]
|
||
|
fieldexclude = ["other", "stuff"]
|
||
|
interval = "$TEST_INTERVAL"
|
||
|
##### this input is provided to test multiline strings
|
||
|
command = """
|
||
|
Raw command which may or may not contain # in it
|
||
|
# is unique""" # Multiline comment black starting with #
|
||
|
[inputs.memcached.tagpass]
|
||
|
goodtag = ["mytag", """tagwith#value""",
|
||
|
# comment in between array items
|
||
|
# should ignore "quotes" in comments
|
||
|
'''TagWithMultilineSyntax''', ## ignore this comment
|
||
|
] # hastag
|
||
|
[inputs.memcached.tagdrop]
|
||
|
badtag = ["othertag"]
|