This commit is contained in:
Kar k1
2025-09-18 21:52:32 +05:30
parent 1942a34b6d
commit 770c164d0b
9 changed files with 2077 additions and 4807 deletions

View File

@@ -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