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 Directory
|
||||||
BASE_DIR=.
|
BASE_DIR=.
|
||||||
|
|
||||||
|
# DNS server
|
||||||
|
DNS_SERVER1=9.9.9.10
|
||||||
|
DNS_SERVER2=1.1.1.1
|
||||||
|
|
||||||
##############################################
|
##############################################
|
||||||
# Prometheus Nextcloud Exporter
|
# Prometheus Nextcloud Exporter
|
||||||
##############################################
|
##############################################
|
||||||
|
|
|
@ -189,6 +189,18 @@ services:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile.telegraf
|
dockerfile: Dockerfile.telegraf
|
||||||
|
hostname: telegraf-ipmi
|
||||||
|
dns:
|
||||||
|
- ${DNS_SERVER1:-9.9.9.10}
|
||||||
|
- ${DNS_SERVER2:-1.1.1.1}
|
||||||
volumes:
|
volumes:
|
||||||
- ${}
|
- ${BASE_DIR:-.}Telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro
|
||||||
|
depends_on:
|
||||||
|
influxdb2
|
||||||
restart: unless-stopped
|
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