using environment variables

This commit is contained in:
root
2023-11-20 21:25:54 -06:00
parent 739fb64a42
commit 3801944fac
4 changed files with 18 additions and 5 deletions

View File

@@ -6,7 +6,7 @@ positions:
filename: /tmp/positions.yaml
clients:
- url: http://loki:3100/loki/api/v1/push
- url: http://${LOKI_HOST}:3100/loki/api/v1/push
scrape_configs:
- job_name: flog_scrape
@@ -19,5 +19,5 @@ scrape_configs:
target_label: 'container'
- source_labels: ['__meta_docker_container_log_stream']
target_label: 'logstream'
# - target_label: 'host'
# replacement: 'docker-lxc'
- target_label: 'host'
replacement: '${HOSTNAME}'