25 Nisan 2023 Salı

OpenTelemetry Backend

Giriş
Açıklaması şöyle
Even though OpenTelemetry does not provides their own backend, by using it, we are not tied to any tool or vendor, since it is vendor agnostic. Not only can we use any programming language we want, but we can also pick and choose the storage backend and also easily switch to another backend/vendor, by just configure another exporter.
Honeycomb, Lightstep, New Relic, Tempo (Grafana Cloud) gibi bir sürü şey olabilir

Jaeger ve Zipkin
Açıklaması şöyle
Jaeger and Zipkin predate OpenTelemetry, so each has its trace transport format. They do provide integration with the OpenTelemetry format, though.
Jaeger
Açıklaması şöyle
Jaeger inspired by Dapper and OpenZipkin, is a distributed tracing platform created by Uber Technologies and can be used for monitoring microservices based distributed systems.
Örnek 
Jaeger'ı çalıştırmak için şöyle yaparız
docker run -d --name jaeger \
  -e COLLECTOR_ZIPKIN_HOST_PORT=:9411 \
  -p 5775:5775/udp \
  -p 6831:6831/udp \
  -p 6832:6832/udp \
  -p 5778:5778 \
  -p 16686:16686 \
  -p 14250:14250 \
  -p 14268:14268 \
  -p 14269:14269 \
  -p 9411:9411 \
  jaegertracing/all-in-one:1.32
Örnek - Docker Compose ve Jaeger 
Şöyle yaparız
version: "3"

services:
  jaeger:
    image: jaegertracing/all-in-one:1.37           #1
    environment:
      - COLLECTOR_OTLP_ENABLED=true                #2
    ports:
      - "16686:16686"                              #3
Açıklaması şöyle
1. Use the all-in-one image
2. Very important: enable the collector in OpenTelemetry format
3. Expose the UI port


Hiç yorum yok:

Yorum Gönder