1
0
Fork 0

Adding upstream version 1.34.4.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-05-24 07:26:29 +02:00
parent e393c3af3f
commit 4978089aab
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
4963 changed files with 677545 additions and 0 deletions

View file

@ -0,0 +1,4 @@
[[inputs.mqtt_consumer]]
data_format = "influx"
servers = ["tcp://127.0.0.1:1883"]
topics = ["telegraf/host01/cpu", "telegraf/+/mem", "sensors/#"]

View file

@ -0,0 +1,10 @@
# Read metrics from MQTT topic(s)
[[inputs.mqtt_consumer]]
servers = ["tcp://127.0.0.1:1883"]
topics = [
"telegraf/host01/cpu",
"telegraf/+/mem",
"sensors/#",
]
metric_buffer = 1024
data_format = "influx"

View file

@ -0,0 +1,12 @@
[[inputs.mqtt_consumer]]
data_format = "xpath_json"
servers = ["tcp://127.0.0.1:1883"]
topics = ["telegraf/host01/cpu", "telegraf/+/mem", "sensors/#"]
xpath_native_types = true
[[inputs.mqtt_consumer.xpath]]
field_selection = "/fields/*"
metric_name = "/name"
tag_selection = "/tags/*"
timestamp = "/timestamp"
timestamp_format = "unix_ms"

View file

@ -0,0 +1,20 @@
# Read metrics from MQTT topic(s)
[[inputs.mqtt_consumer]]
servers = ["tcp://127.0.0.1:1883"]
topics = [
"telegraf/host01/cpu",
"telegraf/+/mem",
"sensors/#",
]
metric_buffer = 1024
data_format = "xpath_json"
xpath_native_types = true
# Configuration matching the first (ENERGY) message
[[inputs.mqtt_consumer.xpath]]
metric_name = "/name"
timestamp = "/timestamp"
timestamp_format = "unix_ms"
field_selection = "/fields/*"
tag_selection = "/tags/*"