Monitoring Stack: add/fix telegraf service config
This commit is contained in:
parent
cd60544845
commit
16911a2b02
2 changed files with 17 additions and 1 deletions
|
@ -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
|
||||
##############################################
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue