ebpf.d.conf 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. #
  2. # Global options
  3. #
  4. # The `ebpf load mode` option accepts the following values :
  5. # `entry` : The eBPF collector only monitors calls for the functions, and does not show charts related to errors.
  6. # `return : In the `return` mode, the eBPF collector monitors the same kernel functions as `entry`, but also creates
  7. # new charts for the return of these functions, such as errors.
  8. #
  9. # The eBPF collector also creates charts for each running application through an integration with the `apps.plugin`
  10. # or `cgroups.plugin`.
  11. # If you want to disable the integration with `apps.plugin` or `cgroups.plugin` along with the above charts, change the setting
  12. # `apps` and `cgroups` to 'no'.
  13. #
  14. # The `update every` option defines the number of seconds used to read data from kernel and send to netdata
  15. #
  16. # The `pid table size` defines the maximum number of PIDs stored in the application hash tables.
  17. #
  18. # The `btf path` specifies where to find the BTF files.
  19. #
  20. # The `maps per core` defines if hash tables will be per core or not. This option is ignored on kernels older than 4.15.
  21. #
  22. # The `lifetime` defines the time length a thread will run when it is enabled by a function.
  23. #
  24. [global]
  25. ebpf load mode = entry
  26. apps = no
  27. cgroups = no
  28. update every = 5
  29. pid table size = 32768
  30. btf path = /sys/kernel/btf/
  31. maps per core = yes
  32. lifetime = 300
  33. #
  34. # eBPF Programs
  35. #
  36. # The eBPF collector has the following eBPF programs:
  37. #
  38. # `cachestat` : Make charts for kernel functions related to page cache.
  39. # `dcstat` : Make charts for kernel functions related to directory cache.
  40. # `disk` : Monitor I/O latencies for disks
  41. # `fd` : This eBPF program creates charts that show information about file manipulation.
  42. # `filesystem`: Monitor calls for functions used to manipulate specific filesystems
  43. # `hardirq` : Monitor latency of serving hardware interrupt requests (hard IRQs).
  44. # `mdflush` : Monitors flush counts for multi-devices.
  45. # `mount` : Monitor calls for syscalls mount and umount
  46. # `oomkill` : This eBPF program creates a chart that shows which process got OOM killed and when.
  47. # `process` : This eBPF program creates charts that show information about process life.
  48. # `shm` : Monitor calls for syscalls shmget, shmat, shmdt and shmctl.
  49. # `socket` : This eBPF program creates charts with information about `TCP` and `UDP` functions, including the
  50. # bandwidth consumed by each.
  51. # `softirq` : Monitor latency of serving software interrupt requests (soft IRQs).
  52. # `sync` : Monitor calls for syscall sync(2).
  53. # `swap` : Monitor calls for internal swap functions.
  54. # `vfs` : This eBPF program creates charts that show information about process VFS IO, VFS file manipulation and
  55. # files removed.
  56. #
  57. # When plugin detects that system has support to BTF, it enables integration with apps.plugin.
  58. #
  59. [ebpf programs]
  60. cachestat = yes
  61. dcstat = no
  62. disk = no
  63. fd = yes
  64. filesystem = no
  65. hardirq = no
  66. mdflush = no
  67. mount = yes
  68. oomkill = yes
  69. process = yes
  70. shm = yes
  71. socket = no
  72. softirq = yes
  73. sync = no
  74. swap = yes
  75. vfs = no
  76. network connections = no