Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
grafana loki docker-compose file and vector settings
version: "3"
networks:
loki:
services:
loki:
image: grafana/loki:2.4.0
volumes:
- ./loki:/etc/loki
ports:
- "3100:3100"
command: -config.file=/etc/loki/local-config.yaml
networks:
- loki
grafana:
image: grafana/grafana:latest
user: "1000"
volumes:
- ./grafana:/var/lib/grafana
ports:
- "3000:3000"
networks:
- loki
[sources.source_syslog]
type = "syslog"
address = "0.0.0.0:1514"
max_length = 102_400
mode = "udp"
path = "/tmp/syslog_udp"
[sinks.sink_loki]
type = "loki"
inputs = [ "source_syslog" ]
endpoint = "http://localhost:3100"
labels.datasource = "source_syslog"
out_of_order_action = "rewrite_timestamp"
encoding.codec = "json"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment