enabled telegraf again and set failsave configuration
This commit is contained in:
11
roles/server/files/telegraf.d/output_file.conf
Normal file
11
roles/server/files/telegraf.d/output_file.conf
Normal file
@@ -0,0 +1,11 @@
|
||||
# --- FALLBACK: Metriken in Datei schreiben (optional, aber SEHR hilfreich) ---
|
||||
# Wird aktiviert, wenn du sicherstellen willst, dass keine Daten verloren gehen,
|
||||
# selbst wenn die InfluxDB tagelang offline ist.
|
||||
#
|
||||
# WICHTIG: Der File-Output belegt praktisch KEINEN RAM, da er direkt streamt.
|
||||
|
||||
[[outputs.file]]
|
||||
files = ["stdout", "/var/log/telegraf/metrics_backup.out"]
|
||||
rotation_interval = "1h"
|
||||
rotation_max_size = "100MB"
|
||||
rotation_max_archives = 5
|
||||
Reference in New Issue
Block a user