Skip to content

Can't connect with current Elastic APM #158

@DaGeRe

Description

@DaGeRe

Bug Report

Which version of the demo you are using?

I'm using ec2eeb3 (latest as I cloned).

Symptom

I just wanted to see the basic behavior, so I registered, and:

  • In the Elastic cloud: Clicked on "Add Data", "Application", "OpenTelemetry", and got my endpoint and Api Key. The header was something like "Authorization ApiKey XYZ===", so I assumed my key is XYZ===.
  • In the .env.override: Changed
ELASTICSEARCH_ENDPOINT="https://my-observability-project-a2475f.apm.us-central1.gcp.elastic.cloud:443"
ELASTICSEARCH_API_KEY="XYZ=="
  • Run make start in the demo.

What is the expected behavior?

When I click on 'Check Status', I expect data to appear - but nothing appears.

What do you expect to see?

The OpenTelemetry demo application data displayed in Elastic APM.

What is the actual behavior?

It says "No data has been received from agents yet".

Reproduce

Just register a new account, set the ApiKey and run make start.

Additional Context

Also changing OTEL_COLLECTOR_CONFIG to OTEL_COLLECTOR_CONFIG=./src/otel-collector/otelcol-elastic-otlp-config.yaml (like described in the Managed Ingest Endpoint section) doesn't work.

curl -X GET "https://my-observability-project-a2475f.apm.us-central1.gcp.elastic.cloud:443" -H "Authorization: ApiKey XYZ==" returns {"version":"8.9.0"}, which, I assume, should be fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions