Adding upstream version 1.34.4.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
e393c3af3f
commit
4978089aab
4963 changed files with 677545 additions and 0 deletions
|
@ -0,0 +1,4 @@
|
|||
[[inputs.mqtt_consumer]]
|
||||
data_format = "influx"
|
||||
servers = ["tcp://127.0.0.1:1883"]
|
||||
topics = ["telegraf/host01/cpu", "telegraf/+/mem", "sensors/#"]
|
|
@ -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"
|
|
@ -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"
|
|
@ -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/*"
|
Loading…
Add table
Add a link
Reference in a new issue