Skip to content

Beyla -"can't get container info for PID" #3970

Open
@vaishnavi216

Description

@vaishnavi216

we trying to deploy grafana alloy with beyla unprivillaged mode configs to scrap the metrics,logs and traces we following the provided beyla.ebpf config . not able to get traces

but we getting the debug logs as below:
time=2025-07-09T13:45:47.500Z level=DEBUG msg="can't get container info for PID" component=discover.watcherKubeEnricher pid=2265264 error="/proc/2265264/cgroup: couldn't find any docker entry for process with PID 2265264"

Alloy version : v1.6.1

config.river
beyla.ebpf "default" {
// Enable Kubernetes decoration
attributes {
kubernetes {
enable = "true"
}
}

  // Enable debug mode
  debug = true
  //trace_printer = "json"

  // Discovery all deployments in the default namespace
  discovery {
    services {
      exe_path   = "http"
      open_ports = "8080"
      kubernetes {
        deployment_name = "."
        pod_name = "employee.*"
      }
    }
  }

  // Enable all metrics features for Prometheus
  metrics {
    features = [
      "application",
    ]
  }
  output {
      traces = [otelcol.processor.batch.trace.input]
    }
}
otelcol.processor.batch "trace" {
  output {
    traces  = [otelcol.exporter.otlp.tempo.input]
  }
}
otelcol.exporter.otlp "tempo" {
  client {
    endpoint = "[https://tempo.com/traces"
    tls {
        insecure = true
        insecure_skip_verify = true
    }
    headers = {
        "X-Scope-OrgID" = "beyla-test",
    }
  }
}
      securityContext:
        appArmorProfile:
          type: Unconfined
        privileged: false  
        runAsUser: 0
        runAsGroup: 0
        allowPrivilegeEscalation: false
        capabilities:
          add:
            - BPF                 
            - SYS_PTRACE          
            - NET_RAW            
            - CHECKPOINT_RESTORE  
            - DAC_READ_SEARCH    
            - PERFMON            
            - SYS_RESOURCE       
            - SYS_ADMIN  
            - NET_ADMIN
            - SYSLOG  

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions