Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

OOM-Kill Integration: clarify when kernel headers are Required to be Installed

Đang mở
#37,495 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
58/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
linux
Lĩnh vực
documentation

Hướng nghiên cứu

Bắt đầu với trang tài liệu tích hợp OOM Kill và tìm phần hiện đang nêu rằng phải cài đặt kernel headers. Kiểm tra BTF check và các yêu cầu đặc thù của từng bản phân phối dựa trên hành vi được báo cáo của Amazon Linux 2023, sau đó cập nhật cách diễn đạt và bảng để các điều kiện tiên quyết chính xác và rõ ràng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Documentation Page

https://docs.datadoghq.com/integrations/oom-kill/

Issue Description

Within the OOM Kill documentation it is suggested that kernel-headers must be installed - this does not seem to be correct as 1) I have a distribution of Amazon Linux 2023 running ECS which is sending OOM Kills and have not installed kernel-devel and 2) claude states that if BTF is support built-in (which is as simple as checking for the file /sys/kernel/btf/vmlinux) the kernel headers package is not required.

My own configuration is shown below

[root@ip-10-2-54-189 ~]# dnf list installed kernel-devel
Error: No matching Packages to list
[root@ip-10-2-54-189 ~]# dnf search kernel-headers
Last metadata expiration check: 1 day, 15:39:49 ago on Sat Jun 13 00:43:35 2026.
==================================================================================== Name Exactly Matched: kernel-headers ====================================================================================
kernel-headers.aarch64 : Header files for the Linux kernel for use by glibc

Suggestion

I would modify the section on installing kernel headers similar to the below:

In order to operate properly, the OOM Kill integration requires either that your kernel ships with BTF built in (shown in the table below, or confirmed by running ls /sys/kernel/btf/vmlinux) or that kernel headers are installed using the command shown in the Kernel Headers Install Command column.

┌───────────────────┬──────────────┬───────────────────────────────────────┐
│   Distribution    │ BTF Built-in │    Kernel Headers Install Command     │
├───────────────────┼──────────────┼───────────────────────────────────────┤
│ Amazon Linux 2    │ No           │ yum install kernel-devel-$(uname -r)  │
├───────────────────┼──────────────┼───────────────────────────────────────┤
│ Amazon Linux 2023 │ Yes          │ N/A                                   │
├───────────────────┼──────────────┼───────────────────────────────────────┤
│ Debian 10         │ No           │ apt install linux-headers-$(uname -r) │
├───────────────────┼──────────────┼───────────────────────────────────────┤
│ Debian 11+        │ Yes          │ N/A                                   │
├───────────────────┼──────────────┼───────────────────────────────────────┤
│ RHEL/CentOS 7/8   │ No           │ yum install kernel-devel-$(uname -r)  │
├───────────────────┼──────────────┼───────────────────────────────────────┤
│ RHEL/CentOS 9+    │ Yes          │ N/A                                   │
├───────────────────┼──────────────┼───────────────────────────────────────┤
│ Ubuntu 18.04      │ No           │ apt install linux-headers-$(uname -r) │
├───────────────────┼──────────────┼───────────────────────────────────────┤
│ Ubuntu 20.04+     │ Yes          │ N/A                                   │
└───────────────────┴──────────────┴───────────────────────────────────────┘
Ngôn ngữ chính
JavaScript
Star
623
Fork
1.3k
Merge trung bình
2 ngày 9 giờ
Pull request đã merge (30 ngày)
545

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của DataDog/documentation

Tất cả issue của DataDog/documentation

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.