Configure the Collector
Receive OTLP metrics and forward them to Entropus using Prometheus Remote Write.
The OpenTelemetry Collector acts as the bridge between your applications and Entropus. It receives metrics over OTLP, batches them, and sends them to the Entropus metrics write URL.
Create the configuration
Save the following configuration as otel-collector.yaml:
receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
processors:
memory_limiter:
check_interval: 1s
limit_mib: 512
batch: {}
exporters:
prometheusremotewrite:
endpoint: ${env:ENTROPUS_METRICS_WRITE_URL}
service:
pipelines:
metrics:
receivers: [otlp]
processors: [memory_limiter, batch]
exporters: [prometheusremotewrite]Set ENTROPUS_METRICS_WRITE_URL to the complete Write metrics URL copied from the deployment details page:
export ENTROPUS_METRICS_WRITE_URL="https://<telemetry-domain>/metrics/api/v1/write"Run the Collector with Docker
Mount the configuration file and expose the OTLP ports:
docker run --rm \
--name otel-collector \
-p 4317:4317 \
-p 4318:4318 \
-e ENTROPUS_METRICS_WRITE_URL \
-v "$(pwd)/otel-collector.yaml:/etc/otelcol-contrib/config.yaml:ro" \
otel/opentelemetry-collector-contrib:latestPin the Collector image to an approved version before using this configuration in production.
Choose an OTLP protocol
- Use port
4317for OTLP over gRPC. - Use port
4318for OTLP over HTTP/protobuf.
Allow inbound access to only the protocol your applications use. Do not expose Collector ports publicly unless your network and authentication controls require it.
Next step
Configure your applications to send metrics to the Collector.