This demo OpenTelemetry collector was originally created for the Export OpenTelemetry Data tutorial.
OpenTelemetry Collectors allow you to receive, process, and export telemetry data in a vendor-agnostic way. When configuring an OpenTelemetry Collector, you can specify how/where you should receive telemetry data, how that data should be processed, and how/where that data should be exported.
Our example OpenTelemetry Collector features a single Gateway cluster which receives data on the standard OpenTelemetry port (4317). This example collector outputs any data it receives to the logs.
- Deploy the OpenTelemetry collector to your cluster using the
kubectl
command below. This will deploy the collector to thedefault
namespace.
kubectl apply -f collector.yaml
-
Configure the OpenTelemetry Pixie Plugin to export data to
otel-collector.default.svc.cluster.local:4317
. Note that the OpenTelemetry collector must be deployed to the same cluster that Pixie is installed in. -
To validate that data is being received by the OpenTelemetry collector, check the logs for the
otel-collector
pod. If the export was successful, you should see logs similar to:
2022-04-15T02:38:05.338Z INFO loggingexporter/logging_exporter.go:54 MetricsExporter {"#metrics": 732}
Please reach out on our Pixie Community Slack or file a GitHub issue.