How to use SumoLogic to collect Distributed Architecture information for vFunction
Overview
SumoLogic uses an OpenTelemetry Collector to process data. vFunction settings can be added to the SumoLogic Collector to also route this same data to the vFunction Server for analysis.
Steps to configure the SumoLogic Collector in AWS environments
SumoLogic provides the following steps for setting up Trace Collection in AWS environments through an OpenTelemetry Collector. Add the following information to the Sumo Logic Distribution for OpenTelemetry Collector default configuration to use this same Collector for vFunction analysis:
Before adding vFunction Details
extensions:
health_check:
receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
processors:
batch/traces:
timeout: 5s
send_batch_size: 256
batch/metrics:
timeout: 60s
exporters:
otlphttp:
endpoint: SUMO_OTLP_HTTP_ENDPOINT_URL
service:
extensions: [health_check]
pipelines:
traces:
receivers: [otlp,awsxray]
processors: [batch/traces]
exporters: [otlphttp]
metrics:
receivers: [otlp]
processors: [batch/metrics]
exporters: [otlphttp]
After adding vFunction Details
- Find-and-replace $PROTOCOL with http or https depending on how the VF Server was configured
- Find-and-replace $VF_SERVER_ADDRESS with the URL for login to your organization’s vFunction Server
- Find-and-replace $VF_APP_UUID with the one provided by the VF Server UI in the Installation Instructions
extensions:
health_check:
receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
processors:
batch/traces:
timeout: 5s
send_batch_size: 256
batch/metrics:
timeout: 60s
exporters:
otlphttp:
endpoint: SUMO_OTLP_HTTP_ENDPOINT_URL
### The four lines below were added for vFunction
otlphttp/vf:
endpoint: $PROTOCOL://$VFSERVER/api/unauth/otlp
headers:
X-VF-APP: $VF_APP_UUID
service:
extensions: [health_check]
pipelines:
traces:
receivers: [otlp,awsxray]
processors: [batch/traces]
### The line below was modified for vFunction
exporters: [otlphttp,otlphttp/vf]
metrics:
receivers: [otlp]
processors: [batch/metrics]
exporters: [otlphttp]