You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[comment]: <>(Code generated by mdatagen. DO NOT EDIT.)
2
+
3
+
# k8s/container
4
+
5
+
## Default Metrics
6
+
7
+
The following metrics are emitted by default. Each of them can be disabled by applying the following configuration:
8
+
9
+
```yaml
10
+
metrics:
11
+
<metric_name>:
12
+
enabled: false
13
+
```
14
+
15
+
### k8s.container.cpu_limit
16
+
17
+
Maximum resource limit set for the container. See https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#resourcerequirements-v1-core for details
18
+
19
+
| Unit | Metric Type | Value Type |
20
+
| ---- | ----------- | ---------- |
21
+
| 1 | Gauge | Double |
22
+
23
+
### k8s.container.cpu_request
24
+
25
+
Resource requested for the container. See https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#resourcerequirements-v1-core for details
26
+
27
+
| Unit | Metric Type | Value Type |
28
+
| ---- | ----------- | ---------- |
29
+
| 1 | Gauge | Double |
30
+
31
+
### k8s.container.ready
32
+
33
+
Whether a container has passed its readiness probe (0 for no, 1 for yes)
34
+
35
+
| Unit | Metric Type | Value Type |
36
+
| ---- | ----------- | ---------- |
37
+
| 1 | Gauge | Int |
38
+
39
+
### k8s.container.restarts
40
+
41
+
How many times the container has restarted in the recent past. This value is pulled directly from the K8s API and the value can go indefinitely high and be reset to 0 at any time depending on how your kubelet is configured to prune dead containers. It is best to not depend too much on the exact value but rather look at it as either == 0, in which case you can conclude there were no restarts in the recent past, or > 0, in which case you can conclude there were restarts in the recent past, and not try and analyze the value beyond that.
42
+
43
+
| Unit | Metric Type | Value Type |
44
+
| ---- | ----------- | ---------- |
45
+
| 1 | Gauge | Int |
46
+
47
+
## Resource Attributes
48
+
49
+
| Name | Description | Values | Enabled |
50
+
| ---- | ----------- | ------ | ------- |
51
+
| container.id | The container id. | Any Str | true |
52
+
| container.image.name | The container image name | Any Str | true |
53
+
| container.image.tag | The container image tag | Any Str | true |
54
+
| k8s.container.name | The k8s container name | Any Str | true |
55
+
| k8s.namespace.name | The k8s namespace name | Any Str | true |
56
+
| k8s.node.name | The k8s node name | Any Str | true |
57
+
| k8s.pod.name | The k8s pod name | Any Str | true |
58
+
| k8s.pod.uid | The k8s pod uid | Any Str | true |
59
+
| opencensus.resourcetype | The OpenCensus resource type. | Any Str | true |
0 commit comments