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,5 @@
inputs.disk
inputs.mem
inputs.swap
inputs.system
outputs.datadog

View file

@ -0,0 +1,65 @@
## Telegraf Configuration for ThinClients
## /etc/telegraf/telegraf.conf
[global_tags]
service_name = "thinclient"
env = "prod"
team = "planetexpress"
## Configuration for telegraf agent
[agent]
## Data input and output settings
interval = "10s"
round_interval = true
metric_batch_size = 1000
metric_buffer_limit = 10000
collection_jitter = "0s"
flush_interval = "10s"
flush_jitter = "5s"
## Logging configuration
debug = false
quiet = false
# emtpy string means log to stderr
logfile = ""
## host configuration
# if emtpty use os.hostname()
hostname = ""
omit_hostname = false
# Configuration for sending metrics to Datadog
[[outputs.datadog]]
## Datadog API key
apikey = "${datadog_secret}"
## Connection timeout.
timeout = "5s"
## Write URL override; useful for debugging.
url = "${datadog_url}"
## Metrics to log
[[inputs.system]]
name_prefix = "dg.systemengineering.thinclient."
# default configuration; getting uptime values.
[[inputs.mem]]
name_prefix = "dg.systemengineering.thinclient."
# no configuration
[[inputs.disk]]
name_prefix = "dg.systemengineering.thinclient."
## By default stats will be gathered for all mount points.
## Set mount_points will restrict the stats to only the specified mount points.
mount_points = ["/"]
[[inputs.swap]]
name_prefix = "dg.systemengineering.thinclient."
## Monitoring SWAP (zswap) usage
## Ignore mount points by filesystem type.
#ignore_fs = ["tmpfs", "devtmpfs", "devfs", "iso9660", "overlay", "aufs", "squashfs"]

View file

@ -0,0 +1,4 @@
inputs.mqtt_consumer
outputs.influxdb_v2
parsers.json_v2
parsers.value

View file

@ -0,0 +1,39 @@
[[inputs.mqtt_consumer]]
name_override = "qr_mqtt_message"
servers = ["tcp://mosquitto:1883"]
topics = [
"<REDACTED>"
]
qos = 2
persistent_session = false
client_id = "telegraf_qr_code"
data_format = "json_v2"
[[inputs.mqtt_consumer.json_v2]]
[[inputs.mqtt_consumer.json_v2.object]]
path = "message.data"
tags = ["data"]
[[inputs.mqtt_consumer]]
name_override = "raw_mqtt_message"
servers = ["tcp://mosquitto:1883"]
# Capture the content as a string since we do not know the format of it...
data_format = "value"
data_type = "string"
# Capture all topics and store the topic as a tag with name "topic"...
topics = ["#"]
topic_tag = "topic"
qos = 2
persistent_session = false
client_id = "telegraf_generic"
[[outputs.influxdb_v2]]
urls = ["http://influxdb:8086"]
token = "${INFLUX_TOKEN}"
organization = "test"
bucket = "test_bucket"