elastic / elastic/apm-server

No APM agent token visible in Kibana with local Tilt setup

Open
#12,092 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
1.3k
Forks
543
Avg merge
1d 18h
Merged PRs (30d)
109

Description

When using `tilt` setup, we can use APM agents with the `http://localhost:8200` endpoint.

However, the secret token (or API key) that APM agents have to use is not shown in the Kibana UI:
![image](https://github.com/elastic/apm-server/assets/763082/a1049af9-6a03-4116-b7d9-045a075a25b9)

The secret token is still generated and used by apm-server and we can use the following `kubectl` command to retrieve it:

```
kubectl get secret/apm-server-apm-token -o go-template='{{index .data "secret-token" | base64decode}}'
```
This is identical to [this command in our documentation](https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-apm-connecting.html#k8s-apm-secret-token) but with a different server name.

Contributor guide

Open the contributing guide

Research direction

Reproduce the local Tilt setup and open the Kibana UI for the APM server. Compare what the UI exposes with the secret retrieved by the documented kubectl command, then trace the relevant Kibana UI entry point. Done means the generated secret token or API key is visible for agents to use.

Written by the indexing model from the issue text.

Assessment

Tech stack
kubernetes
Domain
observability-sre
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.