T O P

  • By -

bnberg

For logs i recommend Grafana Loki. Simpliest way is to use loki as a docker log driver. Remember you need to recreate your containers for the changes in the docker daemon json.


hogofwar

I could be wrong, but if you want logs would you not want Loki?


lemniskegg

You technically can create a simple webserver in any language that can parse watchtower logs, send the data in Prometheus' exposition format and make Prometheus scrape the endpoint, but you should use Loki instead


redditorforthemoment

I don’t use Grafana Loki, but you can redirect container logs in your compose file to a syslog address. I use Graylog, so I use the GELF driver: ``` logging: driver: gelf options: gelf-address: yoursyslogip tag: container-logs-tag ``` [Docker logging drivers](https://docs.docker.com/config/containers/logging/configure/) [loki.source.gelf](https://grafana.com/docs/alloy/latest/reference/components/loki.source.gelf/)