Run the quickstart script to automatically provision a demo Event Gateway control plane and data plane, and configure your environment for sending metrics and traces:
curl -Ls https://get.konghq.com/event-gateway | bash -s -- \
-k $KONNECT_TOKEN \
-N kafka_event_gateway \
-e "KEG__OBSERVABILITY__OTLP__TRACING__ENABLED=true" \
-e "KEG__RUNTIME__HEALTH_LISTENER_ADDRESS_PORT=0.0.0.0:8080" \
-e "OTEL_EXPORTER_OTLP_PROTOCOL=grpc" \
-e "OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4317" \
-e "OTEL_EXPORTER_OTLP_TIMEOUT=10s" \
-e "OTEL_SERVICE_NAME=eventgw"
Where you configure the following custom telemetry settings:
|
Parameter
|
Default
|
New value
|
Description
|
KEG__OBSERVABILITY__OTLP__TRACING__ENABLED
|
false
|
true
|
Determines whether to turn on OTLP tracing.
|
KEG__RUNTIME__HEALTH_LISTENER_ADDRESS_PORT
|
localhost:8080
|
0.0.0.0:8080
|
Determines the address and port for the health listener where metrics are exposed for scraping.
|
OTEL_EXPORTER_OTLP_PROTOCOL
|
http/protobuf
|
grpc
|
Protocol used to export OpenTelemetry data.
|
OTEL_EXPORTER_OTLP_ENDPOINT
|
https://localhost:4317
|
http://otel-collector:4317
|
Endpoint to send OpenTelemetry data. In most cases, this will be an OTEL collector URL.
|
OTEL_EXPORTER_OTLP_TIMEOUT
|
10s
|
10s
|
Max waiting time for the backend to process each metrics batch. We’re not adjusting this for the tutorial, but you can adjust as needed for troubleshooting.
|
OTEL_SERVICE_NAME
|
none
|
eventgw
|
Name of the OTEL service identified in the observability tools. For example, in Jaeger, the service will appear as eventgw.
|
This sets up an Event Gateway control plane named event-gateway-quickstart, provisions a local data plane, and prints out the following environment variable export:
export EVENT_GATEWAY_ID=your-gateway-id
Copy and paste this into your terminal to configure your session.
This quickstart script is meant for demo purposes only, therefore it runs locally with most default parameters and a small number of exposed ports.
If you want to run Kong Gateway as a part of a production-ready platform, set up your control plane and data planes through the Konnect UI, or using Terraform.