Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jun 11, 2025. It is now read-only.

Commitc963722

Browse files
committed
update README to reflect the changes regarding containerd
1 parentae4cda9 commitc963722

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

‎README.md‎

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,22 @@ difficult to find the root cause of the issue.
2020

2121
True story; after this was deployed, a recurring OOM-kill in Fluentd was
2222
quickly discovered on one of the nodes. It turns out that the resource limits
23-
were set too low, and this particular node was logging a lot more. Logs were
23+
were set too low to process logs on that node. Logs were
2424
not being forwarded because the Fluentd worker process kept being OOM-kill and
25-
then restarted by the main process. A fix was then deployed 10 minute later.
25+
then restarted by the main process. A fix was then deployed 10 minutes later.
26+
27+
##Supported Container Runtimes
28+
* Docker
29+
* Containerd
30+
31+
Kubernetes 1.20 has deprecated Docker container runtime, so we have added support for Containerd since the version`0.21.0` of`missing-container-metrics`.
32+
Both options should cover most of common use cases (EKS, GKE, K3S, Digital Ocean Kubernetes, ...).
2633

2734
##Deployment
2835

2936
###Kubernetes
3037

31-
The easiest way of installing`missing-container-metrics` in yourk8s cluster is using our[helm chart](https://artifacthub.io/packages/helm/missing-container-metrics/missing-container-metrics).
38+
The easiest way of installing`missing-container-metrics` in yourkubernetes cluster is using our[helm chart](https://artifacthub.io/packages/helm/missing-container-metrics/missing-container-metrics).
3239

3340

3441
###Docker
@@ -39,7 +46,7 @@ $ docker run -d -p 3001:3001 -v /var/run/docker.sock:/var/run/docker.sock dmilhd
3946

4047
##Usage
4148

42-
Exposes metrics about Docker containers from Docker events.
49+
Exposes metrics about Docker/Containerd containers.
4350
Every metric contains following labels:
4451
##Exposed Metrics
4552

@@ -51,8 +58,7 @@ Number of restarts of the container.
5158

5259
###`container_ooms` (counter)
5360

54-
Number of OOM kills for the container. This covers OOM kill of any process in
55-
the container cgroup.
61+
Number of OOM kills for the container. This covers OOM kill of any process in the container cgroup.
5662

5763
###`container_last_exit_code` (gauge)
5864

@@ -62,23 +68,23 @@ Last exit code of the container.
6268

6369
###`docker_container_id`
6470

65-
Full id of theDockercontainer.
71+
Full id of the container.
6672

6773
###`container_short_id`
6874

6975
First 6 bytes of the Docker container id.
7076

7177
###`container_id`
7278

73-
Container id represented in the same format as in metrics ofk8s pods - prefixed with`docker://`. This enables easy joins in Prometheus to kube_pod_container_info metric.
79+
Container id represented in the same format as in metrics ofkubernetes pods - prefixed with`docker://` and`containerd://` depending on the container runtime. This enables easy joins in Prometheus to`kube_pod_container_info` metric.
7480

7581
###`name`
7682

7783
Name of the container.
7884

7985
###`image_id`
8086

81-
Image id represented in the same format as in metrics of k8spods - prefixed with`docker-pullable://`. This enables easy joins in Prometheus to kube_pod_container_info metric.
87+
Image id represented in the same format as in metrics of k8spod. This enables easy joins in Prometheus to`kube_pod_container_info` metric.
8288

8389
###`pod`
8490

@@ -90,9 +96,8 @@ will be set as the `pod` label in the metric
9096
If`io.kubernetes.pod.namespace` label is set on the container, it's value
9197
will be set as the`namespace` label of the metric.
9298

93-
This label, together with`pod` is useful in the context of Kubernetes deployments, to determine namespace/pod to which the container is part of,
94-
instead of having to join with`kube_pod_container_info` metric to determine
95-
those values.
99+
Together with`pod`, this label is useful in the context of Kubernetes deployments, to determine namespace/pod to which the container is part of.
100+
One can see it as a shortcut to joining with the`kube_pod_container_info` metric to determine those values.
96101

97102

98103
##Contributing

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp