Skip to content

Jaeger + Auth for UI, Open Telemetry Collector Gateway (TLS + Auth) + Sidecar

Notifications You must be signed in to change notification settings

enikey87/otel-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

otel-playground

Simple OTEL setup example with auth for Jaeger UI and Open Telemetry Collector.

Services:

  • Jaeger in memory all in one. No ports exposed.
  • Jaeger-UI behind nginx with basic auth. Exposes 16686 port.
  • Open Telemetry Collector Gateway. Requires TLS + Auth for incoming telemetry. Exports incoming telemetry to Jaeger.
  • Open Telemetry Collector Sidecar. Exports incoming telemetry to Collector Gateway. Don't require TLS or Auth for incoming data because it's running in trusted closed network like localhost.

Getting started

docker-compose up

Now you can send telemetry to sidecar running on localhost using OTLP protocol from your app or use tracegen utility:

sudo apt install golang-go
go install github.com/open-telemetry/opentelemetry-collector-contrib/tracegen@latest
# Generate traces for 5 seconds
~/go/bin/tracegen -otlp-insecure -duration 5s
# Or, to generate a specific number of traces
~/go/bin/tracegen tracegen -otlp-insecure -traces 1

Credentials

Self-signed keys for TLS (insecure)

TLS is required by client side of OTEL basic auth extension. So we have to turn it on. In local environment we could use following insecure exteremely dangerous (you've got the idea) snippet or do all your black magic with certs by yourself.

mkdir ssl
cd ssl
# enter password, I recommend: adidas
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365
mv key.pem key.pem.backup
# extract unencrypted key
openssl rsa -passin pass:adidas -in key.pem.backup -out key.pem
# don't blame me, it's just a trash test cert
chmod o+r key.pem

Papers

About

Jaeger + Auth for UI, Open Telemetry Collector Gateway (TLS + Auth) + Sidecar

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages