update config sample, marshal tags from toml

This commit is contained in:
JP
2015-08-06 21:03:27 -05:00
parent 2601a09a83
commit 48c10f9454
4 changed files with 16 additions and 7 deletions

View File

@@ -22,8 +22,11 @@
# NOTE: The configuration has a few required parameters. They are marked
# with 'required'. Be sure to edit those to make this configuration work.
# OUTPUTS
[outputs]
# Configuration for influxdb server to send metrics to
[influxdb]
[outputs.influxdb]
# The full HTTP endpoint URL for your InfluxDB instance
url = "http://localhost:8086" # required.
@@ -35,11 +38,9 @@ database = "telegraf" # required.
# Set the user agent for the POSTs (can be useful for log differentiation)
# user_agent = "telegraf"
# tags = { "dc": "us-east-1" }
# Tags can also be specified via a normal map, but only one form at a time:
# [influxdb.tags]
# [tags]
# dc = "us-east-1"
# Configuration for telegraf itself