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
|`k8s.hpa.metric.target.cpu.value`| Gauge |`{cpu}`| Target value for CPU resource in HPA config. [1]||`k8s.hpa`; `k8s.namespace`|
885
+
886
+
**[1]:** This metric aligns with the `value` field of the
If the type of the metric is [`ContainerResource`](https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#support-for-metrics-apis),
889
+
the `k8s.container.name` attribute MUST be set to identify the specific container within the pod to which the metric applies.
|[`k8s.container.name`](/docs/registry/attributes/k8s.md)| string | The name of the Container from Pod specification, must be unique within a Pod. Container runtime usually uses different globally unique name (`container.name`). |`redis`|`Conditionally Required`[1]||
894
+
|[`k8s.hpa.metric.type`](/docs/registry/attributes/k8s.md)| string | The type of metric source for the horizontal pod autoscaler. [2]|`Resource`; `ContainerResource`|`Recommended`||
895
+
896
+
**[1]`k8s.container.name`:** if and only if k8s.hpa.metric.type is ContainerResource
897
+
898
+
**[2]`k8s.hpa.metric.type`:** This attribute reflects the `type` field of spec.metrics[] in the HPA.
|`k8s.hpa.metric.target.cpu.average_value`| Gauge |`{cpu}`| Target average value for CPU resource in HPA config. [1]||`k8s.hpa`; `k8s.namespace`|
915
+
916
+
**[1]:** This metric aligns with the `averageValue` field of the
If the type of the metric is [`ContainerResource`](https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#support-for-metrics-apis),
919
+
the `k8s.container.name` attribute MUST be set to identify the specific container within the pod to which the metric applies.
|[`k8s.container.name`](/docs/registry/attributes/k8s.md)| string | The name of the Container from Pod specification, must be unique within a Pod. Container runtime usually uses different globally unique name (`container.name`). |`redis`|`Conditionally Required`[1]||
924
+
|[`k8s.hpa.metric.type`](/docs/registry/attributes/k8s.md)| string | The type of metric source for the horizontal pod autoscaler. [2]|`Resource`; `ContainerResource`|`Recommended`||
925
+
926
+
**[1]`k8s.container.name`:** if and only if k8s.hpa.metric.type is ContainerResource
927
+
928
+
**[2]`k8s.hpa.metric.type`:** This attribute reflects the `type` field of spec.metrics[] in the HPA.
|`k8s.hpa.metric.target.cpu.average_utilization`| Gauge |`1`| Target average utilization, in percentage, for CPU resource in HPA config. [1]||`k8s.hpa`; `k8s.namespace`|
945
+
946
+
**[1]:** This metric aligns with the `averageUtilization` field of the
If the type of the metric is [`ContainerResource`](https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#support-for-metrics-apis),
949
+
the `k8s.container.name` attribute MUST be set to identify the specific container within the pod to which the metric applies.
|[`k8s.container.name`](/docs/registry/attributes/k8s.md)| string | The name of the Container from Pod specification, must be unique within a Pod. Container runtime usually uses different globally unique name (`container.name`). |`redis`|`Conditionally Required`[1]||
954
+
|[`k8s.hpa.metric.type`](/docs/registry/attributes/k8s.md)| string | The type of metric source for the horizontal pod autoscaler. [2]|`Resource`; `ContainerResource`|`Recommended`||
955
+
956
+
**[1]`k8s.container.name`:** if and only if k8s.hpa.metric.type is ContainerResource.
957
+
958
+
**[2]`k8s.hpa.metric.type`:** This attribute reflects the `type` field of spec.metrics[] in the HPA.
959
+
960
+
<!-- markdownlint-restore -->
961
+
<!-- prettier-ignore-end -->
962
+
<!-- END AUTOGENERATED TEXT -->
963
+
<!-- endsemconv -->
964
+
875
965
## DaemonSet metrics
876
966
877
967
**Description:** DaemonSet level metrics captured under the namespace `k8s.daemonset`.
This metric SHOULD be reported against a [`k8s.hpa`](../resource/k8s.md#horizontalpodautoscaler)
359
-
resource. If the type of the metric is [`ContainerResource`](https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#support-for-metrics-apis),
357
+
If the type of the metric is [`ContainerResource`](https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#support-for-metrics-apis),
360
358
the `k8s.container.name` attribute MUST be set to identify the specific container within the pod to which the metric applies.
361
359
instrument: gauge
362
360
unit: "{cpu}"
363
361
attributes:
364
-
- ref: k8s.hpa.name
365
-
- ref: k8s.hpa.uid
366
-
- ref: k8s.namespace.name
367
362
- ref: k8s.hpa.metric.type
368
363
- ref: k8s.container.name
369
364
requirement_level:
370
365
conditionally_required: if and only if k8s.hpa.metric.type is ContainerResource
This metric SHOULD be reported against a [`k8s.hpa`](../resource/k8s.md#horizontalpodautoscaler)
381
-
resource. If the type of the metric is [`ContainerResource`](https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#support-for-metrics-apis),
377
+
If the type of the metric is [`ContainerResource`](https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#support-for-metrics-apis),
382
378
the `k8s.container.name` attribute MUST be set to identify the specific container within the pod to which the metric applies.
383
379
instrument: gauge
384
380
unit: "{cpu}"
385
381
attributes:
386
-
- ref: k8s.hpa.name
387
-
- ref: k8s.hpa.uid
388
-
- ref: k8s.namespace.name
389
382
- ref: k8s.hpa.metric.type
390
383
- ref: k8s.container.name
391
384
requirement_level:
392
385
conditionally_required: if and only if k8s.hpa.metric.type is ContainerResource
This metric SHOULD be reported against a [`k8s.hpa`](../resource/k8s.md#horizontalpodautoscaler)
403
-
resource. If the type of the metric is [`ContainerResource`](https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#support-for-metrics-apis),
397
+
If the type of the metric is [`ContainerResource`](https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#support-for-metrics-apis),
404
398
the `k8s.container.name` attribute MUST be set to identify the specific container within the pod to which the metric applies.
405
399
instrument: gauge
406
400
unit: "1"
407
401
attributes:
408
-
- ref: k8s.hpa.name
409
-
- ref: k8s.hpa.uid
410
-
- ref: k8s.namespace.name
411
402
- ref: k8s.hpa.metric.type
412
403
- ref: k8s.container.name
413
404
requirement_level:
414
405
conditionally_required: if and only if k8s.hpa.metric.type is ContainerResource.
0 commit comments