docker run promtail

Jmnote (토론 | 기여)님의 2025년 10월 30일 (목) 16:19 판 (→‎개요)

1 개요

docker run promtail
$ docker run --name promtail -d grafana/promtail
cde53dea43df815b5a91d56ee9d38963684d31ac7b9d67e9f6422e96ab1dd8ee
$ docker logs promtail
level=info ts=2025-10-30T07:17:17.245382916Z caller=promtail.go:135 msg="Reloading configuration file" sha3sum=4ffea68b89910ce6b5343ea75a97c2c796e271a401366c3919dd3fb2092d7d86
level=info ts=2025-10-30T07:17:17.251125798Z caller=server.go:368 msg="server listening on addresses" http=[::]:9080 grpc=[::]:43621
level=info ts=2025-10-30T07:17:17.251283752Z caller=main.go:173 msg="Starting Promtail" version="(version=3.5.7, branch=release-3.5.x, revision=d5b382b9)"
...
level=info ts=2025-10-30T07:17:22.247592198Z caller=tailer.go:147 component=tailer msg="tail routine: started" path=/var/log/lastlog
ts=2025-10-30T07:17:22.247669996Z caller=log.go:168 level=info msg="Seeked /var/log/lastlog - &{Offset:0 Whence:0}"
level=warn ts=2025-10-30T07:17:23.3597102Z caller=client.go:419 component=client host=loki:3100 msg="error sending batch, will retry" status=-1 tenant= error="Post \"http://loki:3100/loki/api/v1/push\": dial tcp: lookup loki on 169.254.169.254:53: no such host"
level=warn ts=2025-10-30T07:17:24.034641306Z caller=client.go:419 component=client host=loki:3100 msg="error sending batch, will retry" status=-1 tenant= error="Post \"http://loki:3100/loki/api/v1/push\": dial tcp: lookup loki on 169.254.169.254:53: no such host"
...

2 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}