- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- Administrator's Guide
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
Supported OS
Get metrics from the Kubernetes service in real time to:
Note: This check only works with Agent v5. For Agent v6+, see the kubelet check.
The Kubernetes check is included in the Datadog Agent package, so you don’t need to install anything else on your Kubernetes servers.
For more information on installing the Datadog Agent on your Kubernetes clusters, see the Kubernetes documentation.
To collect Kubernetes State metrics, see the kubernetes_state integration.
Edit the kubernetes.yaml
file to point to your server and port, set the masters to monitor.
Run the Agent’s status subcommand and look for kubernetes
under the Checks section.
kubernetes.cpu.capacity (gauge) | The number of cores in this machine Shown as core |
kubernetes.cpu.limits (gauge) | The limit of cpu cores set Shown as core |
kubernetes.cpu.requests (gauge) | The requested cpu cores Shown as core |
kubernetes.cpu.usage.total (gauge) | The number of cores used Shown as nanocore |
kubernetes.diskio.io_service_bytes.stats.total (gauge) | The amount of disk space the container uses. Shown as byte |
kubernetes.filesystem.usage (gauge) | The amount of disk used. Requires Docker container runtime. Shown as byte |
kubernetes.filesystem.usage_pct (gauge) | The percentage of disk used. Requires Docker container runtime. Shown as fraction |
kubernetes.memory.capacity (gauge) | The amount of memory (in bytes) in this machine Shown as byte |
kubernetes.memory.limits (gauge) | The limit of memory set Shown as byte |
kubernetes.memory.requests (gauge) | The requested memory Shown as byte |
kubernetes.memory.usage (gauge) | The amount of memory used Shown as byte |
kubernetes.network.rx_bytes (gauge) | The amount of bytes per second received Shown as byte |
kubernetes.network.tx_bytes (gauge) | The amount of bytes per second transmitted Shown as byte |
kubernetes.network_errors (gauge) | The amount of network errors per second Shown as error |
As of the v5.17.0 release, the Datadog Agent supports a built-in leader election option for the Kubernetes event collector. Once enabled, you no longer need to deploy an additional event collection container to your cluster. Instead, Agents coordinate to ensure only one Agent instance is gathering events at a given time, events below are available:
kubernetes_state.node.ready
Returns CRITICAL
if a cluster node is not ready. Returns WARNING
if status is unknown. Returns OK
otherwise.
Statuses: ok, warning, critical
kubernetes_state.node.out_of_disk
Returns CRITICAL
if a cluster node is out of disk space. Returns UNKNOWN
if status is unknown. Returns OK
otherwise.
Statuses: ok, unknown, critical
kubernetes_state.node.disk_pressure
Returns CRITICAL
if a cluster node is in a disk pressure state. Returns UNKNOWN
if status is unknown. Returns OK
otherwise.
Statuses: ok, unknown, critical
kubernetes_state.node.memory_pressure
Returns CRITICAL
if a cluster node is in a memory pressure state. Returns UNKNOWN
if status is unknown. Returns OK
otherwise.
Statuses: ok, unknown, critical
kubernetes_state.node.network_unavailable
Returns CRITICAL
if a cluster node is in a network unavailable state. Returns UNKNOWN
if status is unknown. Returns OK
otherwise.
Statuses: ok, unknown, critical
kubernetes_state.cronjob.on_schedule_check
Returns CRITICAL
if a cron job scheduled time is unknown or in the past. Returns OK
otherwise.
Statuses: ok, critical
kubernetes_state.job.complete
Returns CRITICAL
if a job failed. Returns OK
otherwise.
Statuses: ok, critical
kubernetes_state.cronjob.complete
Returns CRITICAL
if the last job of a cronjob failed. Returns OK
otherwise.
Statuses: ok, critical
Since Kubernetes v1.6, the concept of Taints and tolerations was introduced. The master node is no longer off limits, it’s simply tainted. Add the required toleration to the pod to run it.
Add the following lines to your Deployment (or Daemonset if you are running a multi-master setup):
spec:
tolerations:
- key: node-role.kubernetes.io/master
effect: NoSchedule
The Agent assumes the kubelet API is available at the default gateway of the container. If that’s not the case because you are using a software defined networks like Calico or Flannel, the Agent needs to be specified using an environment variable:
- name: KUBERNETES_KUBELET_HOST
valueFrom:
fieldRef:
fieldPath: spec.nodeName
For reference, see this pull request.
These are pause containers (docker_image:gcr.io/google_containers/pause.*
) that K8s injects into every pod to keep it populated even if the “real” container is restarting or stopped.
The docker_daemon check ignores them through a default exclusion list, but they do show up for K8s metrics like kubernetes.cpu.usage.total
and kubernetes.filesystem.usage
.