diff --git a/otel-collector/config.yaml b/otel-collector/config.yaml index 5e7cb28f..b159b397 100644 --- a/otel-collector/config.yaml +++ b/otel-collector/config.yaml @@ -1,28 +1,34 @@ -# This is a template configuration for OpenTelemetry collector. +# This is the template configuration for OpenTelemetry collector, and is not used by default. +# It is mounted to '/etc/otel-collector/config.yaml' in the otel-collector container. exporters: - # Add your exporter(s) configuration here. - # Refer to for information on how to achieve different exporters. + # Add your exporter(s) configuration here. For each exporter, make sure it is enabled + # in the service configuration below. + # Refer to our OpenTelemetry docs for information on how to configure different exporters: + # https://docs.sourcegraph.com/admin/observability/opentelemetry service: - extensions: - - health_check - - zpages pipelines: traces: - receivers: - - otlp exporters: # Add the name of your exporter(s) here, e.g.: # - logging + receivers: + - otlp # Do not remove this receiver + extensions: + # Do not remove these extensions + - health_check + - zpages -extensions: - health_check: - port: 13133 - zpages: - endpoint: "localhost:55679" receivers: otlp: protocols: grpc: # port 4317 http: # port 4318 + +extensions: + health_check: + port: 13133 + zpages: + endpoint: "localhost:55679" +