Upgrade to Pro — share decks privately, control downloads, hide ads and more …

kspan: Traces from Events

A5bb5f730547fb2c402da2ccef3394ae?s=47 mita
May 20, 2021

kspan: Traces from Events

kspan: Traces from Events
Kubernetes Meetup Tokyo #41 LT

A5bb5f730547fb2c402da2ccef3394ae?s=128

mita

May 20, 2021
Tweet

Transcript

  1. Recap kspan Traces from Events https://static.sched.com/hosted_ fi les/kccnceu2021/fd/Traces%20from%20Events%20%28Kspan%29.pdf https://sched.co/iE3j

  2. Recap Name: mita Role: Infrastructure Engineer Interest: - Improving Operator

    Experience - Cloud Native - KRM Ecosystems - Kubernetes Operators - Observability - Chaos Engineering - Infrastructure as Code
  3. Recap Observabilityͷ̏ຊப • 2017೥ʹɺObservabilityͷ3ຊபͱͯ͠ Logging, Metrics, Tracing͕ఏএ͞Εͨ • New RelicͰ͸M.E.L.T(Metrics,

    Events, Logs, Traces)ͷ4ͭͱఆٛͯ͠Δ(https://newrelic.com/resources/ ebooks/what-is-observability) https://peter.bourgon.org/blog/2017/02/21/metrics-tracing-and-logging.html
  4. Recap What is kspan? • KubeCon EUͰ঺հ͞ΕͨWeaveworks੡ͷπʔϧ(Experimental) • Kubernetes্Ͱੜ੒͞ΕΔEventΛTraceʹม׵͢Δ https://github.com/weaveworks-experiments/kspan

  5. Recap Architecture https://static.sched.com/hosted_ fi les/kccnceu2021/fd/Traces%20from%20Events%20%28Kspan%29.pdf

  6. Recap Demo Jaeger kspan Nginx Deployment Manifest api-server 4. Emit

    spans as OTLP(OpenTelemetry Protocol) 2. watch events 3. convert events to spans 1. apply manifest
  7. Recap ༨ஊ Kubernetes EventͷTimestamp • ԼهIssueʹ͋Δ௨Γɺޙํޓ׵ੑΛอͬͨ··millisecond୯ҐͷϑΥʔ ϚοτΛ৽ͨʹ࠾༻͢Δͷ͸ݫ͍͠ • ͦͷͨΊɺඵ୯ҐͷEventͷॱং͕ٯస͢Δ •

    https://github.com/kubernetes/kubernetes/issues/81026 • EventϦιʔεࣗମ͸ϚΠΫϩඵ୯ҐͷλΠϜελϯϓΛอ͍࣋ͯ͠Δ https://pkg.go.dev/k8s.io/api/core/v1#Event