haenno / traefik-docker-compose-grafana-prometheus-loki-promtail-portainer

Example of a traefik proxy with most of its monitoring and logs active, using Grafana to access them.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Full featured traefik proxy with monitoring and logs

Example of a traefik proxy with monitoring and logs active using:

  • node-exporter:v1.6.1
  • grafana/promtail:2.9.0
  • grafana/loki:2.9.0
  • grafana/grafana:10.0.5
  • prom/prometheus:v2.47.0
  • traefik:2.10.4
  • portainer/portainer-ce:2.19.0

Note: This is not a production ready setup. Its missing the whole HTTPS, letsencript and non-root-docker part. It is just a example of how to use traefik with monitoring and logs with all the current versions of the used tools fitting well together (what was kind of a hassle 👼).

Installation and start

  • Clone this repo
  • Copy or rename the file example.env to .env
  • Start the infrastructure and two sample apps
docker-compose -f proxy-docker-compose.yml up -d
docker-compose -f apps-docker-compose.yml up -d

Usage

Credits

I used many parts from a lot of diffent souces including the documentation of most of the projects. I you feel, like i missed to mention you, please let me know.

License: The Unlicense

This is free and unencumbered software released into the public domain. For more information, please refer to https://unlicense.org

Screenshots

Proxy traefik: We see, that the modules for metrics and logs are active and see that we have 10 services running and 7 routers. traefik Dashboard

Here we see all the available routes: traefik routes

Dashboard Grafana: After you passed the basic-auth with admin/admin you can set a new password for the admin user in Grfana. Grafana login

Next head to the dashboards: dashboards

Find HTTP status codes from all the services: http

More on the HTTP status codes: http2

And find the logs of all the running docker services: logs

If you run this on a linux system, you can also see the system metrics: system metrics

About

Example of a traefik proxy with most of its monitoring and logs active, using Grafana to access them.

License:The Unlicense


Languages

Language:Python 62.8%Language:Dockerfile 37.2%