You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
set capabilities for alloy which are needed for beyla.ebpf
enable prometheus.exporter.unix mountstats metrics
restart alloy
run alloy not as root user but as a separate user "grafana" in group "grafana"
System information
Linux hostname 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Fri Oct 18 06:18:15 EDT 2024 x86_64 x86_64 x86_64 GNU/Linux Red Hat Enterprise Linux release 8.10 (Ootpa)
Nachtfalkeaw
changed the title
Capabilities for alloy beyla.ebpf leads to prometheus.exporter.unix.node_exporter name=mountstats "Permission denied"
Capabilities for alloy beyla.ebpf leads to prometheus.exporter.unix name=mountstats "Permission denied"
Jan 26, 2025
@mariomac and @grcevski
another alloy + beyla + capabilities issue. maybe you may have a look, too if this is expected in beyla 2.x and can be better documented and tested that the capabilities needed for beyla.ebpf can be used by other alloy components.
What's wrong?
For beyla.ebpf in alloy 1.5.1 you need additional capabilities:
If these capabilities are configured alloy prints this error message of mountstats and Permission denied:
alloy[4059081]: ts=2025-01-24T22:51:46.737245178Z level=error msg="collector failed" component_path=/ component_id=prometheus.exporter.unix.node_exporter name=mountstats duration_seconds=7.99e-05 err="failed to parse mountstats: open /proc/4059081/mountstats: permission denied"
If I remove all capabilities from allo, rstart alloy service, then mountstats has no permission issues anymore.
my RHEL8 system:
My alloy version:
Steps to reproduce
set capabilities for alloy which are needed for beyla.ebpf
enable prometheus.exporter.unix mountstats metrics
restart alloy
run alloy not as root user but as a separate user "grafana" in group "grafana"
System information
Linux hostname 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Fri Oct 18 06:18:15 EDT 2024 x86_64 x86_64 x86_64 GNU/Linux Red Hat Enterprise Linux release 8.10 (Ootpa)
Software version
Grafana Alloy 1.5.1
Configuration
Logs
The text was updated successfully, but these errors were encountered: