https://github.com/pellared/gopherconpl-opentelemetry-go
https://github.com/pellared/gopherconpl-opentelemetry-go
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pellared/gopherconpl-opentelemetry-go
- Owner: pellared
- License: unlicense
- Created: 2021-09-10T07:51:12.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-03-07T01:20:39.000Z (over 3 years ago)
- Last Synced: 2025-10-31T00:46:01.893Z (8 months ago)
- Language: Go
- Homepage: https://docs.google.com/presentation/d/1ir9eyBLxO4n3zPcOPhxJkZJ9cXJSo7KUhuRAadG7z8Q/edit?usp=sharing
- Size: 86.9 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Observability via OpenTelemtry Go - Quick Start
[Presentation](https://docs.google.com/presentation/d/1ir9eyBLxO4n3zPcOPhxJkZJ9cXJSo7KUhuRAadG7z8Q/edit?usp=sharing)
Run the distributed tracing backend:
```sh
docker run -d --name jaeger -p 16686:16686 -p 14268:14268 jaegertracing/all-in-one:1.26
```
Run the metrics backend:
```sh
docker run -d --name prometheus -p 9090:9090 -v $(pwd)/prometheus.yml:/etc/prometheus/prometheus.yml prom/prometheus:v2.29.2
```
Run the database:
```sh
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:
```sh
cd cmd/todoservice && go install && cd -
todoservice
```
Build and use the CLI app:
```sh
cd cmd/todo && go install && cd -
todo add "important work"
todo list
todo
todo add "very long description that is extremely important"
```
Navigate to to access the Jaeger UI.
Notice the exported metrics at . Navigate to to access the Prometheus's expression browser.