Skip to content

Commit 0b7b34b

Browse files
committed
adapt according to latest semconv
Signed-off-by: odubajDT <[email protected]>
1 parent ab591c0 commit 0b7b34b

File tree

11 files changed

+214
-218
lines changed

11 files changed

+214
-218
lines changed

receiver/k8sclusterreceiver/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ The full list of settings exposed for this receiver are documented in [config.go
8787
with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml).
8888
8989
**Note** that with the introduction of the [semconv.k8s.enableStable](#semconvk8senablestable) feature gate, the metrics for the allocatable resource types
90-
(`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.
90+
(`k8s.node.cpu.allocatable`, `k8s.node.ephemeral_storage.allocatable`, `k8s.node.memory.allocatable`, `k8s.node.pods.allocatable`) are enabled/disabled via the metrics section, and are represented by up/down counters, rather than gauges.
9191
To activate the feature flag, start the collector with `--feature-gates=+semconv.k8s.enableStable`.
9292
To disable the old representation of the allocatable metrics (`k8s.node.allocatable_cpu`, `k8s.node.allocatable_ephemeral_storage`, `k8s.node.allocatable_memory`, `k8s.node.allocatable_pods`) disable the [semconv.k8s.disableLegacy](#semconvk8sdisablelegacy) feature flag with `--feature-gates=-semconv.k8s.disableLegacy`
9393

@@ -460,10 +460,10 @@ The feature gate is in `alpha` stage, which means it is disabled by default.
460460

461461
If enabled, the SemConv valid format of the node allocatable metrics are reported (if enabled via the metrics section):
462462

463-
- `k8s.node.allocatable.cpu`
464-
- `k8s.node.allocatable.ephemeral_storage`
465-
- `k8s.node.allocatable.memory`
466-
- `k8s.node.allocatable.pods`
463+
- `k8s.node.cpu.allocatable`
464+
- `k8s.node.ephemeral_storage.allocatable`
465+
- `k8s.node.memory.allocatable`
466+
- `k8s.node.pods.allocatable`
467467

468468
### `semconv.k8s.disableLegacy`
469469

receiver/k8sclusterreceiver/documentation.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,31 +228,31 @@ The current phase of namespaces (1 for active and 0 for terminating)
228228
| ---- | ----------- | ---------- | --------- |
229229
| | Gauge | Int | development |
230230
231-
### k8s.node.allocatable.cpu
231+
### k8s.node.cpu.allocatable
232232
233233
Amount of cpu allocatable on the node
234234
235235
| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
236236
| ---- | ----------- | ---------- | ----------------------- | --------- |
237237
| {cpu} | Sum | Double | Unspecified | false |
238238
239-
### k8s.node.allocatable.ephemeral_storage
239+
### k8s.node.ephemeral_storage.allocatable
240240
241241
Amount of ephemeral-storage allocatable on the node
242242
243243
| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
244244
| ---- | ----------- | ---------- | ----------------------- | --------- |
245245
| By | Sum | Int | Unspecified | false |
246246
247-
### k8s.node.allocatable.memory
247+
### k8s.node.memory.allocatable
248248
249249
Amount of memory allocatable on the node
250250
251251
| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
252252
| ---- | ----------- | ---------- | ----------------------- | --------- |
253253
| By | Sum | Int | Unspecified | false |
254254
255-
### k8s.node.allocatable.pods
255+
### k8s.node.pods.allocatable
256256
257257
Amount of pods allocatable on the node
258258

receiver/k8sclusterreceiver/internal/metadata/generated_config.go

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

receiver/k8sclusterreceiver/internal/metadata/generated_config_test.go

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)