w
This commit is contained in:
@@ -7,14 +7,20 @@
|
||||
flush_interval = "10s"
|
||||
flush_jitter = "0s"
|
||||
precision = ""
|
||||
hostname = ""
|
||||
hostname = "h1"
|
||||
omit_hostname = false
|
||||
|
||||
# Add global tags for better identification
|
||||
[global_tags]
|
||||
# This will be overridden by environment variables on each host
|
||||
location = "${LOCATION:-unknown}" # e.g., "office", "datacenter-1"
|
||||
environment = "${ENVIRONMENT:-production}" # e.g., "production", "staging"
|
||||
|
||||
[[outputs.influxdb_v2]]
|
||||
urls = ["http://influxdb:8086"]
|
||||
token = "my-secret-token"
|
||||
organization = "my-org"
|
||||
bucket = "telegraf-bucket"
|
||||
urls = ["${INFLUX_URL:-http://influxdb:8086}"]
|
||||
token = "${INFLUX_TOKEN:-my-secret-token}"
|
||||
organization = "${INFLUX_ORG:-my-org}"
|
||||
bucket = "${INFLUX_BUCKET:-telegraf-bucket}"
|
||||
|
||||
[[inputs.cpu]]
|
||||
percpu = true
|
||||
|
||||
Reference in New Issue
Block a user