using environment variables
This commit is contained in:
@@ -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}'
|
||||
|
||||
Reference in New Issue
Block a user