Skip to content

Commit f7918d6

Browse files
authored
Update 2021-11-20-grafana-loki.md (#98)
Spacing on YAML is critical and the inconsistent spacing around the # in the promtail-config.yml can be confusing to some, now its just remove the # and spacing is good.
1 parent fa01e20 commit f7918d6

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

_posts/2021-11-20-grafana-loki.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -146,26 +146,26 @@ scrape_configs:
146146

147147
## docker logs
148148

149-
# - job_name: docker
150-
# pipeline_stages:
151-
# - docker: {}
152-
# static_configs:
153-
# - labels:
154-
# job: docker
155-
# __path__: /var/lib/docker/containers/*/*-json.log
149+
#- job_name: docker
150+
# pipeline_stages:
151+
# - docker: {}
152+
# static_configs:
153+
# - labels:
154+
# job: docker
155+
# __path__: /var/lib/docker/containers/*/*-json.log
156156

157157
# syslog target
158158

159-
# - job_name: syslog
160-
# syslog:
161-
# listen_address: 0.0.0.0:1514 # make sure you also expose this port on the container
162-
# idle_timeout: 60s
163-
# label_structured_data: yes
164-
# labels:
165-
# job: "syslog"
166-
# relabel_configs:
167-
# - source_labels: ['__syslog_message_hostname']
168-
# target_label: 'host'
159+
#- job_name: syslog
160+
# syslog:
161+
# listen_address: 0.0.0.0:1514 # make sure you also expose this port on the container
162+
# idle_timeout: 60s
163+
# label_structured_data: yes
164+
# labels:
165+
# job: "syslog"
166+
# relabel_configs:
167+
# - source_labels: ['__syslog_message_hostname']
168+
# target_label: 'host'
169169
```
170170

171171
## Loki Docker Driver

0 commit comments

Comments
 (0)