How To Set Up OTLP/HTTP Receiver in Astra Traffic Collector
Last updated: August 19, 2025
Astra Traffic Collector usually listens on port 4317 for grpc communication from sensors. In some scenarios, sesnor demands OTLP/HTTp communication over port 4318. In such cases, you can configure Astra Traffic Collector to receive OTLP data over HTTP or HTTPS on port 4318.
Option A: HTTP Configuration (If Astra Traffic Collector resides in same VM or VPC as that of sensor)
This is the recommended way if Astra Traffic Collector is running as a Kubernetes container
Step 1: Edit the config_custom.yaml
Locate the config_custom.yaml under installation directory of Astra Traffic Collector.
receivers:
otlp:
protocols:
http:
endpoint: "0.0.0.0:4318" # HTTP receiver on port 4318
processors:
#...existingStep 2: Restart the Astra Traffic Collector
If Astra Traffic Collector is installed on a Linux VM, refer here to know how to restart
If Astra Traffic Collector is installed on Kubernetes, refer here to know how to restart
Option B: HTTPS Configuration (If communication between sensor and collector must happen via external network)
Step 1: Edit the config_custom.yaml
Locate the config_custom.yaml under installation directory of Astra Traffic Collector.
receivers:
otlp:
protocols:
http:
endpoint: "0.0.0.0:4318" # HTTP receiver on port 4318
tls:
cert_file: "/etc/otelcol-contrib/server.crt"
key_file: "/etc/otelcol-contrib/server.key"
ca_file: "/etc/otelcol-contrib/ca.crtUse the ca_file field only for self-signed or untrusted CAs.
Also mount the certs in docker-compose.yaml :
volumes:
- <path_to_certificates>/<server-cert-file>:/etc/otelcol-contrib/server.crt:ro
- <path_to_certificates>/<server-key-file>:/etc/otelcol-contrib/server.key:ro
- <path_to_certificates>/<ca-cert-file>:/etc/otelcol-contrib/ca.crt:ro