grafana / beyla

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

export all metrics for all host processes #1083

Closed cforce closed 1 week ago

cforce commented 1 month ago

According to the docs beyla is capable of retrieving process metrics. This might only be the case for explicitly known and configured process names/oids/ports, but how to get process metrics for any process running on the host or per cgroup?

image

grcevski commented 4 weeks ago

The purpose of the feature that Beyla has was to report process metrics of the processes Beyla is instrumenting, separating the specific instrumented metrics from the overall node metrics. To get all process metrics, we have to make Beyla instrument all processes, for example using wildcard pattern matching for all executable names. For overall node metrics, best approach would be to use the regular node exporter metric scraper, rather than Beyla.

cforce commented 4 weeks ago

This request was not thought having Kubernetes as requirement in mind but just Linux host

marevers commented 1 week ago

@cforce Node exporter also works on Linux itself. There is no requirement of running on Kubernetes (even though it is the most common usecase).

marctc commented 1 week ago

Closing the issue as right now it's technically possible to use Beyla as they way you are thinking. However, to get host metrics, the way to go is node exporter and to get more detailed metrics of processes, use process exporter. Feel free to reopen if you have a more specific request on this topic.

cforce commented 1 week ago

Can you please gibe an example cfg which proven works on plain linux with node exporter?