Use ip address for default InfluxDB ip in config

Helps with initial setup if localhost cannot be resolved due to the pure
go resolver.
This commit is contained in:
Daniel Nelson
2017-09-05 12:55:21 -07:00
parent 98e784faf3
commit 9796d3c99d
6 changed files with 41 additions and 21 deletions

View File

@@ -63,8 +63,8 @@
# The full HTTP or UDP endpoint URL for your InfluxDB instance.
# Multiple urls can be specified but it is assumed that they are part of the same
# cluster, this means that only ONE of the urls will be written to each interval.
# urls = ["udp://localhost:8089"] # UDP endpoint example
urls = ["http://localhost:8086"] # required
# urls = ["udp://127.0.0.1:8089"] # UDP endpoint example
urls = ["http://127.0.0.1:8086"] # required
# The target database for metrics (telegraf will create it if not exists)
database = "telegraf" # required
# Precision of writes, valid values are "ns", "us" (or "µs"), "ms", "s", "m", "h".