Monitoring Stack: add/fix telegraf service config

This commit is contained in:
Aroy-Art 2025-07-09 17:55:42 +02:00
parent cd60544845
commit 16911a2b02
Signed by: Aroy
GPG key ID: DB9689E9391DD156
2 changed files with 17 additions and 1 deletions

View file

@ -7,6 +7,10 @@ TZ=Europe/Stockholm
# Base Directory
BASE_DIR=.
# DNS server
DNS_SERVER1=9.9.9.10
DNS_SERVER2=1.1.1.1
##############################################
# Prometheus Nextcloud Exporter
##############################################

View file

@ -189,6 +189,18 @@ services:
build:
context: .
dockerfile: Dockerfile.telegraf
hostname: telegraf-ipmi
dns:
- ${DNS_SERVER1:-9.9.9.10}
- ${DNS_SERVER2:-1.1.1.1}
volumes:
- ${}
- ${BASE_DIR:-.}Telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro
depends_on:
influxdb2
restart: unless-stopped
logging:
driver: loki
options:
loki-url: "http://localhost:3100/loki/api/v1/push"
max-size: "200m"