Files
smart-city-digital-twin-mar…/telegraf.conf
Eric FELIXINE 83779cf5d7 fix: telegraf topics, mqtt brokers, docker-compose fixes
- Fix MOSQUITTO_HOST (wrong container name)
- Fix EMQX_PORT (1885 external -> 1883 internal)
- Fix telegraf MQTT topics (city/sensors/#)
- Fix BunkerM dynsec JSON
- Add kepler.yml Traefik config
- Update monitoring script
2026-06-07 20:18:41 -04:00

50 lines
977 B
Plaintext

[global_tags]
[agent]
interval = "10s"
round_interval = true
metric_batch_size = 1000
metric_buffer_limit = 10000
collection_jitter = "0s"
flush_interval = "10s"
flush_jitter = "0s"
# Input: MQTT Consumer - EMQX
[[inputs.mqtt_consumer]]
servers = ["tcp://emqx_emqx_1:1883"]
topics = [
"city/sensors/#",
"json/#"
]
data_format = "json"
qos = 0
# Input: MQTT Consumer - Mosquitto
[[inputs.mqtt_consumer]]
servers = ["tcp://smart-city-mosquitto-1:1883"]
topics = [
"city/sensors/#",
"json/#"
]
data_format = "json"
qos = 0
# Input: MQTT Consumer - BunkerM
[[inputs.mqtt_consumer]]
servers = ["tcp://bunkerm-bunkerm-1:1900"]
topics = [
"city/sensors/#",
"json/#"
]
data_format = "json"
qos = 0
username = "bunker"
password = "bunker"
# Output: InfluxDB v2
[[outputs.influxdb_v2]]
urls = ["http://smart-city-influxdb:8086"]
token = "my-super-token"
organization = "digitribe"
bucket = "smartcity"