This repository hosts a ClickHouse centric alternative for the Grafana blog post on tail sampling functionality
💡 qryn APIs are transparently compatible with Grafana Loki and Tempo APIs - no plugins!
📦 The repository features a Docker Compose file that includes:
- Grafana (visualizes data)
- Grafana Agent (processes trace data)
- qryn (inserts and queries logs, metrics, telemetry)
- ClickHouse (data backend)
- Demo App (generate Zipkin traces and LogQL logs)
Ensure you have both Docker and Docker Compose installed, and then in a terminal simply run:
docker-compose up -d
This will stand up all the required components
- Access qryn LogQL and Tempo APIs through Grafana at http://localhost:3000/
- Access qryn directly at http://localhost:3100/
Follow the Grafana blog post
Two data sources have been pre-provisioned: Tempo and Loki. Loki contains log output from the demo app — including trace IDs — and Tempo is storing the traces. At the start, all of the traces being emitted from the demo app are being stored. We can quickly verify that by going to the Explore page in Grafana and looking at all of the logs.
Let’s look at some traces by expanding some of the loglines:
Use the Tempo
derived field link to access the traces:
- All rights belong to their respective owners
- Grafana®, Loki™ and Tempo® are a Trademark of Raintank, Grafana Labs.
- ClickHouse® is a Trademark of ClickHouse Inc.