beyla icon indicating copy to clipboard operation
beyla copied to clipboard

Investigate service selection not working

Open mariomac opened this issue 1 year ago • 1 comments
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

mariomac avatar Jan 19 '24 15:01 mariomac

it works with this configuration:

discovery:
  services:
    - k8s_namespace: observability
    - k8s_pod_name: grafana-0

nlamirault avatar Jan 19 '24 15:01 nlamirault

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-.*$"

marctc avatar Aug 23 '24 14:08 marctc