Skip to content

GoogleCloudPlatform/opentelemetry-collector-builder-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenTelemetry Collector Builder sample

This repository holds a sample for using the OpenTelemetry Collector Builder configured with components generally useful for GCP deployments.

Table of Contents

Using this repo

This repo is intended to be used as a sample demonstrating the full series of steps required to build and deploy a custom OpenTelemetry Collector with GCP.

There are public Docker images available for running the OpenTelemetry Collector, but these images can be over 40MB in size (and growing) and are packaged with many components which you may not need for your use case.

In contrast, a custom-built collector contains only the components you need, which can drastically shrink its size (down to as small as a few MB) and provide security from extraneous compiled code. This repo focuses on making it easy to build a GCP-specific collector with only those necessary components.

This repo is meant to be cloned, forked, or otherwise used within your own project. Feel free to customize the builder config, collector config, or Cloud Build steps to your needs. This repo provides a Makefile that automates many of the commands needed to interact with these files, which are described below.

Sample Recipes

Building your OpenTelemetry Collector

Deploying your OpenTelemetry Collector

Contributing

See CONTRIBUTING.md for details.

License

Apache 2.0; see LICENSE for details.