Skip to content

metrico/opentelemetry-trace-sampling-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grafana + qryn = correlated logs, traces, metrics

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:

image

Running

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

Usage

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.

image

Let’s look at some traces by expanding some of the loglines:

image

Use the Tempo derived field link to access the traces:

image


Disclaimer

  • 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.