Demo setup of Grafana + Clickhouse + Vector which can display logs from Docker containers
Go to file
2024-09-26 12:54:26 +03:00
dashboards Merge branch 'master' of git.neur0tx.site:Neur0toxine/docker-logs-grafana-clickhouse 2024-09-26 12:50:48 +03:00
files Merge branch 'master' of git.neur0tx.site:Neur0toxine/docker-logs-grafana-clickhouse 2024-09-26 12:50:48 +03:00
.env update compose file 2024-09-26 12:54:26 +03:00
compose.yml update compose file 2024-09-26 12:54:26 +03:00
Makefile replace migrator & add local domain 2023-11-15 11:29:29 +03:00
README.md Update README.md 2024-09-26 12:48:22 +03:00

Grafana Clickhouse Docker Log Aggregation

This demo project can aggregate logs from Docker containers and store them in Clickhouse. In the dashboards directory you can find dashboard examples for specific log format. Logs + Structured via Query is recommended because the other one is deprecated now.

Note: dashboards are tuned for structured logging (JSON log records).

How to start

Obviously, you'll need Docker:

  1. make migrate (use clickhouse-client inside container and execute migration SQL directly if migrator doesn't work).
  2. Navigate to http://grafana.test or http://localhost:3000 (if you did not configure Traefik locally), use admin:admin as credentials.
  3. Import dashboards/Logs + Structured via Query.json dashboard.
  4. Run any Docker project with structured JSON logs.
  5. Done.