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
Copy file name to clipboardExpand all lines: receiver/k8sclusterreceiver/README.md
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,9 @@ The following allocatable resource types are available.
60
60
- ephemeral-storage
61
61
- storage
62
62
- pods
63
+
Note that with the introduction of the [receiver.k8scluster.allocatableNamespace.enabled](#receiverk8sclusterallocatablenamespaceenabled) feature gate, the metrics for the allocatable resource types
64
+
(`k8s.node.allocatable.cpu`, `k8s.node.allocatable.ephemeral_storage`, `k8s.node.allocatable.memory`, `k8s.node.allocatable.pods`) are enabled/disabled via the metrics section, and are represented by up/down counters, rather than gauges.
65
+
To activate the feature flag, start the collector with `--feature-gates receiver.k8scluster.allocatableNamespace.enabled`.
63
66
-`metrics`: Allows to enable/disable metrics.
64
67
-`resource_attributes`: Allows to enable/disable resource attributes.
65
68
-`namespace` (deprecated, use `namespaces` instead): Allows to observe resources for a particular namespace only. If this option is set to a non-empty string, `Nodes`, `Namespaces` and `ClusterResourceQuotas` will not be observed.
@@ -446,23 +449,21 @@ Add the following rules to your ClusterRole:
The `k8scluster.allocatableNamespace.enabled` [feature gate](https://github.com/open-telemetry/opentelemetry-collector/blob/main/featuregate/README.md#collector-feature-gates) enables the SemConv valid format of the node allocatable metrics reported by the receiver.
454
+
The `receiver.k8scluster.allocatableNamespace.enabled` [feature gate](https://github.com/open-telemetry/opentelemetry-collector/blob/main/featuregate/README.md#collector-feature-gates) enables the SemConv valid format of the node allocatable metrics reported by the receiver.
452
455
The feature gate is in `alpha` stage, which means it is disabled by default.
453
456
454
-
If enabled the SemConv valid format of the node allocatable metrics are reported (if enabled):
457
+
If enabled the SemConv valid format of the node allocatable metrics are reported (if enabled via the metrics section):
455
458
456
459
- `k8s.node.allocatable.cpu`
457
460
- `k8s.node.allocatable.ephemeral_storage`
458
-
- `k8s.node.allocatable.storage`
459
461
- `k8s.node.allocatable.memory`
460
462
- `k8s.node.allocatable.pods`
461
463
462
-
instead of the original version:
464
+
instead, the old metrics are disabled and not reported (even if `allocatable_types_to_report` config option is set):
0 commit comments