Skip to content

Commit

Permalink
proimtail always add external labels
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-oleynik committed Aug 6, 2024
1 parent 90de391 commit 5a43fa9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions promtail/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ clients:
basic_auth:
username: ${LOKI_PUSH_USER}
password: ${LOKI_PUSH_PASSWORD}
external_labels:
instance: ${INSTANCE_NAME}
scrape_configs:
- job_name: docker
docker_sd_configs:
Expand All @@ -16,7 +18,3 @@ scrape_configs:
- source_labels: ['__meta_docker_container_label_gather_logs']
regex: 'true'
action: 'keep'
- source_labels: ['__meta_docker_container_label_gather_logs']
regex: '.*'
target_label: 'instance'
replacement: ${INSTANCE_NAME}

0 comments on commit 5a43fa9

Please sign in to comment.