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

Metriken, Logs, Traces - Observability mit Open...

Metriken, Logs, Traces - Observability mit Open Source

Um in verteilten Anwendungslandschaften den Überblick zu behalten, sollten Metriken, Logs und Traces genutzt werden. Doch eine Umfrage der Cloud Native Computing Foundation (CNCF) zeigt, dass dafür diverse Produkte genutzt werden. Wie kann man Observability vereinheitlichen und sowohl neue cloud-native als auch bestehende Anwendungen zusammenbringen?In dieser Session wird OpenTelemetry vorgestellt - ein herstellerneutrales, quelloffenes Ökosystem mit dem sich Telemetriedaten standardisiert erfassen und übertragen lassen. Es wird gezeigt, wie eine Anwendungsintegration und Verknüpfung mit gängigen Bibliotheken erfolgt. Zuletzt wird darauf eingegangen wie die AWS Distribution für OpenTelemetry (ADOT) die Integration mit AWS Monitoring and Observability Services wie Amazon CloudWatch und AWS X-Ray vereinfacht.

Dennis Kieselhorst

May 12, 2022
Tweet

More Decks by Dennis Kieselhorst

Other Decks in Technology

Transcript

  1. B E R L I N | M A Y

    1 1 – 1 2 , 2 0 2 2
  2. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Metriken, Logs, Traces - Observability mit Open Source Dennis Kieselhorst S E C 3 0 1 Senior Solutions Architect Amazon Web Services
  3. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. What is observability? DETECT INVESTIGATE REMEDIATE
  4. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Data drives decisions R E A L - T I M E D A T A D R I V E S R E A L - T I M E D E C I S I O N S Logs Metrics Traces AWS monitoring and observability services help you maintain SLAs by detecting, investigating, and remediating problems such as Availability Reliability Performance
  5. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Customer use cases for observability M E E T Y O U R O B S E R V A B I L I T Y N E E D S W I T H E N T E R P R I S E T O O L S B U I L T F O R T H E C L O U D Optimize end user application experiences with DEM Monitor with full stack observability Observe modern applications Achieve SLOs with AIOps and DevOps Consolidate monitoring tools into a single tool Leverage managed observability services
  6. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. AWS observability choices MONITORING & OBSERVABILITY INSTRUMENTATION CloudWatch agent AWS Distro for OpenTelemetry X-Ray agent Amazon Managed Grafana CloudWatch ServiceLens Container Insights Synthetics Lambda Insights Contributor Insights Custom-built dashboards and data correlation, collection, configuration, etc. AWS X-Ray CloudWatch Logs CloudWatch metrics Amazon OpenSearch Service Amazon Managed Service for Prometheus
  7. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon is customer-obsessed 90–95% of Amazon and AWS roadmaps are driven by customer needs Open source matters to our customers, so it matters to us
  8. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Working with the open source community L E V E R A G E O P E N S O U R C E W I T H O U R M A N A G E D O B S E R V A B I L I T Y S E R V I C E S Prometheus Kubernetes Cloud Native Computing Foundation
  9. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. OpenTelemetry & AWS Distro for OpenTelemetry I N S T R U M E N T A T I O N A N D C O L L E C T I O N • OpenTelemetry ▪ Is a Cloud Native Computing Foundation (CNCF) project ▪ Provides open-source observability agents and libraries and a data protocol to unify monitoring, managing, and debugging of applications ▪ Supports all 3 data signals in 11 languages (Java, C#, Go, JavaScript, PHP, Python, Rust, C++, Erlang/Elixir, .NET, Swift) • AWS Distro for OpenTelemetry (ADOT) ▪ Is a secure, production-ready open-source distribution supported by AWS ▪ Features code contributions upstream in OpenTelemetry ▪ Is certified by AWS for security and predictability
  10. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. OpenTelemetry reference architecture https://opentelemetry.io/docs/
  11. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. OpenTelemetry roadmap I N S T R U M E N T A T I O N A N D C O L L E C T I O N Tracing API: stable SDK: stable Protocol: stable • Specification is stable • Covered by long-term support • Specification is still extensible, but only in a backwards compatible manner • OpenTelemetry clients are versioned to v1.0 once their tracing implementation is complete Metrics (Preview) API: stable SDK: feature-freeze Protocol: stable • Currently under active development, the data model is stable. • Collector support for Prometheus is under development, in collaboration with the Prometheus community • Metric API and SDK specification is currently being prototyped in Java, .NET, and Python Logs API: draft SDK: draft Protocol: beta • Currently under active development • Log processing for many data formats has been added to the Collector. • Log appenders are in development for many languages. • A logging SDK is currently under development. • An OpenTelemetry logging API is not currently under development. https://opentelemetry.io/status/
  12. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Tracing concepts Frontend API Gateway Trace Amazon SQS queue Amazon DynamoDB Table Function Function AWS X-Ray Segments/ OpenTelemetry Spans Sub-segments/ Spans Request Response Amazon Rekognition
  13. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Tracing concepts • Span represents an operation within a transaction. Typically encapsulates: operation name, a start and finish timestamp, attributes (a list of key-value pairs), events, a parent span identifier, links to other spans, and a SpanContext. • Trace defined implicitly by its spans. A trace can be thought of as a directed acyclic graph (DAG) of spans where the edges between spans are defined as parent/child relationships. • SpanContext represents all the information that identifies Span in the Trace and MUST be propagated to child Spans and across process boundaries. A SpanContext contains the tracing identifiers and the options that are propagated from parent to child Spans. • Tracer is responsible for tracking the currently active span. https://github.com/open-telemetry/opentelemetry- specification/blob/main/specification/overview.md#tracing-signal
  14. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Demo Blog: https://a.co/5sIvwvL Workshop: https://observability.workshop.aws
  15. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. AWS Distro for OpenTelemetry Architecture Application Code Auto-Instrumentation Agent OpenTelemetry Collector OpenTelemetry Extension/Processing OpenTelemetry In-Process Exporter OpenTelemetry API/SDK Monitoring Services Clients In application process Outside application process AWS resource metadata X-Ray Trace ID Support Correlation between metrics and traces AWS SDK Support X-Ray Trace ID Support Format conversion between OT and AWS Correlation between metrics and traces Traces Metrics X-Ray CloudWatch Metrics Prometheus Partners
  16. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. OpenTelemetry Collector https://opentelemetry.io/docs/collector/
  17. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. OpenTelemetry Collector Deployment • Agent: A Collector instance running with the application or on the same host as the application (e.g. binary, sidecar, or daemonset). • Gateway: One or more Collector instances running as a standalone service (e.g. container or deployment) typically per cluster, datacenter or region. Components • Receivers: How to get data into the Collector; these can be push or pull based • Processors: What to do with received data • Exporters: Where to send received data; these can be push or pull based • Pipelines: Enable the components V E N D O R - A G N O S T I C W A Y T O R E C E I V E , P R O C E S S A N D E X P O R T T E L E M E T R Y D A T A https://opentelemetry.io/docs/concepts/data-collection/
  18. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. AWS OTel Collector Amazon Managed Service for Prometheus Workspace AWS EMF Exporter Prometheus Exporter AWS X-Ray Exporter OTLP Receiver Processor Amazon CloudWatch AWS X-Ray OpenTelemetry Collector on AWS 𝜇Service1 Amazon EKS Amazon ECS AWS Container Insights Receiver Prometheus Receiver
  19. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Observability is key to measure and monitor the behavior of distributed applications Flexibility of open source, powered by AWS, will help in enabling observability from infrastructure to end users 01 AWS is there to support your enterprise needs – how can we help? You can operate with greater safety, ease, and efficiency with solutions built using AWS observability services 02 03
  20. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Resources • Observability Workshop: https://observability.workshop.aws • Developer Portal: https://aws-otel.github.io • Overview page: http://aws.amazon.com/otel • Roadmap: https://github.com/orgs/aws-observability/projects/4 • Feature requests, bugs: https://github.com/aws-observability/aws- otel-community/issues • OpenTelemetry spec https://github.com/open- telemetry/opentelemetry-specification/tree/main/specification • Contact us on Gitter: https://gitter.im/aws-otel-distro/community
  21. Thank you! © 2022, Amazon Web Services, Inc. or its

    affiliates. All rights reserved. Dennis Kieselhorst [email protected]
  22. Please complete the session survey © 2022, Amazon Web Services,

    Inc. or its affiliates. All rights reserved.