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,6 @@
[[inputs.nats_consumer]]
servers = ["nats://localhost:4222"]
subjects = ["telegraf"]
jetstream_subjects = ["js_telegraf"]
queue_group = "telegraf_consumers"
data_format = "influx"

View file

@ -0,0 +1,19 @@
# Read metrics from NATS subject(s)
[[inputs.nats_consumer]]
## urls of NATS servers
servers = ["nats://localhost:4222"]
## subject(s) to consume
subjects = ["telegraf"]
## jetstream subjects
jetstream_subjects = ["js_telegraf"]
## name a queue group
queue_group = "telegraf_consumers"
## Input data format
data_format = "influx"
## Number of metrics to buffer
metric_buffer = 1024

View file

@ -0,0 +1,14 @@
[[inputs.nats_consumer]]
servers = ["nats://localhost:4222"]
subjects = ["telegraf"]
jetstream_subjects = ["js_telegraf"]
queue_group = "telegraf_consumers"
data_format = "xpath_json"
xpath_native_types = true
[[inputs.nats_consumer.xpath]]
metric_name = "/name"
timestamp = "/timestamp"
timestamp_format = "unix_ms"
field_selection = "/fields/*"
tag_selection = "/tags/*"

View file

@ -0,0 +1,27 @@
# Read metrics from NATS subject(s)
[[inputs.nats_consumer]]
## urls of NATS servers
servers = ["nats://localhost:4222"]
## subject(s) to consume
subjects = ["telegraf"]
## jetstream subjects
jetstream_subjects = ["js_telegraf"]
## name a queue group
queue_group = "telegraf_consumers"
## Number of metrics to buffer
metric_buffer = 1024
data_format = "xpath_json"
xpath_native_types = true
# Configuration matching the first (ENERGY) message
[[inputs.nats_consumer.xpath]]
metric_name = "/name"
timestamp = "/timestamp"
timestamp_format = "unix_ms"
field_selection = "/fields/*"
tag_selection = "/tags/*"