From 6eb8b7943b5e14d63bfed8f4813cd340d4496d8f Mon Sep 17 00:00:00 2001 From: root Date: Mon, 20 Nov 2023 21:33:00 -0600 Subject: [PATCH] added defaults --- promtail/promtail-config.yml | 2 +- telegraf/telegraf.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/promtail/promtail-config.yml b/promtail/promtail-config.yml index 26a1fbc..e0e59ed 100644 --- a/promtail/promtail-config.yml +++ b/promtail/promtail-config.yml @@ -6,7 +6,7 @@ positions: filename: /tmp/positions.yaml clients: - - url: http://${LOKI_HOST}:3100/loki/api/v1/push + - url: http://${LOKI_HOST:-loki}:3100/loki/api/v1/push scrape_configs: - job_name: flog_scrape diff --git a/telegraf/telegraf.conf b/telegraf/telegraf.conf index 074c1ac..31bf920 100644 --- a/telegraf/telegraf.conf +++ b/telegraf/telegraf.conf @@ -80,7 +80,7 @@ ## Multiple URLs can be specified for a single cluster, only ONE of the ## urls will be written to each interval. ## ex: urls = ["https://us-west-2-1.aws.cloud2.influxdata.com"] - urls = ["http://${INFLUX_HOST}:8086"] + urls = ["http://${INFLUX_HOST:-influxdb}:8086"] ## Token for authentication. token = "$INFLUX_WRITE_TOKEN"