Skip to content

Latest commit

 

History

History
 
 

otelcollector

OTEL Collector

This is a custom build of the official OpenTelemetry Collector a vendor-agnostic service that allows to receive, process and export telemetry data.

Build

You can simply build the collector by running the following command from the root of the repository:

docker compose -f docker-compose.yml build otelcollector --no-cache

(Optional) Please read the Building a custom collector to learn how to build a custom collector. Ensure you have the latest version of the OpenTelemetry Collector Builder installed.

Production checklist

Change the TTL of the otel_metrics_* table to 3 days. In that way, raw metrics will be deleted after 3 days but the materialized view will still be available for 30 days in a compressed format.

Run this for each metrics table:

ALTER TABLE otel_metrics_histogram MODIFY TTL toDateTime(TimeUnix) + toIntervalDay(7);
OPTIMIZE TABLE otel_metrics_histogram FINAL;