This is a guide for ingesting data from OpenTelemetry demo into the Elastic stack. Kibana, Elasticsearch and APM Server will be running on the host, while the OpenTelemetry Demo components will run in docker containers using Docker Compose.
Just your standard Kibana + ES stack. Nothing interesting to see here.
git clone git@github.com:elastic/kibana.git
yarn kbn bootstrap
yarn es
yarn start
Vanilla APM Server running on localhost:8200
with secret token my_secret_token
. The OTel collector (setup below) will connect to the APM Server to ingest traces and APM metrics.
git clone git@github.com:elastic/apm-server.git
Update apm-server.yml
apm-server:
host: "127.0.0.1:8200"
auth
secret_token: my_secret_token
output.elasticsearch:
hosts: ["localhost:9200"]
username: "elastic"
password: "changeme"
Build and run
make
./apm-server -c apm-server.yml -e -d "*"
This will run the OpenTelemetry Demo components, like the OTel Collector that will connect to APM Server.
git clone git@github.com:elastic/opentelemetry-demo.git
Update otelcol-config-extras.yml
exporters:
otlp/elastic:
endpoint: "host.docker.internal:8200"
compression: none
tls:
insecure: true
insecure_skip_verify: true
headers:
Authorization: "Bearer my_secret_token"
Run
docker-compose up -d
The otel demo is now available at http://localhost:8080/
Kill or stop the checkout
container. This will cause the failure rate in dependent services (frontend and frontend-proxy) to increase