Skip to content

lempiji/vibed-trace-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example of Distributed Tracing

What's this?

  • Containerized vibe.d web app with multi-stage build
  • Example implementation to support distributed tracing of service meshes

Tracing images

App

App

App Graph

Kiali

Trace

Jaeger

Requirements

  • Kubernetes
  • Istio(istioctl)

Setup Istio

Download istioctl

Install Istio

istioctl install --set profile=demo --skip-confirmation
istioctl verify-install

Install addons

kubectl apply -f https://raw.githubusercontent.com/istio/istio/release-1.14/samples/addons/prometheus.yaml
kubectl apply -f https://raw.githubusercontent.com/istio/istio/release-1.14/samples/addons/jaeger.yaml
kubectl apply -f https://raw.githubusercontent.com/istio/istio/release-1.14/samples/addons/kiali.yaml
kubectl apply -f https://raw.githubusercontent.com/istio/istio/release-1.14/samples/addons/grafana.yaml
kubectl apply -f https://raw.githubusercontent.com/istio/istio/release-1.14/samples/addons/extras/zipkin.yaml

Build images

Services

docker build -t weather-service:v1 ./services/weather
docker build -t weather-service:v2 --build-arg BUILD_CONFIG=VERSION_2 ./services/weather
docker build -t weather-service:v3 --build-arg BUILD_CONFIG=VERSION_3 ./services/weather

Web

docker build -t web:v1 ./web

Run

kubectl create namespace weather
kubectl label namespace weather istio-injection=enabled
kubectl apply -n weather -f example.yaml
  1. Access to http://localhost:30000
  2. Search some location (allow any text)

Show Dashboard

istioctl dashboard kiali
istioctl dashboard jaeger
istioctl dashboard grafana

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published