-
-
Save evasilev/5606e9a90530bfc4652b10dcfc6887bb to your computer and use it in GitHub Desktop.
grafana loki docker-compose file and vector settings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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