gopherconpl-opentelemetry-go

module
v0.0.0-...-5be53fc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2021 License: Unlicense

README

Observability via OpenTelemtry Go - Quick Start

Presentation

Run the distributed tracing backend:

docker run -d --name jaeger -p 16686:16686 -p 14268:14268 jaegertracing/all-in-one:1.26

Run the metrics backend:

docker run -d --name prometheus -p 9090:9090 -v $(pwd)/prometheus.yml:/etc/prometheus/prometheus.yml prom/prometheus:v2.29.2

Run the database:

docker run -d --name todo-db -p 5432:5432 -e POSTGRES_PASSWORD=pswd -v $(pwd)/init-db.sql:/docker-entrypoint-initdb.d/init-db.sql postgres:13-alpine

Build and run the service:

cd cmd/todoservice && go install && cd -
todoservice

Build and use the CLI app:

cd cmd/todo && go install && cd -
todo add "important work"
todo list
todo
todo add "very long description that is extremely important"

Navigate to http://localhost:16686 to access the Jaeger UI.

Notice the exported metrics at http://localhost:2222/. Navigate to http://localhost:9090 to access the Prometheus's expression browser.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL