https://github.com/jtyr/otel-demo
Demo of how to use Open Telemetry instrumentation for traces and metrics.
https://github.com/jtyr/otel-demo
argocd golang grafana loki otel prometheus promtail tempo tracing
Last synced: 5 months ago
JSON representation
Demo of how to use Open Telemetry instrumentation for traces and metrics.
- Host: GitHub
- URL: https://github.com/jtyr/otel-demo
- Owner: jtyr
- License: mit
- Created: 2021-03-06T00:13:57.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-11T11:14:27.000Z (over 4 years ago)
- Last Synced: 2025-05-07T13:04:31.820Z (5 months ago)
- Topics: argocd, golang, grafana, loki, otel, prometheus, promtail, tempo, tracing
- Language: Go
- Homepage:
- Size: 82 KB
- Stars: 13
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/jtyr/otel-demo/actions/workflows/on-push-master-publish-chart.yml)
[](https://hub.docker.com/repository/docker/jtyr/otel-demo)OTEL Demo
=========This is a demo of how to use [Open Telemetry](https://opentelemetry.io/) (OTEL)
instrumentation for traces and metrics.Table of contents
------------------ [Usage](#usage)
- [Docker Compose](#docker-compose)
- [Kubernetes](#kubernetes)
- [Manual installation](#manual-installation)
- [Automated installation](#automated-installation)
- [Testing of the app](#testing-of-the-app)
- [License](#license)
- [Author](#author)Usage
-----### Docker Compose
Run Grafana Tempo, Grafana Tempo Web UI and the App frontend/backed via Docker
Compose:```shell
docker-compose up
```Query the `main` endpoint:
```shell
curl http://localhost:8080
```Query the `metrics` endpoint:
```shell
curl http://localhost:8080/metrics
curl http://localhost:8888/metrics
```### Kubernetes
Install local Kubernetes cluster using [K3D](https://k3d.io):
```shell
export KUBECONFIG=~/.kube/kind_test1
k3d cluster create test1 -p '80:80@loadbalancer' -p '443:443@loadbalancer'
```#### Manual installation
Add all required [Helm](https://helm.sh) repos:
```shell
helm repo add grafana https://grafana.github.io/helm-charts
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo add otel-demo https://jtyr.github.io/otel-demo
helm repo update
```Install [Kube Prometheus Stack](https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack):
```shell
cat <