beyla
beyla copied to clipboard
Investigate service selection not working
trafficstars
From public slack: https://grafana.slack.com/archives/C05T4PW9E85/p1705676217162779
This discovery section did not work finding the require pod:
discovery:
services:
- k8s_pod_name: "^grafana-0$"
kubectl -n observability get pod
NAME READY STATUS RESTARTS AGE
grafana-0 6/6 Running 0 4d11h
The following change made it work:
discovery:
services:
- k8s_namespace: observability
- k8s_pod_name: grafana-0
it works with this configuration:
discovery:
services:
- k8s_namespace: observability
- k8s_pod_name: grafana-0
I wasn't able to replicate the error. Closing for now.I
have a pod called notel-demo-frontendproxy-5bf8fdfb4d-dg58q. Using the following i'm able to instrument properly:
discovery:
services:
- k8s_namespace: default
k8s_pod_name: "^notel-demo-frontendproxy-.*$"