Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

running otel/opentelemetry-ebpf-profiler-dev:latest ended with an error (/bin/bash: -c: option requires an argument) #309

Closed
tomert-alma opened this issue Jan 15, 2025 · 4 comments

Comments

@tomert-alma
Copy link

tomert-alma commented Jan 15, 2025

Im trying to run this yaml file, and this is the error I see │ /bin/bash: -c: option requires an argument
what am I missing, what should be the entrypoint of the docker?
any help will be highly appreciated

apiVersion: apps/v1
kind: DaemonSet
metadata:
  name: otel-ebpf-profiler
  namespace: monitoring
spec:
  selector:
    matchLabels:
      app: otel-ebpf-profiler
  template:
    metadata:
      labels:
        app: otel-ebpf-profiler
    spec:
      hostPID: true
      containers:
      - name: ebpf-profiler
        image: otel/opentelemetry-ebpf-profiler-dev:latest
        securityContext:
          privileged: true
        volumeMounts:
        - name: lib-modules
          mountPath: /lib/modules
          readOnly: true
        - name: sys-fs-bpf
          mountPath: /sys/fs/bpf
      volumes:
      - name: lib-modules
        hostPath:
          path: /lib/modules
      - name: sys-fs-bpf
        hostPath:
          path: /sys/fs/bpf
```
@christos68k
Copy link
Member

christos68k commented Jan 15, 2025

Hi Tomer, this is a container that we use to build the agent in reproducible manner (e.g. see the Makefile target agent), it does not contain a profiling agent executable. Given the experimental status of the agent, we haven't yet made any formal releases / published artifacts.

@tomert-alma
Copy link
Author

Thanks, @christos68k,
Is there a way to run the agent on Kubernetes clusters and export data, such as continuous profiling data, to an OTLP collector?

@christos68k
Copy link
Member

You'll need to build your own container and deploy it to K8s. Keep in mind that we're working on the collector integration and the protocol, so breakage is to be expected.

@florianl
Copy link
Contributor

florianl commented Feb 6, 2025

Closing this issue. As explained by @christos68k the docker container otel/opentelemetry-ebpf-profiler-dev is used only to build the executable but does not contain the OTel eBPF profiler.

@florianl florianl closed this as completed Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants