grafana / beyla

eBPF-based autoinstrumentation of web applications and network metrics
https://grafana.com/oss/beyla-ebpf/
Apache License 2.0
1.35k stars 96 forks source link

Investigate service selection not working #564

Closed mariomac closed 1 month ago

mariomac commented 8 months ago

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
nlamirault commented 8 months ago

it works with this configuration:

discovery:
  services:
    - k8s_namespace: observability
    - k8s_pod_name: grafana-0
marctc commented 1 month ago

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