Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .chloggen/46363-kubeletstats-reaggregation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Use this changelog template to create an entry for release notes.

# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: enhancement

# The name of the component, or a single word describing the area of concern (e.g. receiver/filelog)
component: receiver/kubeletstats

# A brief description of the change.
note: Enable re-aggregation support for kubeletstatsreceiver by adding metadata reaggregation configuration and attribute level classifications.

# Mandatory: One or more tracking issues related to the change.
issues: [46363]

# (Optional) Additional information for release notes.
# Not required for this change.
# subtext: |

# Optional: Which changelog(s) this entry should appear in.
# Include 'user' for user-facing changes.
# Include 'api' for library/API changes.
change_logs: [user]
8 changes: 4 additions & 4 deletions receiver/kubeletstatsreceiver/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ func TestLoadConfig(t *testing.T) {
},
MetricsBuilderConfig: metadata.MetricsBuilderConfig{
Metrics: metadata.MetricsConfig{
K8sContainerCPUNodeUtilization: metadata.MetricConfig{
K8sContainerCPUNodeUtilization: metadata.K8sContainerCPUNodeUtilizationMetricConfig{
Enabled: true,
},
},
Expand Down Expand Up @@ -221,7 +221,7 @@ func TestLoadConfig(t *testing.T) {
},
MetricsBuilderConfig: metadata.MetricsBuilderConfig{
Metrics: metadata.MetricsConfig{
K8sPodCPUNodeUtilization: metadata.MetricConfig{
K8sPodCPUNodeUtilization: metadata.K8sPodCPUNodeUtilizationMetricConfig{
Enabled: true,
},
},
Expand Down Expand Up @@ -249,7 +249,7 @@ func TestLoadConfig(t *testing.T) {
},
MetricsBuilderConfig: metadata.MetricsBuilderConfig{
Metrics: metadata.MetricsConfig{
K8sContainerMemoryNodeUtilization: metadata.MetricConfig{
K8sContainerMemoryNodeUtilization: metadata.K8sContainerMemoryNodeUtilizationMetricConfig{
Enabled: true,
},
},
Expand Down Expand Up @@ -277,7 +277,7 @@ func TestLoadConfig(t *testing.T) {
},
MetricsBuilderConfig: metadata.MetricsBuilderConfig{
Metrics: metadata.MetricsConfig{
K8sPodMemoryNodeUtilization: metadata.MetricConfig{
K8sPodMemoryNodeUtilization: metadata.K8sPodMemoryNodeUtilizationMetricConfig{
Enabled: true,
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,13 +214,49 @@ $defs:
enabled:
type: boolean
default: true
aggregation_strategy:
type: string
enum:
- "sum"
- "avg"
- "min"
- "max"
default: "sum"
attributes:
type: array
items:
type: string
enum:
- "interface"
- "direction"
default:
- "interface"
- "direction"
k8s.node.network.io:
description: "K8sNodeNetworkIoMetricConfig provides config for the k8s.node.network.io metric."
type: object
properties:
enabled:
type: boolean
default: true
aggregation_strategy:
type: string
enum:
- "sum"
- "avg"
- "min"
- "max"
default: "sum"
attributes:
type: array
items:
type: string
enum:
- "interface"
- "direction"
default:
- "interface"
- "direction"
k8s.node.uptime:
description: "K8sNodeUptimeMetricConfig provides config for the k8s.node.uptime metric."
type: object
Expand Down Expand Up @@ -354,13 +390,49 @@ $defs:
enabled:
type: boolean
default: true
aggregation_strategy:
type: string
enum:
- "sum"
- "avg"
- "min"
- "max"
default: "sum"
attributes:
type: array
items:
type: string
enum:
- "interface"
- "direction"
default:
- "interface"
- "direction"
k8s.pod.network.io:
description: "K8sPodNetworkIoMetricConfig provides config for the k8s.pod.network.io metric."
type: object
properties:
enabled:
type: boolean
default: true
aggregation_strategy:
type: string
enum:
- "sum"
- "avg"
- "min"
- "max"
default: "sum"
attributes:
type: array
items:
type: string
enum:
- "interface"
- "direction"
default:
- "interface"
- "direction"
k8s.pod.uptime:
description: "K8sPodUptimeMetricConfig provides config for the k8s.pod.uptime metric."
type: object
Expand Down
Loading
Loading