Followup to issue #77, create configured database name from toml file
This commit is contained in:
4
testdata/influx.toml
vendored
4
testdata/influx.toml
vendored
@@ -10,8 +10,8 @@ username = "root"
|
||||
password = "root"
|
||||
database = "telegraf"
|
||||
|
||||
[tags.influxdb]
|
||||
tags = { "dc" = "us-phx-1" }
|
||||
[tags]
|
||||
dc = "us-phx-1" }
|
||||
|
||||
[redis]
|
||||
address = ":6379"
|
||||
|
||||
10
testdata/telegraf-agent.toml
vendored
10
testdata/telegraf-agent.toml
vendored
@@ -23,7 +23,8 @@
|
||||
# with 'required'. Be sure to edit those to make this configuration work.
|
||||
|
||||
# Configuration for influxdb server to send metrics to
|
||||
[influxdb]
|
||||
[outputs]
|
||||
[outputs.influxdb]
|
||||
# The full HTTP endpoint URL for your InfluxDB instance
|
||||
url = "http://localhost:8086" # required.
|
||||
|
||||
@@ -40,11 +41,10 @@ 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
|
||||
@@ -204,11 +204,11 @@ urls = ["localhost/status"]
|
||||
# postgres://[pqgotest[:password]]@localhost?sslmode=[disable|verify-ca|verify-full]
|
||||
# or a simple string:
|
||||
# host=localhost user=pqotest password=... sslmode=...
|
||||
#
|
||||
#
|
||||
# All connection parameters are optional. By default, the host is localhost
|
||||
# and the user is the currently running user. For localhost, we default
|
||||
# to sslmode=disable as well.
|
||||
#
|
||||
#
|
||||
|
||||
address = "sslmode=disable"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user