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

Building custom OpenTelemetry Collector distributions with ocb

Building custom OpenTelemetry Collector distributions with ocb

You probably know that the OpenTelemetry Collector comes in two flavors: the core and the contrib distributions. What you might not know is that you can mix and match components to create your distribution. Come to this lightning session and learn how to assemble a custom distribution with the components you care about using ocb, the OpenTelemetry Collector Builder.

More Decks by Juraci Paixão Kröhling

Other Decks in Technology

Transcript

  1. @jpkrohling @jpkrohling Juraci Paixão Kröhling Software engineer OpenTelemetry Collector •

    Quick intro • OTel Collector concepts • OTel Collector distributions OpenTelemetry Collector Builder • Intro • Example • Demo Presenter Agenda
  2. @jpkrohling @jpkrohling Vendor-agnostic way to receive, process and export telemetry

    data. Source: https://opentelemetry.io/docs/collector/
  3. @jpkrohling @jpkrohling OpenTelemetry Collector Concepts Obtains the telemetry data point,

    either actively (pull model) or passively (push model) Receiver Processor Exporter Has the ability to look into and potentially change the in-flight telemetry data points Gets the telemetry data points out of the collector, either passively (pull model) or actively (push model)
  4. @jpkrohling @jpkrohling OpenTelemetry Collector Concepts Components that interacts with the

    collector but not directly part of a pipeline. Like health-check endpoints, or auth/z. Extension Connectors A component that is the exporter of one pipeline and receiver in another, perhaps transforming one signal into another (spans to logs, spans to metrics, …)
  5. @jpkrohling Our official distributions Core Selected components, geared towards interoperability

    with other open-source projects. Contrib Everything under the sun, including vendor-specific components.
  6. @jpkrohling @jpkrohling What is included in the “core” distribution Receivers

    • otlp • hostmetrics • jaeger • kafka • opencensus • prometheus • zipkin Processors • batch • memorylimiter • attributes • resource • span • probabilisticsampler • filter Exporters • logging • otlp • otlphttp • file • jaeger • kafka • opencensus • prometheus • prometheusremotewrite • zipkin
  7. @jpkrohling @jpkrohling What is included in the “contrib” distribution Receivers

    • otlp • activedirectoryds • aerospike • apache • awscloudwatch • awscontainerinsight • awsecscontainermetrics • awsfirehose • awsxray • azureeventhub • bigip • carbon • cloudfoundry • collectd • couchdb • + 60 others Processors • batch • memorylimiter • attributes • cumulativetodelta • datadog • deltatorate • filter • groupbyattrs • groupbytrace • k8sattributes • metricsgeneration • metricstransform • probabilisticsampler • redaction • resourcedetection • + 7 others Exporters • logging • otlp • otlphttp • alibabacloudlogservice • awscloudwatchlogs • awsemf • awskinesis • awsxray • azuredataexplorer • azuremonitor • carbon • clickhouse • coralogix • datadog • dynatrace • + 29 others
  8. @jpkrohling @jpkrohling The OpenTelemetry Collector Builder (ocb) is a command-line

    interface tool that generates sources and binaries for OpenTelemetry Collector distributions. me
  9. @jpkrohling @jpkrohling Key takeaways • The Collector is available officially

    in two distributions: core and contrib • Core has essential components, suitable for a wide variety of applications • Contrib has everything that is part of the OTel Collector project • Custom distributions can be used for a more streamlined (smaller, safer) solution • The OpenTelemetry Collector Builder can be used to generate custom distributions, potentially with your own custom components