36 lines
877 B
Plaintext
36 lines
877 B
Plaintext
[agent]
|
|
interval = "10s"
|
|
round_interval = true
|
|
metric_batch_size = 1000
|
|
metric_buffer_limit = 10000
|
|
collection_jitter = "0s"
|
|
flush_interval = "10s"
|
|
flush_jitter = "0s"
|
|
precision = ""
|
|
hostname = "h2"
|
|
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 = ["${INFLUX_URL:-http://localhost:8086}"]
|
|
token = "${INFLUX_TOKEN:-my-secret-token}"
|
|
organization = "${INFLUX_ORG:-my-org}"
|
|
bucket = "${INFLUX_BUCKET:-telegraf-bucket}"
|
|
|
|
[[inputs.cpu]]
|
|
|
|
[[inputs.mem]]
|
|
[[inputs.disk]]
|
|
[[inputs.system]]
|
|
[[inputs.net]]
|
|
[[inputs.processes]]
|
|
[[inputs.swap]]
|
|
|
|
[[inputs.diskio]]
|
|
[[inputs.kernel]]
|