Demo setup of Grafana + Clickhouse + Vector which can display logs from Docker containers
dashboards | ||
files | ||
compose.yml | ||
Makefile | ||
README.md |
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:
make migrate
(useclickhouse-client
inside container and execute migration SQL directly if migrator doesn't work).- Navigate to
http://grafana.test
orhttp://localhost:3000
(if you did not configure Traefik locally), useadmin:admin
as credentials. - Import
dashboards/Logs + Structured via Query.json
dashboard. - Run any Docker project with structured JSON logs.
- Done.