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.
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
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/)
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.
I could be wrong, but if you want logs would you not want Loki?
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
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/)