Skip to content

joe-elliott/tempo-otel-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tempo-otel-example

This example shows a mixture of OpenTelemetry and Prometheus instrumentation in Go.

It includes trace discovery through Logs and Exemplars.

Steps

  1. Install Loki Docker Driver

docker plugin install grafana/loki-docker-driver:latest --alias loki --grant-all-permissions

  1. Build the application.

./build.sh

  1. Start everything up.

docker-compose up -d

  1. Exercise the application.

curl http://localhost:8000/

  1. (Optional) See OpenMetrics Exemplars.

curl -H 'Accept: application/openmetrics-text' http://localhost:8000/metrics | less

  1. Discover Traces

From Exemplars:

Exemplars

From Logs:

  • Choose the Loki datasource and execute {container_name="tempootelexample_tracing-example_1"} | logfmt | latency > 1s

Loki Derived Fields

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors