Many fixes about variabilisation of the telegraf config for docker
This commit is contained in:
@@ -3,14 +3,14 @@
|
||||
|
||||
# Configuration for telegraf agent
|
||||
[agent]
|
||||
interval = 10s
|
||||
interval = "10s"
|
||||
round_interval = true
|
||||
metric_batch_size = 1000
|
||||
metric_buffer_limit = 10000
|
||||
collection_jitter = 0s
|
||||
flush_interval = 10s
|
||||
precision = 0s
|
||||
hostname =
|
||||
collection_jitter = "0s"
|
||||
flush_interval = "10s"
|
||||
precision = "0s"
|
||||
hostname = ""
|
||||
omit_hostname = false
|
||||
|
||||
###############################################################################
|
||||
@@ -20,15 +20,15 @@
|
||||
|
||||
# Configuration for sending metrics to InfluxDB
|
||||
[[outputs.influxdb]]
|
||||
urls = [$INFLUXDB_URL]
|
||||
database = $INFLUXDB_DATABASE
|
||||
database_tag =
|
||||
skip_database_creation = $INFLUXDB_SKIP_DATABASE_CREATION
|
||||
retention_policy =
|
||||
write_consistency = any
|
||||
timeout = 30s
|
||||
username = $INFLUXDB_USERNAME
|
||||
password = $INFLUXDB_PASSWORD
|
||||
urls = ["${INFLUXDB_URL}"]
|
||||
database = "${INFLUXDB_DATABASE}"
|
||||
database_tag = ""
|
||||
skip_database_creation = $INFLUXDB_SKIP_DATABASE_CREATION
|
||||
retention_policy = ""
|
||||
write_consistency = "any"
|
||||
timeout = "30s"
|
||||
username = "${INFLUXDB_USERNAME}"
|
||||
password = "${INFLUXDB_PASSWORD}"
|
||||
|
||||
###############################################################################
|
||||
# INPUT PLUGINS #
|
||||
@@ -41,7 +41,7 @@ password = $INFLUXDB_PASSWORD
|
||||
# Read metrics from one or more commands that can output to stdout
|
||||
[[inputs.exec]]
|
||||
commands = [
|
||||
python3 /usr/local/py/freebox-monit.py -$ARGS
|
||||
"python3 /usr/local/py/freebox-monit.py -$ARGS"
|
||||
]
|
||||
timeout = 5s
|
||||
data_format = influx
|
||||
timeout = "5s"
|
||||
data_format = "influx"
|
||||
|
||||
Reference in New Issue
Block a user