diff --git a/receiver/kubeletstatsreceiver/scraper_test.go b/receiver/kubeletstatsreceiver/scraper_test.go index c991bd109a5c..13d286505300 100644 --- a/receiver/kubeletstatsreceiver/scraper_test.go +++ b/receiver/kubeletstatsreceiver/scraper_test.go @@ -7,18 +7,18 @@ import ( "context" "errors" "os" - "strings" + "path/filepath" "testing" - "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "go.opentelemetry.io/collector/pdata/pcommon" "go.opentelemetry.io/collector/receiver/receivertest" "go.uber.org/zap" "go.uber.org/zap/zaptest/observer" "k8s.io/client-go/kubernetes" "k8s.io/client-go/kubernetes/fake" + "github.com/open-telemetry/opentelemetry-collector-contrib/pkg/golden" + "github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest/pmetrictest" "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/kubeletstatsreceiver/internal/kubelet" "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/kubeletstatsreceiver/internal/metadata" ) @@ -61,6 +61,19 @@ func TestScraper(t *testing.T) { md, err := r.Scrape(context.Background()) require.NoError(t, err) require.Equal(t, dataLen, md.DataPointCount()) + expectedFile := filepath.Join("testdata", "scraper", "test_scraper_expected.yaml") + + // Uncomment to regenerate '*_expected.yaml' files + // golden.WriteMetrics(t, expectedFile, md) + + expectedMetrics, err := golden.ReadMetrics(expectedFile) + require.NoError(t, err) + require.NoError(t, pmetrictest.CompareMetrics(expectedMetrics, md, + pmetrictest.IgnoreStartTimestamp(), + pmetrictest.IgnoreResourceMetricsOrder(), + pmetrictest.IgnoreMetricDataPointsOrder(), + pmetrictest.IgnoreTimestamp(), + pmetrictest.IgnoreMetricsOrder())) } func TestScraperWithMetadata(t *testing.T) { @@ -73,7 +86,7 @@ func TestScraperWithMetadata(t *testing.T) { requiredLabel string }{ { - name: "Container Metadata", + name: "Container_Metadata", metadataLabels: []kubelet.MetadataLabel{kubelet.MetadataLabelContainerID}, metricGroups: map[kubelet.MetricGroup]bool{ kubelet.ContainerMetricGroup: true, @@ -83,7 +96,7 @@ func TestScraperWithMetadata(t *testing.T) { requiredLabel: "container.id", }, { - name: "Volume Metadata", + name: "Volume_Metadata", metadataLabels: []kubelet.MetadataLabel{kubelet.MetadataLabelVolumeType}, metricGroups: map[kubelet.MetricGroup]bool{ kubelet.VolumeMetricGroup: true, @@ -110,23 +123,22 @@ func TestScraperWithMetadata(t *testing.T) { md, err := r.Scrape(context.Background()) require.NoError(t, err) - require.Equal(t, tt.dataLen, md.DataPointCount()) - - for i := 0; i < md.ResourceMetrics().Len(); i++ { - rm := md.ResourceMetrics().At(i) - for j := 0; j < rm.ScopeMetrics().Len(); j++ { - ilm := rm.ScopeMetrics().At(j) - require.Equal(t, "otelcol/kubeletstatsreceiver", ilm.Scope().Name()) - for k := 0; k < ilm.Metrics().Len(); k++ { - m := ilm.Metrics().At(k) - if strings.HasPrefix(m.Name(), tt.metricPrefix) { - _, ok := rm.Resource().Attributes().Get(tt.requiredLabel) - require.True(t, ok) - continue - } - } - } - } + + filename := "test_scraper_with_metadata_" + tt.name + "_expected.yaml" + expectedFile := filepath.Join("testdata", "scraper", filename) + + // Uncomment to regenerate '*_expected.yaml' files + // golden.WriteMetrics(t, expectedFile, md) + + expectedMetrics, err := golden.ReadMetrics(expectedFile) + require.NoError(t, err) + require.NoError(t, pmetrictest.CompareMetrics(expectedMetrics, md, + pmetrictest.IgnoreStartTimestamp(), + pmetrictest.IgnoreResourceMetricsOrder(), + pmetrictest.IgnoreMetricDataPointsOrder(), + pmetrictest.IgnoreTimestamp(), + pmetrictest.IgnoreMetricsOrder())) + }) } } @@ -303,44 +315,19 @@ func TestScraperWithPercentMetrics(t *testing.T) { md, err := r.Scrape(context.Background()) require.NoError(t, err) - require.Equal(t, 8, md.DataPointCount()) - - currentMetric := md.ResourceMetrics().At(0).ScopeMetrics().At(0).Metrics().At(0) - assert.Equal(t, "k8s.pod.cpu_limit_utilization", currentMetric.Name()) - assert.True(t, currentMetric.Gauge().DataPoints().At(0).DoubleValue() <= 1) - assert.True(t, currentMetric.Gauge().DataPoints().At(0).DoubleValue() >= 0) - - currentMetric = md.ResourceMetrics().At(0).ScopeMetrics().At(0).Metrics().At(1) - assert.Equal(t, "k8s.pod.cpu_request_utilization", currentMetric.Name()) - assert.True(t, currentMetric.Gauge().DataPoints().At(0).DoubleValue() > 1) - - currentMetric = md.ResourceMetrics().At(0).ScopeMetrics().At(0).Metrics().At(2) - assert.Equal(t, "k8s.pod.memory_limit_utilization", currentMetric.Name()) - assert.True(t, currentMetric.Gauge().DataPoints().At(0).DoubleValue() <= 1) - assert.True(t, currentMetric.Gauge().DataPoints().At(0).DoubleValue() >= 0) - - currentMetric = md.ResourceMetrics().At(0).ScopeMetrics().At(0).Metrics().At(3) - assert.Equal(t, "k8s.pod.memory_request_utilization", currentMetric.Name()) - assert.True(t, currentMetric.Gauge().DataPoints().At(0).DoubleValue() > 1) - - currentMetric = md.ResourceMetrics().At(1).ScopeMetrics().At(0).Metrics().At(0) - assert.Equal(t, "k8s.container.cpu_limit_utilization", currentMetric.Name()) - assert.True(t, currentMetric.Gauge().DataPoints().At(0).DoubleValue() <= 1) - assert.True(t, currentMetric.Gauge().DataPoints().At(0).DoubleValue() >= 0) - - currentMetric = md.ResourceMetrics().At(1).ScopeMetrics().At(0).Metrics().At(1) - assert.Equal(t, "k8s.container.cpu_request_utilization", currentMetric.Name()) - assert.True(t, currentMetric.Gauge().DataPoints().At(0).DoubleValue() > 1) - currentMetric = md.ResourceMetrics().At(1).ScopeMetrics().At(0).Metrics().At(2) - assert.Equal(t, "k8s.container.memory_limit_utilization", currentMetric.Name()) - assert.True(t, currentMetric.Gauge().DataPoints().At(0).DoubleValue() <= 1) - assert.True(t, currentMetric.Gauge().DataPoints().At(0).DoubleValue() >= 0) + expectedFile := filepath.Join("testdata", "scraper", "test_scraper_with_percent_expected.yaml") - currentMetric = md.ResourceMetrics().At(1).ScopeMetrics().At(0).Metrics().At(3) - assert.Equal(t, "k8s.container.memory_request_utilization", currentMetric.Name()) - assert.True(t, currentMetric.Gauge().DataPoints().At(0).DoubleValue() > 1) + // Uncomment to regenerate '*_expected.yaml' files + // golden.WriteMetrics(t, expectedFile, md) + expectedMetrics, err := golden.ReadMetrics(expectedFile) + require.NoError(t, err) + require.NoError(t, pmetrictest.CompareMetrics(expectedMetrics, md, + pmetrictest.IgnoreStartTimestamp(), + pmetrictest.IgnoreMetricDataPointsOrder(), + pmetrictest.IgnoreTimestamp(), + pmetrictest.IgnoreMetricsOrder())) } func TestScraperWithMetricGroups(t *testing.T) { @@ -350,40 +337,40 @@ func TestScraperWithMetricGroups(t *testing.T) { dataLen int }{ { - name: "all groups", + name: "all_groups", metricGroups: allMetricGroups, dataLen: dataLen, }, { - name: "only container group", + name: "only_container_group", metricGroups: map[kubelet.MetricGroup]bool{ kubelet.ContainerMetricGroup: true, }, dataLen: numContainers * containerMetrics, }, { - name: "only pod group", + name: "only_pod_group", metricGroups: map[kubelet.MetricGroup]bool{ kubelet.PodMetricGroup: true, }, dataLen: numPods * podMetrics, }, { - name: "only node group", + name: "only_node_group", metricGroups: map[kubelet.MetricGroup]bool{ kubelet.NodeMetricGroup: true, }, dataLen: numNodes * nodeMetrics, }, { - name: "only volume group", + name: "only_volume_group", metricGroups: map[kubelet.MetricGroup]bool{ kubelet.VolumeMetricGroup: true, }, dataLen: numVolumes * volumeMetrics, }, { - name: "pod and node groups", + name: "pod_and_node_groups", metricGroups: map[kubelet.MetricGroup]bool{ kubelet.PodMetricGroup: true, kubelet.NodeMetricGroup: true, @@ -406,7 +393,21 @@ func TestScraperWithMetricGroups(t *testing.T) { md, err := r.Scrape(context.Background()) require.NoError(t, err) - require.Equal(t, test.dataLen, md.DataPointCount()) + + filename := "test_scraper_with_metric_groups_" + test.name + "_expected.yaml" + expectedFile := filepath.Join("testdata", "scraper", filename) + + // Uncomment to regenerate '*_expected.yaml' files + // golden.WriteMetrics(t, expectedFile, md) + + expectedMetrics, err := golden.ReadMetrics(expectedFile) + require.NoError(t, err) + require.NoError(t, pmetrictest.CompareMetrics(expectedMetrics, md, + pmetrictest.IgnoreStartTimestamp(), + pmetrictest.IgnoreResourceMetricsOrder(), + pmetrictest.IgnoreMetricDataPointsOrder(), + pmetrictest.IgnoreTimestamp(), + pmetrictest.IgnoreMetricsOrder())) }) } } @@ -460,7 +461,7 @@ func TestScraperWithPVCDetailedLabels(t *testing.T) { dataLen: numVolumes, }, { - name: "pvc doesn't exist", + name: "pvc_doesnot_exist", k8sAPIClient: fake.NewSimpleClientset(), dataLen: numVolumes - 3, volumeClaimsToMiss: map[string]bool{ @@ -471,7 +472,7 @@ func TestScraperWithPVCDetailedLabels(t *testing.T) { numLogs: 3, }, { - name: "empty volume name in pvc", + name: "empty_volume_name_in_pvc", k8sAPIClient: fake.NewSimpleClientset(getMockedObjectsWithEmptyVolumeName()...), expectedVolumes: map[string]expectedVolume{ "volume_claim_1": { @@ -502,7 +503,7 @@ func TestScraperWithPVCDetailedLabels(t *testing.T) { numLogs: 1, }, { - name: "non existent volume in pvc", + name: "non_existent_volume_in_pvc", k8sAPIClient: fake.NewSimpleClientset(getMockedObjectsWithNonExistentVolumeName()...), expectedVolumes: map[string]expectedVolume{ "volume_claim_1": { @@ -533,7 +534,7 @@ func TestScraperWithPVCDetailedLabels(t *testing.T) { numLogs: 1, }, { - name: "don't collect detailed labels", + name: "do_not_collect_detailed_labels", dataLen: numVolumes, }, } @@ -556,52 +557,23 @@ func TestScraperWithPVCDetailedLabels(t *testing.T) { md, err := r.Scrape(context.Background()) require.NoError(t, err) - require.Equal(t, test.dataLen*volumeMetrics, md.DataPointCount()) - - // If Kubernetes API is set, assert additional labels as well. - if test.k8sAPIClient != nil && len(test.expectedVolumes) > 0 { - rms := md.ResourceMetrics() - for i := 0; i < rms.Len(); i++ { - resource := rms.At(i).Resource() - claimName, ok := resource.Attributes().Get("k8s.persistentvolumeclaim.name") - // claimName will be non empty only when PVCs are used, all test cases - // in this method are interested only in such cases. - if !ok { - continue - } - - ev := test.expectedVolumes[claimName.Str()] - requireExpectedVolume(t, ev, resource) - - // Assert metrics from certain volume claims expected to be missed - // are not collected. - if test.volumeClaimsToMiss != nil { - for c := range test.volumeClaimsToMiss { - val, ok := resource.Attributes().Get("k8s.persistentvolumeclaim.name") - require.True(t, !ok || val.Str() != c) - } - } - } - } - }) - } -} - -func requireExpectedVolume(t *testing.T, ev expectedVolume, resource pcommon.Resource) { - require.NotNil(t, ev) - requireAttribute(t, resource.Attributes(), "k8s.volume.name", ev.name) - requireAttribute(t, resource.Attributes(), "k8s.volume.type", ev.typ) - for k, v := range ev.labels { - requireAttribute(t, resource.Attributes(), k, v) - } -} + filename := "test_scraper_with_pvc_labels_" + test.name + "_expected.yaml" + expectedFile := filepath.Join("testdata", "scraper", filename) -func requireAttribute(t *testing.T, attr pcommon.Map, key string, value string) { - val, ok := attr.Get(key) - require.True(t, ok) - require.Equal(t, value, val.Str()) + // Uncomment to regenerate '*_expected.yaml' files + // golden.WriteMetrics(t, expectedFile, md) + expectedMetrics, err := golden.ReadMetrics(expectedFile) + require.NoError(t, err) + require.NoError(t, pmetrictest.CompareMetrics(expectedMetrics, md, + pmetrictest.IgnoreStartTimestamp(), + pmetrictest.IgnoreResourceMetricsOrder(), + pmetrictest.IgnoreMetricDataPointsOrder(), + pmetrictest.IgnoreTimestamp(), + pmetrictest.IgnoreMetricsOrder())) + }) + } } func TestClientErrors(t *testing.T) { diff --git a/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_expected.yaml b/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_expected.yaml new file mode 100644 index 000000000000..7f9704a8d22e --- /dev/null +++ b/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_expected.yaml @@ -0,0 +1,3048 @@ +resourceMetrics: + - resource: + attributes: + - key: k8s.node.name + value: + stringValue: minikube + scopeMetrics: + - metrics: + - description: Node CPU time + name: k8s.node.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 263.475389988 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Node CPU utilization + gauge: + dataPoints: + - asDouble: 0.165737329 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.node.cpu.utilization + unit: "1" + - description: Node filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.node.filesystem.available + unit: By + - description: Node filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.node.filesystem.capacity + unit: By + - description: Node filesystem usage + gauge: + dataPoints: + - asInt: "2626973696" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.node.filesystem.usage + unit: By + - description: Node memory available + gauge: + dataPoints: + - asInt: "2620624896" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.node.memory.available + unit: By + - description: Node memory major_page_faults + gauge: + dataPoints: + - asInt: "12" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.node.memory.major_page_faults + unit: "1" + - description: Node memory page_faults + gauge: + dataPoints: + - asInt: "12345" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.node.memory.page_faults + unit: "1" + - description: Node memory rss + gauge: + dataPoints: + - asInt: "607125504" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.node.memory.rss + unit: By + - description: Node memory usage + gauge: + dataPoints: + - asInt: "3608727552" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.node.memory.usage + unit: By + - description: Node memory working_set + gauge: + dataPoints: + - asInt: "1234567890" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.node.memory.working_set + unit: By + - description: Node network errors + name: k8s.node.network.errors + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "0" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: "1" + - description: Node network IO + name: k8s.node.network.io + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "948305524" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "12542266" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: default + - key: k8s.pod.name + value: + stringValue: go-hello-world-5456b4b8cd-99vxc + - key: k8s.pod.uid + value: + stringValue: 42ad382b-ed0b-446d-9aab-3fdce8b4f9e2 + scopeMetrics: + - metrics: + - description: Pod CPU time + name: k8s.pod.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 0.300122579 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Pod CPU utilization + gauge: + dataPoints: + - asDouble: 0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.cpu.utilization + unit: "1" + - description: Pod filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.available + unit: By + - description: Pod filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.capacity + unit: By + - description: Pod filesystem usage + gauge: + dataPoints: + - asInt: "135168" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.usage + unit: By + - description: Pod memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.available + unit: By + - description: Pod memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.major_page_faults + unit: "1" + - description: Pod memory page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.page_faults + unit: "1" + - description: Pod memory rss + gauge: + dataPoints: + - asInt: "23523328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.rss + unit: By + - description: Pod memory usage + gauge: + dataPoints: + - asInt: "25726976" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.usage + unit: By + - description: Pod memory working_set + gauge: + dataPoints: + - asInt: "25722880" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.working_set + unit: By + - description: Pod network errors + name: k8s.pod.network.errors + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "0" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: "1" + - description: Pod network IO + name: k8s.pod.network.io + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "0" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-58qvv + - key: k8s.pod.uid + value: + stringValue: eb632b33-62c6-4a80-9575-a97ab363ad7f + scopeMetrics: + - metrics: + - description: Pod CPU time + name: k8s.pod.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 3.69769445 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Pod CPU utilization + gauge: + dataPoints: + - asDouble: 0.003494461 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.cpu.utilization + unit: "1" + - description: Pod filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.available + unit: By + - description: Pod filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.capacity + unit: By + - description: Pod filesystem usage + gauge: + dataPoints: + - asInt: "73728" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.usage + unit: By + - description: Pod memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.available + unit: By + - description: Pod memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.major_page_faults + unit: "1" + - description: Pod memory page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.page_faults + unit: "1" + - description: Pod memory rss + gauge: + dataPoints: + - asInt: "6832128" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.rss + unit: By + - description: Pod memory usage + gauge: + dataPoints: + - asInt: "8372224" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.usage + unit: By + - description: Pod memory working_set + gauge: + dataPoints: + - asInt: "6668288" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.working_set + unit: By + - description: Pod network errors + name: k8s.pod.network.errors + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "0" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: "1" + - description: Pod network IO + name: k8s.pod.network.io + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "606529" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "121854" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-szddj + - key: k8s.pod.uid + value: + stringValue: 0adffe8e-9849-4e05-b4cd-92d2d1e1f1c3 + scopeMetrics: + - metrics: + - description: Pod CPU time + name: k8s.pod.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 2.771541709 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Pod CPU utilization + gauge: + dataPoints: + - asDouble: 0.003430175 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.cpu.utilization + unit: "1" + - description: Pod filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.available + unit: By + - description: Pod filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.capacity + unit: By + - description: Pod filesystem usage + gauge: + dataPoints: + - asInt: "73728" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.usage + unit: By + - description: Pod memory available + gauge: + dataPoints: + - asInt: "171323392" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.available + unit: By + - description: Pod memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.major_page_faults + unit: "1" + - description: Pod memory page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.page_faults + unit: "1" + - description: Pod memory rss + gauge: + dataPoints: + - asInt: "6807552" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.rss + unit: By + - description: Pod memory usage + gauge: + dataPoints: + - asInt: "8626176" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.usage + unit: By + - description: Pod memory working_set + gauge: + dataPoints: + - asInt: "6934528" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.working_set + unit: By + - description: Pod network errors + name: k8s.pod.network.errors + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "0" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: "1" + - description: Pod network IO + name: k8s.pod.network.io + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "606880" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "120484" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: etcd-minikube + - key: k8s.pod.uid + value: + stringValue: 5a5fbd34cfb43ee7bee976798370c910 + scopeMetrics: + - metrics: + - description: Pod CPU time + name: k8s.pod.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 20.099753934 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Pod CPU utilization + gauge: + dataPoints: + - asDouble: 0.019806671 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.cpu.utilization + unit: "1" + - description: Pod filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.available + unit: By + - description: Pod filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.capacity + unit: By + - description: Pod filesystem usage + gauge: + dataPoints: + - asInt: "69632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.usage + unit: By + - description: Pod memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.available + unit: By + - description: Pod memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.major_page_faults + unit: "1" + - description: Pod memory page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.page_faults + unit: "1" + - description: Pod memory rss + gauge: + dataPoints: + - asInt: "31907840" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.rss + unit: By + - description: Pod memory usage + gauge: + dataPoints: + - asInt: "38768640" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.usage + unit: By + - description: Pod memory working_set + gauge: + dataPoints: + - asInt: "33984512" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.working_set + unit: By + - description: Pod network errors + name: k8s.pod.network.errors + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "0" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: "1" + - description: Pod network IO + name: k8s.pod.network.io + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "948305524" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "12542266" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-apiserver-minikube + - key: k8s.pod.uid + value: + stringValue: 3bef16d65fa74d46458df57d8f6f59af + scopeMetrics: + - metrics: + - description: Pod CPU time + name: k8s.pod.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 46.096711585 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Pod CPU utilization + gauge: + dataPoints: + - asDouble: 0.046223592 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.cpu.utilization + unit: "1" + - description: Pod filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.available + unit: By + - description: Pod filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.capacity + unit: By + - description: Pod filesystem usage + gauge: + dataPoints: + - asInt: "126976" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.usage + unit: By + - description: Pod memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.available + unit: By + - description: Pod memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.major_page_faults + unit: "1" + - description: Pod memory page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.page_faults + unit: "1" + - description: Pod memory rss + gauge: + dataPoints: + - asInt: "266645504" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.rss + unit: By + - description: Pod memory usage + gauge: + dataPoints: + - asInt: "269459456" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.usage + unit: By + - description: Pod memory working_set + gauge: + dataPoints: + - asInt: "243908608" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.working_set + unit: By + - description: Pod network errors + name: k8s.pod.network.errors + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "0" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: "1" + - description: Pod network IO + name: k8s.pod.network.io + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "948305362" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "12542068" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-controller-manager-minikube + - key: k8s.pod.uid + value: + stringValue: 3016593d20758bbfe68aba26604a8e3d + scopeMetrics: + - metrics: + - description: Pod CPU time + name: k8s.pod.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 16.84088936 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Pod CPU utilization + gauge: + dataPoints: + - asDouble: 0.018113404 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.cpu.utilization + unit: "1" + - description: Pod filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.available + unit: By + - description: Pod filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.capacity + unit: By + - description: Pod filesystem usage + gauge: + dataPoints: + - asInt: "143360" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.usage + unit: By + - description: Pod memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.available + unit: By + - description: Pod memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.major_page_faults + unit: "1" + - description: Pod memory page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.page_faults + unit: "1" + - description: Pod memory rss + gauge: + dataPoints: + - asInt: "36741120" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.rss + unit: By + - description: Pod memory usage + gauge: + dataPoints: + - asInt: "38703104" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.usage + unit: By + - description: Pod memory working_set + gauge: + dataPoints: + - asInt: "37675008" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.working_set + unit: By + - description: Pod network errors + name: k8s.pod.network.errors + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "0" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: "1" + - description: Pod network IO + name: k8s.pod.network.io + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "948297240" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "12510148" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-proxy-v48tf + - key: k8s.pod.uid + value: + stringValue: 0a6d6b05-0e8d-4920-8a38-926a33164d45 + scopeMetrics: + - metrics: + - description: Pod CPU time + name: k8s.pod.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 1.067441804 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Pod CPU utilization + gauge: + dataPoints: + - asDouble: 0.000276428 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.cpu.utilization + unit: "1" + - description: Pod filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.available + unit: By + - description: Pod filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.capacity + unit: By + - description: Pod filesystem usage + gauge: + dataPoints: + - asInt: "139264" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.usage + unit: By + - description: Pod memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.available + unit: By + - description: Pod memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.major_page_faults + unit: "1" + - description: Pod memory page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.page_faults + unit: "1" + - description: Pod memory rss + gauge: + dataPoints: + - asInt: "8081408" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.rss + unit: By + - description: Pod memory usage + gauge: + dataPoints: + - asInt: "10280960" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.usage + unit: By + - description: Pod memory working_set + gauge: + dataPoints: + - asInt: "9302016" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.working_set + unit: By + - description: Pod network errors + name: k8s.pod.network.errors + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "0" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: "1" + - description: Pod network IO + name: k8s.pod.network.io + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "948297282" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "12510214" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-scheduler-minikube + - key: k8s.pod.uid + value: + stringValue: 5795d0c442cb997ff93c49feeb9f6386 + scopeMetrics: + - metrics: + - description: Pod CPU time + name: k8s.pod.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 4.553997785 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Pod CPU utilization + gauge: + dataPoints: + - asDouble: 0.003620103 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.cpu.utilization + unit: "1" + - description: Pod filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.available + unit: By + - description: Pod filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.capacity + unit: By + - description: Pod filesystem usage + gauge: + dataPoints: + - asInt: "49152" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.usage + unit: By + - description: Pod memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.available + unit: By + - description: Pod memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.major_page_faults + unit: "1" + - description: Pod memory page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.page_faults + unit: "1" + - description: Pod memory rss + gauge: + dataPoints: + - asInt: "12660736" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.rss + unit: By + - description: Pod memory usage + gauge: + dataPoints: + - asInt: "14290944" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.usage + unit: By + - description: Pod memory working_set + gauge: + dataPoints: + - asInt: "12230656" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.working_set + unit: By + - description: Pod network errors + name: k8s.pod.network.errors + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "0" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: "1" + - description: Pod network IO + name: k8s.pod.network.io + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "948305362" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "12542068" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: storage-provisioner + - key: k8s.pod.uid + value: + stringValue: 14bf95e0-9451-4192-b111-807b03163670 + scopeMetrics: + - metrics: + - description: Pod CPU time + name: k8s.pod.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 1.215412064 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Pod CPU utilization + gauge: + dataPoints: + - asDouble: 0.000378421 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.cpu.utilization + unit: "1" + - description: Pod filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.available + unit: By + - description: Pod filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.capacity + unit: By + - description: Pod filesystem usage + gauge: + dataPoints: + - asInt: "53248" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.usage + unit: By + - description: Pod memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.available + unit: By + - description: Pod memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.major_page_faults + unit: "1" + - description: Pod memory page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.page_faults + unit: "1" + - description: Pod memory rss + gauge: + dataPoints: + - asInt: "12865536" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.rss + unit: By + - description: Pod memory usage + gauge: + dataPoints: + - asInt: "14356480" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.usage + unit: By + - description: Pod memory working_set + gauge: + dataPoints: + - asInt: "14356480" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.working_set + unit: By + - description: Pod network errors + name: k8s.pod.network.errors + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "0" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: "1" + - description: Pod network IO + name: k8s.pod.network.io + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "948297282" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "12510214" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.container.name + value: + stringValue: coredns + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-58qvv + - key: k8s.pod.uid + value: + stringValue: eb632b33-62c6-4a80-9575-a97ab363ad7f + scopeMetrics: + - metrics: + - description: Container CPU time + name: container.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 3.662885116 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Container CPU utilization + gauge: + dataPoints: + - asDouble: 0.004558032 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.cpu.utilization + unit: "1" + - description: Container filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.available + unit: By + - description: Container filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.capacity + unit: By + - description: Container filesystem usage + gauge: + dataPoints: + - asInt: "32768" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.usage + unit: By + - description: Container memory available + gauge: + dataPoints: + - asInt: "171999232" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.available + unit: By + - description: Container memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.major_page_faults + unit: "1" + - description: Container memory page_faults + gauge: + dataPoints: + - asInt: "5445" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.page_faults + unit: "1" + - description: Container memory rss + gauge: + dataPoints: + - asInt: "6828032" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.rss + unit: By + - description: Container memory usage + gauge: + dataPoints: + - asInt: "7962624" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.usage + unit: By + - description: Container memory working_set + gauge: + dataPoints: + - asInt: "6258688" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.working_set + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.container.name + value: + stringValue: coredns + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-szddj + - key: k8s.pod.uid + value: + stringValue: 0adffe8e-9849-4e05-b4cd-92d2d1e1f1c3 + scopeMetrics: + - metrics: + - description: Container CPU time + name: container.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 2.727333643 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Container CPU utilization + gauge: + dataPoints: + - asDouble: 0.003508506 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.cpu.utilization + unit: "1" + - description: Container filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.available + unit: By + - description: Container filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.capacity + unit: By + - description: Container filesystem usage + gauge: + dataPoints: + - asInt: "32768" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.usage + unit: By + - description: Container memory available + gauge: + dataPoints: + - asInt: "172007424" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.available + unit: By + - description: Container memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.major_page_faults + unit: "1" + - description: Container memory page_faults + gauge: + dataPoints: + - asInt: "5445" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.page_faults + unit: "1" + - description: Container memory rss + gauge: + dataPoints: + - asInt: "6807552" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.rss + unit: By + - description: Container memory usage + gauge: + dataPoints: + - asInt: "7942144" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.usage + unit: By + - description: Container memory working_set + gauge: + dataPoints: + - asInt: "6250496" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.working_set + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.container.name + value: + stringValue: etcd + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: etcd-minikube + - key: k8s.pod.uid + value: + stringValue: 5a5fbd34cfb43ee7bee976798370c910 + scopeMetrics: + - metrics: + - description: Container CPU time + name: container.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 20.061348607 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Container CPU utilization + gauge: + dataPoints: + - asDouble: 0.019865291 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.cpu.utilization + unit: "1" + - description: Container filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.available + unit: By + - description: Container filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.capacity + unit: By + - description: Container filesystem usage + gauge: + dataPoints: + - asInt: "32768" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.usage + unit: By + - description: Container memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.available + unit: By + - description: Container memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.major_page_faults + unit: "1" + - description: Container memory page_faults + gauge: + dataPoints: + - asInt: "11088" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.page_faults + unit: "1" + - description: Container memory rss + gauge: + dataPoints: + - asInt: "31907840" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.rss + unit: By + - description: Container memory usage + gauge: + dataPoints: + - asInt: "38199296" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.usage + unit: By + - description: Container memory working_set + gauge: + dataPoints: + - asInt: "33415168" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.working_set + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.container.name + value: + stringValue: kube-apiserver + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-apiserver-minikube + - key: k8s.pod.uid + value: + stringValue: 3bef16d65fa74d46458df57d8f6f59af + scopeMetrics: + - metrics: + - description: Container CPU time + name: container.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 45.900186687 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Container CPU utilization + gauge: + dataPoints: + - asDouble: 0.046144879 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.cpu.utilization + unit: "1" + - description: Container filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.available + unit: By + - description: Container filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.capacity + unit: By + - description: Container filesystem usage + gauge: + dataPoints: + - asInt: "53248" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.usage + unit: By + - description: Container memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.available + unit: By + - description: Container memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.major_page_faults + unit: "1" + - description: Container memory page_faults + gauge: + dataPoints: + - asInt: "78969" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.page_faults + unit: "1" + - description: Container memory rss + gauge: + dataPoints: + - asInt: "266645504" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.rss + unit: By + - description: Container memory usage + gauge: + dataPoints: + - asInt: "268869632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.usage + unit: By + - description: Container memory working_set + gauge: + dataPoints: + - asInt: "243318784" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.working_set + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.container.name + value: + stringValue: kube-controller-manager + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-controller-manager-minikube + - key: k8s.pod.uid + value: + stringValue: 3016593d20758bbfe68aba26604a8e3d + scopeMetrics: + - metrics: + - description: Container CPU time + name: container.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 16.885222421 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Container CPU utilization + gauge: + dataPoints: + - asDouble: 0.018247146 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.cpu.utilization + unit: "1" + - description: Container filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.available + unit: By + - description: Container filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.capacity + unit: By + - description: Container filesystem usage + gauge: + dataPoints: + - asInt: "77824" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.usage + unit: By + - description: Container memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.available + unit: By + - description: Container memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.major_page_faults + unit: "1" + - description: Container memory page_faults + gauge: + dataPoints: + - asInt: "14751" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.page_faults + unit: "1" + - description: Container memory rss + gauge: + dataPoints: + - asInt: "36741120" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.rss + unit: By + - description: Container memory usage + gauge: + dataPoints: + - asInt: "38068224" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.usage + unit: By + - description: Container memory working_set + gauge: + dataPoints: + - asInt: "37040128" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.working_set + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.container.name + value: + stringValue: kube-proxy + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-proxy-v48tf + - key: k8s.pod.uid + value: + stringValue: 0a6d6b05-0e8d-4920-8a38-926a33164d45 + scopeMetrics: + - metrics: + - description: Container CPU time + name: container.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 1.047769731 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Container CPU utilization + gauge: + dataPoints: + - asDouble: 0.000396945 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.cpu.utilization + unit: "1" + - description: Container filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.available + unit: By + - description: Container filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.capacity + unit: By + - description: Container filesystem usage + gauge: + dataPoints: + - asInt: "94208" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.usage + unit: By + - description: Container memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.available + unit: By + - description: Container memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.major_page_faults + unit: "1" + - description: Container memory page_faults + gauge: + dataPoints: + - asInt: "38148" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.page_faults + unit: "1" + - description: Container memory rss + gauge: + dataPoints: + - asInt: "8065024" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.rss + unit: By + - description: Container memory usage + gauge: + dataPoints: + - asInt: "9715712" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.usage + unit: By + - description: Container memory working_set + gauge: + dataPoints: + - asInt: "8736768" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.working_set + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.container.name + value: + stringValue: kube-scheduler + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-scheduler-minikube + - key: k8s.pod.uid + value: + stringValue: 5795d0c442cb997ff93c49feeb9f6386 + scopeMetrics: + - metrics: + - description: Container CPU time + name: container.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 4.560175707 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Container CPU utilization + gauge: + dataPoints: + - asDouble: 0.003438625 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.cpu.utilization + unit: "1" + - description: Container filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.available + unit: By + - description: Container filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.capacity + unit: By + - description: Container filesystem usage + gauge: + dataPoints: + - asInt: "12288" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.usage + unit: By + - description: Container memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.available + unit: By + - description: Container memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.major_page_faults + unit: "1" + - description: Container memory page_faults + gauge: + dataPoints: + - asInt: "7260" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.page_faults + unit: "1" + - description: Container memory rss + gauge: + dataPoints: + - asInt: "12660736" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.rss + unit: By + - description: Container memory usage + gauge: + dataPoints: + - asInt: "13701120" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.usage + unit: By + - description: Container memory working_set + gauge: + dataPoints: + - asInt: "11640832" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.working_set + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.container.name + value: + stringValue: server + - key: k8s.namespace.name + value: + stringValue: default + - key: k8s.pod.name + value: + stringValue: go-hello-world-5456b4b8cd-99vxc + - key: k8s.pod.uid + value: + stringValue: 42ad382b-ed0b-446d-9aab-3fdce8b4f9e2 + scopeMetrics: + - metrics: + - description: Container CPU time + name: container.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 0.271467923 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Container CPU utilization + gauge: + dataPoints: + - asDouble: 0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.cpu.utilization + unit: "1" + - description: Container filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.available + unit: By + - description: Container filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.capacity + unit: By + - description: Container filesystem usage + gauge: + dataPoints: + - asInt: "36864" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.usage + unit: By + - description: Container memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.available + unit: By + - description: Container memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.major_page_faults + unit: "1" + - description: Container memory page_faults + gauge: + dataPoints: + - asInt: "9702" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.page_faults + unit: "1" + - description: Container memory rss + gauge: + dataPoints: + - asInt: "23523328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.rss + unit: By + - description: Container memory usage + gauge: + dataPoints: + - asInt: "25088000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.usage + unit: By + - description: Container memory working_set + gauge: + dataPoints: + - asInt: "25083904" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.working_set + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.container.name + value: + stringValue: storage-provisioner + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: storage-provisioner + - key: k8s.pod.uid + value: + stringValue: 14bf95e0-9451-4192-b111-807b03163670 + scopeMetrics: + - metrics: + - description: Container CPU time + name: container.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 1.196195093 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Container CPU utilization + gauge: + dataPoints: + - asDouble: 0.00032689 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.cpu.utilization + unit: "1" + - description: Container filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.available + unit: By + - description: Container filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.capacity + unit: By + - description: Container filesystem usage + gauge: + dataPoints: + - asInt: "28672" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.usage + unit: By + - description: Container memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.available + unit: By + - description: Container memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.major_page_faults + unit: "1" + - description: Container memory page_faults + gauge: + dataPoints: + - asInt: "8481" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.page_faults + unit: "1" + - description: Container memory rss + gauge: + dataPoints: + - asInt: "12865536" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.rss + unit: By + - description: Container memory usage + gauge: + dataPoints: + - asInt: "13877248" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.usage + unit: By + - description: Container memory working_set + gauge: + dataPoints: + - asInt: "13877248" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.working_set + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: default + - key: k8s.pod.name + value: + stringValue: go-hello-world-5456b4b8cd-99vxc + - key: k8s.pod.uid + value: + stringValue: 42ad382b-ed0b-446d-9aab-3fdce8b4f9e2 + - key: k8s.volume.name + value: + stringValue: default-token-wgfsl + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "2015703040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "2015715328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492118" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492109" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "9" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-58qvv + - key: k8s.pod.uid + value: + stringValue: eb632b33-62c6-4a80-9575-a97ab363ad7f + - key: k8s.volume.name + value: + stringValue: config-volume + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "14810071040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9768928" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9758502" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "5" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-58qvv + - key: k8s.pod.uid + value: + stringValue: eb632b33-62c6-4a80-9575-a97ab363ad7f + - key: k8s.volume.name + value: + stringValue: coredns-token-dzc5t + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "2015703040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "2015715328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492118" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492109" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "9" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-szddj + - key: k8s.pod.uid + value: + stringValue: 0adffe8e-9849-4e05-b4cd-92d2d1e1f1c3 + - key: k8s.volume.name + value: + stringValue: config-volume + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "14810071040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9768928" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9758502" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "5" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-szddj + - key: k8s.pod.uid + value: + stringValue: 0adffe8e-9849-4e05-b4cd-92d2d1e1f1c3 + - key: k8s.volume.name + value: + stringValue: coredns-token-dzc5t + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "2015703040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "2015715328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492118" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492109" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "9" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-proxy-v48tf + - key: k8s.pod.uid + value: + stringValue: 0a6d6b05-0e8d-4920-8a38-926a33164d45 + - key: k8s.volume.name + value: + stringValue: kube-proxy + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "14810071040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9768928" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9758502" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "7" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-proxy-v48tf + - key: k8s.pod.uid + value: + stringValue: 0a6d6b05-0e8d-4920-8a38-926a33164d45 + - key: k8s.volume.name + value: + stringValue: kube-proxy-token-2z27z + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "2015703040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "2015715328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492118" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492109" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "9" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: storage-provisioner + - key: k8s.pod.uid + value: + stringValue: 14bf95e0-9451-4192-b111-807b03163670 + - key: k8s.volume.name + value: + stringValue: storage-provisioner-token-qzlx6 + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "2015703040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "2015715328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492118" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492109" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "9" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest diff --git a/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_metadata_Container_Metadata_expected.yaml b/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_metadata_Container_Metadata_expected.yaml new file mode 100644 index 000000000000..dabd51f64e25 --- /dev/null +++ b/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_metadata_Container_Metadata_expected.yaml @@ -0,0 +1,1009 @@ +resourceMetrics: + - resource: + attributes: + - key: container.id + value: + stringValue: 364bd8f13021f326 + - key: k8s.container.name + value: + stringValue: kube-scheduler + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-scheduler-minikube + - key: k8s.pod.uid + value: + stringValue: 5795d0c442cb997ff93c49feeb9f6386 + scopeMetrics: + - metrics: + - description: Container CPU time + name: container.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 4.560175707 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Container CPU utilization + gauge: + dataPoints: + - asDouble: 0.003438625 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.cpu.utilization + unit: "1" + - description: Container filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.available + unit: By + - description: Container filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.capacity + unit: By + - description: Container filesystem usage + gauge: + dataPoints: + - asInt: "12288" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.usage + unit: By + - description: Container memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.available + unit: By + - description: Container memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.major_page_faults + unit: "1" + - description: Container memory page_faults + gauge: + dataPoints: + - asInt: "7260" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.page_faults + unit: "1" + - description: Container memory rss + gauge: + dataPoints: + - asInt: "12660736" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.rss + unit: By + - description: Container memory usage + gauge: + dataPoints: + - asInt: "13701120" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.usage + unit: By + - description: Container memory working_set + gauge: + dataPoints: + - asInt: "11640832" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.working_set + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: container.id + value: + stringValue: 3c340a1810969eb1 + - key: k8s.container.name + value: + stringValue: kube-proxy + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-proxy-v48tf + - key: k8s.pod.uid + value: + stringValue: 0a6d6b05-0e8d-4920-8a38-926a33164d45 + scopeMetrics: + - metrics: + - description: Container CPU time + name: container.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 1.047769731 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Container CPU utilization + gauge: + dataPoints: + - asDouble: 0.000396945 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.cpu.utilization + unit: "1" + - description: Container filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.available + unit: By + - description: Container filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.capacity + unit: By + - description: Container filesystem usage + gauge: + dataPoints: + - asInt: "94208" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.usage + unit: By + - description: Container memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.available + unit: By + - description: Container memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.major_page_faults + unit: "1" + - description: Container memory page_faults + gauge: + dataPoints: + - asInt: "38148" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.page_faults + unit: "1" + - description: Container memory rss + gauge: + dataPoints: + - asInt: "8065024" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.rss + unit: By + - description: Container memory usage + gauge: + dataPoints: + - asInt: "9715712" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.usage + unit: By + - description: Container memory working_set + gauge: + dataPoints: + - asInt: "8736768" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.working_set + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: container.id + value: + stringValue: 765c28ca19767b2e + - key: k8s.container.name + value: + stringValue: coredns + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-58qvv + - key: k8s.pod.uid + value: + stringValue: eb632b33-62c6-4a80-9575-a97ab363ad7f + scopeMetrics: + - metrics: + - description: Container CPU time + name: container.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 3.662885116 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Container CPU utilization + gauge: + dataPoints: + - asDouble: 0.004558032 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.cpu.utilization + unit: "1" + - description: Container filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.available + unit: By + - description: Container filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.capacity + unit: By + - description: Container filesystem usage + gauge: + dataPoints: + - asInt: "32768" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.usage + unit: By + - description: Container memory available + gauge: + dataPoints: + - asInt: "171999232" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.available + unit: By + - description: Container memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.major_page_faults + unit: "1" + - description: Container memory page_faults + gauge: + dataPoints: + - asInt: "5445" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.page_faults + unit: "1" + - description: Container memory rss + gauge: + dataPoints: + - asInt: "6828032" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.rss + unit: By + - description: Container memory usage + gauge: + dataPoints: + - asInt: "7962624" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.usage + unit: By + - description: Container memory working_set + gauge: + dataPoints: + - asInt: "6258688" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.working_set + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: container.id + value: + stringValue: b798809239aad09b + - key: k8s.container.name + value: + stringValue: kube-apiserver + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-apiserver-minikube + - key: k8s.pod.uid + value: + stringValue: 3bef16d65fa74d46458df57d8f6f59af + scopeMetrics: + - metrics: + - description: Container CPU time + name: container.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 45.900186687 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Container CPU utilization + gauge: + dataPoints: + - asDouble: 0.046144879 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.cpu.utilization + unit: "1" + - description: Container filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.available + unit: By + - description: Container filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.capacity + unit: By + - description: Container filesystem usage + gauge: + dataPoints: + - asInt: "53248" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.usage + unit: By + - description: Container memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.available + unit: By + - description: Container memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.major_page_faults + unit: "1" + - description: Container memory page_faults + gauge: + dataPoints: + - asInt: "78969" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.page_faults + unit: "1" + - description: Container memory rss + gauge: + dataPoints: + - asInt: "266645504" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.rss + unit: By + - description: Container memory usage + gauge: + dataPoints: + - asInt: "268869632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.usage + unit: By + - description: Container memory working_set + gauge: + dataPoints: + - asInt: "243318784" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.working_set + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: container.id + value: + stringValue: baa7aaedeab79d38 + - key: k8s.container.name + value: + stringValue: etcd + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: etcd-minikube + - key: k8s.pod.uid + value: + stringValue: 5a5fbd34cfb43ee7bee976798370c910 + scopeMetrics: + - metrics: + - description: Container CPU time + name: container.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 20.061348607 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Container CPU utilization + gauge: + dataPoints: + - asDouble: 0.019865291 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.cpu.utilization + unit: "1" + - description: Container filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.available + unit: By + - description: Container filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.capacity + unit: By + - description: Container filesystem usage + gauge: + dataPoints: + - asInt: "32768" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.usage + unit: By + - description: Container memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.available + unit: By + - description: Container memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.major_page_faults + unit: "1" + - description: Container memory page_faults + gauge: + dataPoints: + - asInt: "11088" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.page_faults + unit: "1" + - description: Container memory rss + gauge: + dataPoints: + - asInt: "31907840" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.rss + unit: By + - description: Container memory usage + gauge: + dataPoints: + - asInt: "38199296" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.usage + unit: By + - description: Container memory working_set + gauge: + dataPoints: + - asInt: "33415168" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.working_set + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: container.id + value: + stringValue: bcaf30860852fd24 + - key: k8s.container.name + value: + stringValue: storage-provisioner + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: storage-provisioner + - key: k8s.pod.uid + value: + stringValue: 14bf95e0-9451-4192-b111-807b03163670 + scopeMetrics: + - metrics: + - description: Container CPU time + name: container.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 1.196195093 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Container CPU utilization + gauge: + dataPoints: + - asDouble: 0.00032689 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.cpu.utilization + unit: "1" + - description: Container filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.available + unit: By + - description: Container filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.capacity + unit: By + - description: Container filesystem usage + gauge: + dataPoints: + - asInt: "28672" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.usage + unit: By + - description: Container memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.available + unit: By + - description: Container memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.major_page_faults + unit: "1" + - description: Container memory page_faults + gauge: + dataPoints: + - asInt: "8481" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.page_faults + unit: "1" + - description: Container memory rss + gauge: + dataPoints: + - asInt: "12865536" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.rss + unit: By + - description: Container memory usage + gauge: + dataPoints: + - asInt: "13877248" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.usage + unit: By + - description: Container memory working_set + gauge: + dataPoints: + - asInt: "13877248" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.working_set + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: container.id + value: + stringValue: bd76db53336d07eb + - key: k8s.container.name + value: + stringValue: coredns + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-szddj + - key: k8s.pod.uid + value: + stringValue: 0adffe8e-9849-4e05-b4cd-92d2d1e1f1c3 + scopeMetrics: + - metrics: + - description: Container CPU time + name: container.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 2.727333643 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Container CPU utilization + gauge: + dataPoints: + - asDouble: 0.003508506 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.cpu.utilization + unit: "1" + - description: Container filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.available + unit: By + - description: Container filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.capacity + unit: By + - description: Container filesystem usage + gauge: + dataPoints: + - asInt: "32768" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.usage + unit: By + - description: Container memory available + gauge: + dataPoints: + - asInt: "172007424" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.available + unit: By + - description: Container memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.major_page_faults + unit: "1" + - description: Container memory page_faults + gauge: + dataPoints: + - asInt: "5445" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.page_faults + unit: "1" + - description: Container memory rss + gauge: + dataPoints: + - asInt: "6807552" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.rss + unit: By + - description: Container memory usage + gauge: + dataPoints: + - asInt: "7942144" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.usage + unit: By + - description: Container memory working_set + gauge: + dataPoints: + - asInt: "6250496" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.working_set + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: container.id + value: + stringValue: bddddc92226476d2 + - key: k8s.container.name + value: + stringValue: kube-controller-manager + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-controller-manager-minikube + - key: k8s.pod.uid + value: + stringValue: 3016593d20758bbfe68aba26604a8e3d + scopeMetrics: + - metrics: + - description: Container CPU time + name: container.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 16.885222421 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Container CPU utilization + gauge: + dataPoints: + - asDouble: 0.018247146 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.cpu.utilization + unit: "1" + - description: Container filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.available + unit: By + - description: Container filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.capacity + unit: By + - description: Container filesystem usage + gauge: + dataPoints: + - asInt: "77824" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.usage + unit: By + - description: Container memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.available + unit: By + - description: Container memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.major_page_faults + unit: "1" + - description: Container memory page_faults + gauge: + dataPoints: + - asInt: "14751" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.page_faults + unit: "1" + - description: Container memory rss + gauge: + dataPoints: + - asInt: "36741120" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.rss + unit: By + - description: Container memory usage + gauge: + dataPoints: + - asInt: "38068224" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.usage + unit: By + - description: Container memory working_set + gauge: + dataPoints: + - asInt: "37040128" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.working_set + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: container.id + value: + stringValue: c3d470faf18eba2b + - key: k8s.container.name + value: + stringValue: server + - key: k8s.namespace.name + value: + stringValue: default + - key: k8s.pod.name + value: + stringValue: go-hello-world-5456b4b8cd-99vxc + - key: k8s.pod.uid + value: + stringValue: 42ad382b-ed0b-446d-9aab-3fdce8b4f9e2 + scopeMetrics: + - metrics: + - description: Container CPU time + name: container.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 0.271467923 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Container CPU utilization + gauge: + dataPoints: + - asDouble: 0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.cpu.utilization + unit: "1" + - description: Container filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.available + unit: By + - description: Container filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.capacity + unit: By + - description: Container filesystem usage + gauge: + dataPoints: + - asInt: "36864" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.usage + unit: By + - description: Container memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.available + unit: By + - description: Container memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.major_page_faults + unit: "1" + - description: Container memory page_faults + gauge: + dataPoints: + - asInt: "9702" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.page_faults + unit: "1" + - description: Container memory rss + gauge: + dataPoints: + - asInt: "23523328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.rss + unit: By + - description: Container memory usage + gauge: + dataPoints: + - asInt: "25088000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.usage + unit: By + - description: Container memory working_set + gauge: + dataPoints: + - asInt: "25083904" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.working_set + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest diff --git a/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_metadata_Volume_Metadata_expected.yaml b/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_metadata_Volume_Metadata_expected.yaml new file mode 100644 index 000000000000..894ea81f3c4d --- /dev/null +++ b/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_metadata_Volume_Metadata_expected.yaml @@ -0,0 +1,506 @@ +resourceMetrics: + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: default + - key: k8s.pod.name + value: + stringValue: go-hello-world-5456b4b8cd-99vxc + - key: k8s.pod.uid + value: + stringValue: 42ad382b-ed0b-446d-9aab-3fdce8b4f9e2 + - key: k8s.volume.name + value: + stringValue: default-token-wgfsl + - key: k8s.volume.type + value: + stringValue: secret + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "2015703040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "2015715328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492118" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492109" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "9" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-58qvv + - key: k8s.pod.uid + value: + stringValue: eb632b33-62c6-4a80-9575-a97ab363ad7f + - key: k8s.volume.name + value: + stringValue: config-volume + - key: k8s.volume.type + value: + stringValue: configMap + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "14810071040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9768928" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9758502" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "5" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-szddj + - key: k8s.pod.uid + value: + stringValue: 0adffe8e-9849-4e05-b4cd-92d2d1e1f1c3 + - key: k8s.volume.name + value: + stringValue: config-volume + - key: k8s.volume.type + value: + stringValue: configMap + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "14810071040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9768928" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9758502" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "5" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-szddj + - key: k8s.pod.uid + value: + stringValue: 0adffe8e-9849-4e05-b4cd-92d2d1e1f1c3 + - key: k8s.volume.name + value: + stringValue: coredns-token-dzc5t + - key: k8s.volume.type + value: + stringValue: secret + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "2015703040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "2015715328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492118" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492109" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "9" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-proxy-v48tf + - key: k8s.pod.uid + value: + stringValue: 0a6d6b05-0e8d-4920-8a38-926a33164d45 + - key: k8s.volume.name + value: + stringValue: kube-proxy-token-2z27z + - key: k8s.volume.type + value: + stringValue: secret + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "2015703040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "2015715328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492118" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492109" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "9" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.persistentvolumeclaim.name + value: + stringValue: volume_claim_1 + - key: k8s.pod.name + value: + stringValue: storage-provisioner + - key: k8s.pod.uid + value: + stringValue: 14bf95e0-9451-4192-b111-807b03163670 + - key: k8s.volume.name + value: + stringValue: storage-provisioner-token-qzlx6 + - key: k8s.volume.type + value: + stringValue: persistentVolumeClaim + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "2015703040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "2015715328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492118" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492109" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "9" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.persistentvolumeclaim.name + value: + stringValue: volume_claim_2 + - key: k8s.pod.name + value: + stringValue: kube-proxy-v48tf + - key: k8s.pod.uid + value: + stringValue: 0a6d6b05-0e8d-4920-8a38-926a33164d45 + - key: k8s.volume.name + value: + stringValue: kube-proxy + - key: k8s.volume.type + value: + stringValue: persistentVolumeClaim + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "14810071040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9768928" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9758502" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "7" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.persistentvolumeclaim.name + value: + stringValue: volume_claim_3 + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-58qvv + - key: k8s.pod.uid + value: + stringValue: eb632b33-62c6-4a80-9575-a97ab363ad7f + - key: k8s.volume.name + value: + stringValue: coredns-token-dzc5t + - key: k8s.volume.type + value: + stringValue: persistentVolumeClaim + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "2015703040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "2015715328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492118" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492109" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "9" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest diff --git a/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_metric_groups_all_groups_expected.yaml b/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_metric_groups_all_groups_expected.yaml new file mode 100644 index 000000000000..da410967cd78 --- /dev/null +++ b/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_metric_groups_all_groups_expected.yaml @@ -0,0 +1,3075 @@ +resourceMetrics: + - resource: + attributes: + - key: k8s.node.name + value: + stringValue: minikube + scopeMetrics: + - metrics: + - description: Node CPU time + name: k8s.node.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 263.475389988 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Node CPU utilization + gauge: + dataPoints: + - asDouble: 0.165737329 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.node.cpu.utilization + unit: "1" + - description: Node filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.node.filesystem.available + unit: By + - description: Node filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.node.filesystem.capacity + unit: By + - description: Node filesystem usage + gauge: + dataPoints: + - asInt: "2626973696" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.node.filesystem.usage + unit: By + - description: Node memory available + gauge: + dataPoints: + - asInt: "2620624896" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.node.memory.available + unit: By + - description: Node memory major_page_faults + gauge: + dataPoints: + - asInt: "12" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.node.memory.major_page_faults + unit: "1" + - description: Node memory page_faults + gauge: + dataPoints: + - asInt: "12345" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.node.memory.page_faults + unit: "1" + - description: Node memory rss + gauge: + dataPoints: + - asInt: "607125504" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.node.memory.rss + unit: By + - description: Node memory usage + gauge: + dataPoints: + - asInt: "3608727552" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.node.memory.usage + unit: By + - description: Node memory working_set + gauge: + dataPoints: + - asInt: "1234567890" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.node.memory.working_set + unit: By + - description: Node network errors + name: k8s.node.network.errors + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "0" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: "1" + - description: Node network IO + name: k8s.node.network.io + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "948305524" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "12542266" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: default + - key: k8s.pod.name + value: + stringValue: go-hello-world-5456b4b8cd-99vxc + - key: k8s.pod.uid + value: + stringValue: 42ad382b-ed0b-446d-9aab-3fdce8b4f9e2 + scopeMetrics: + - metrics: + - description: Pod CPU time + name: k8s.pod.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 0.300122579 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Pod CPU utilization + gauge: + dataPoints: + - asDouble: 0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.cpu.utilization + unit: "1" + - description: Pod filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.available + unit: By + - description: Pod filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.capacity + unit: By + - description: Pod filesystem usage + gauge: + dataPoints: + - asInt: "135168" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.usage + unit: By + - description: Pod memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.available + unit: By + - description: Pod memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.major_page_faults + unit: "1" + - description: Pod memory page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.page_faults + unit: "1" + - description: Pod memory rss + gauge: + dataPoints: + - asInt: "23523328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.rss + unit: By + - description: Pod memory usage + gauge: + dataPoints: + - asInt: "25726976" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.usage + unit: By + - description: Pod memory working_set + gauge: + dataPoints: + - asInt: "25722880" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.working_set + unit: By + - description: Pod network errors + name: k8s.pod.network.errors + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "0" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: "1" + - description: Pod network IO + name: k8s.pod.network.io + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "0" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-58qvv + - key: k8s.pod.uid + value: + stringValue: eb632b33-62c6-4a80-9575-a97ab363ad7f + scopeMetrics: + - metrics: + - description: Pod CPU time + name: k8s.pod.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 3.69769445 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Pod CPU utilization + gauge: + dataPoints: + - asDouble: 0.003494461 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.cpu.utilization + unit: "1" + - description: Pod filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.available + unit: By + - description: Pod filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.capacity + unit: By + - description: Pod filesystem usage + gauge: + dataPoints: + - asInt: "73728" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.usage + unit: By + - description: Pod memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.available + unit: By + - description: Pod memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.major_page_faults + unit: "1" + - description: Pod memory page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.page_faults + unit: "1" + - description: Pod memory rss + gauge: + dataPoints: + - asInt: "6832128" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.rss + unit: By + - description: Pod memory usage + gauge: + dataPoints: + - asInt: "8372224" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.usage + unit: By + - description: Pod memory working_set + gauge: + dataPoints: + - asInt: "6668288" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.working_set + unit: By + - description: Pod network errors + name: k8s.pod.network.errors + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "0" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: "1" + - description: Pod network IO + name: k8s.pod.network.io + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "606529" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "121854" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-szddj + - key: k8s.pod.uid + value: + stringValue: 0adffe8e-9849-4e05-b4cd-92d2d1e1f1c3 + scopeMetrics: + - metrics: + - description: Pod CPU time + name: k8s.pod.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 2.771541709 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Pod CPU utilization + gauge: + dataPoints: + - asDouble: 0.003430175 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.cpu.utilization + unit: "1" + - description: Pod filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.available + unit: By + - description: Pod filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.capacity + unit: By + - description: Pod filesystem usage + gauge: + dataPoints: + - asInt: "73728" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.usage + unit: By + - description: Pod memory available + gauge: + dataPoints: + - asInt: "171323392" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.available + unit: By + - description: Pod memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.major_page_faults + unit: "1" + - description: Pod memory page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.page_faults + unit: "1" + - description: Pod memory rss + gauge: + dataPoints: + - asInt: "6807552" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.rss + unit: By + - description: Pod memory usage + gauge: + dataPoints: + - asInt: "8626176" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.usage + unit: By + - description: Pod memory working_set + gauge: + dataPoints: + - asInt: "6934528" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.working_set + unit: By + - description: Pod network errors + name: k8s.pod.network.errors + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "0" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: "1" + - description: Pod network IO + name: k8s.pod.network.io + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "606880" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "120484" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: etcd-minikube + - key: k8s.pod.uid + value: + stringValue: 5a5fbd34cfb43ee7bee976798370c910 + scopeMetrics: + - metrics: + - description: Pod CPU time + name: k8s.pod.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 20.099753934 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Pod CPU utilization + gauge: + dataPoints: + - asDouble: 0.019806671 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.cpu.utilization + unit: "1" + - description: Pod filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.available + unit: By + - description: Pod filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.capacity + unit: By + - description: Pod filesystem usage + gauge: + dataPoints: + - asInt: "69632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.usage + unit: By + - description: Pod memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.available + unit: By + - description: Pod memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.major_page_faults + unit: "1" + - description: Pod memory page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.page_faults + unit: "1" + - description: Pod memory rss + gauge: + dataPoints: + - asInt: "31907840" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.rss + unit: By + - description: Pod memory usage + gauge: + dataPoints: + - asInt: "38768640" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.usage + unit: By + - description: Pod memory working_set + gauge: + dataPoints: + - asInt: "33984512" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.working_set + unit: By + - description: Pod network errors + name: k8s.pod.network.errors + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "0" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: "1" + - description: Pod network IO + name: k8s.pod.network.io + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "948305524" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "12542266" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-apiserver-minikube + - key: k8s.pod.uid + value: + stringValue: 3bef16d65fa74d46458df57d8f6f59af + scopeMetrics: + - metrics: + - description: Pod CPU time + name: k8s.pod.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 46.096711585 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Pod CPU utilization + gauge: + dataPoints: + - asDouble: 0.046223592 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.cpu.utilization + unit: "1" + - description: Pod filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.available + unit: By + - description: Pod filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.capacity + unit: By + - description: Pod filesystem usage + gauge: + dataPoints: + - asInt: "126976" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.usage + unit: By + - description: Pod memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.available + unit: By + - description: Pod memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.major_page_faults + unit: "1" + - description: Pod memory page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.page_faults + unit: "1" + - description: Pod memory rss + gauge: + dataPoints: + - asInt: "266645504" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.rss + unit: By + - description: Pod memory usage + gauge: + dataPoints: + - asInt: "269459456" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.usage + unit: By + - description: Pod memory working_set + gauge: + dataPoints: + - asInt: "243908608" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.working_set + unit: By + - description: Pod network errors + name: k8s.pod.network.errors + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "0" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: "1" + - description: Pod network IO + name: k8s.pod.network.io + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "948305362" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "12542068" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-controller-manager-minikube + - key: k8s.pod.uid + value: + stringValue: 3016593d20758bbfe68aba26604a8e3d + scopeMetrics: + - metrics: + - description: Pod CPU time + name: k8s.pod.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 16.84088936 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Pod CPU utilization + gauge: + dataPoints: + - asDouble: 0.018113404 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.cpu.utilization + unit: "1" + - description: Pod filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.available + unit: By + - description: Pod filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.capacity + unit: By + - description: Pod filesystem usage + gauge: + dataPoints: + - asInt: "143360" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.usage + unit: By + - description: Pod memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.available + unit: By + - description: Pod memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.major_page_faults + unit: "1" + - description: Pod memory page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.page_faults + unit: "1" + - description: Pod memory rss + gauge: + dataPoints: + - asInt: "36741120" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.rss + unit: By + - description: Pod memory usage + gauge: + dataPoints: + - asInt: "38703104" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.usage + unit: By + - description: Pod memory working_set + gauge: + dataPoints: + - asInt: "37675008" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.working_set + unit: By + - description: Pod network errors + name: k8s.pod.network.errors + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "0" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: "1" + - description: Pod network IO + name: k8s.pod.network.io + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "948297240" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "12510148" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-proxy-v48tf + - key: k8s.pod.uid + value: + stringValue: 0a6d6b05-0e8d-4920-8a38-926a33164d45 + scopeMetrics: + - metrics: + - description: Pod CPU time + name: k8s.pod.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 1.067441804 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Pod CPU utilization + gauge: + dataPoints: + - asDouble: 0.000276428 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.cpu.utilization + unit: "1" + - description: Pod filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.available + unit: By + - description: Pod filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.capacity + unit: By + - description: Pod filesystem usage + gauge: + dataPoints: + - asInt: "139264" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.usage + unit: By + - description: Pod memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.available + unit: By + - description: Pod memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.major_page_faults + unit: "1" + - description: Pod memory page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.page_faults + unit: "1" + - description: Pod memory rss + gauge: + dataPoints: + - asInt: "8081408" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.rss + unit: By + - description: Pod memory usage + gauge: + dataPoints: + - asInt: "10280960" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.usage + unit: By + - description: Pod memory working_set + gauge: + dataPoints: + - asInt: "9302016" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.working_set + unit: By + - description: Pod network errors + name: k8s.pod.network.errors + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "0" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: "1" + - description: Pod network IO + name: k8s.pod.network.io + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "948297282" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "12510214" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-scheduler-minikube + - key: k8s.pod.uid + value: + stringValue: 5795d0c442cb997ff93c49feeb9f6386 + scopeMetrics: + - metrics: + - description: Pod CPU time + name: k8s.pod.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 4.553997785 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Pod CPU utilization + gauge: + dataPoints: + - asDouble: 0.003620103 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.cpu.utilization + unit: "1" + - description: Pod filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.available + unit: By + - description: Pod filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.capacity + unit: By + - description: Pod filesystem usage + gauge: + dataPoints: + - asInt: "49152" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.usage + unit: By + - description: Pod memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.available + unit: By + - description: Pod memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.major_page_faults + unit: "1" + - description: Pod memory page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.page_faults + unit: "1" + - description: Pod memory rss + gauge: + dataPoints: + - asInt: "12660736" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.rss + unit: By + - description: Pod memory usage + gauge: + dataPoints: + - asInt: "14290944" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.usage + unit: By + - description: Pod memory working_set + gauge: + dataPoints: + - asInt: "12230656" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.working_set + unit: By + - description: Pod network errors + name: k8s.pod.network.errors + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "0" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: "1" + - description: Pod network IO + name: k8s.pod.network.io + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "948305362" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "12542068" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: storage-provisioner + - key: k8s.pod.uid + value: + stringValue: 14bf95e0-9451-4192-b111-807b03163670 + scopeMetrics: + - metrics: + - description: Pod CPU time + name: k8s.pod.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 1.215412064 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Pod CPU utilization + gauge: + dataPoints: + - asDouble: 0.000378421 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.cpu.utilization + unit: "1" + - description: Pod filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.available + unit: By + - description: Pod filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.capacity + unit: By + - description: Pod filesystem usage + gauge: + dataPoints: + - asInt: "53248" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.usage + unit: By + - description: Pod memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.available + unit: By + - description: Pod memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.major_page_faults + unit: "1" + - description: Pod memory page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.page_faults + unit: "1" + - description: Pod memory rss + gauge: + dataPoints: + - asInt: "12865536" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.rss + unit: By + - description: Pod memory usage + gauge: + dataPoints: + - asInt: "14356480" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.usage + unit: By + - description: Pod memory working_set + gauge: + dataPoints: + - asInt: "14356480" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.working_set + unit: By + - description: Pod network errors + name: k8s.pod.network.errors + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "0" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: "1" + - description: Pod network IO + name: k8s.pod.network.io + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "948297282" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "12510214" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: default + - key: k8s.pod.name + value: + stringValue: go-hello-world-5456b4b8cd-99vxc + - key: k8s.pod.uid + value: + stringValue: 42ad382b-ed0b-446d-9aab-3fdce8b4f9e2 + - key: k8s.volume.name + value: + stringValue: default-token-wgfsl + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "2015703040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "2015715328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492118" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492109" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "9" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-58qvv + - key: k8s.pod.uid + value: + stringValue: eb632b33-62c6-4a80-9575-a97ab363ad7f + - key: k8s.volume.name + value: + stringValue: config-volume + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "14810071040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9768928" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9758502" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "5" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-58qvv + - key: k8s.pod.uid + value: + stringValue: eb632b33-62c6-4a80-9575-a97ab363ad7f + - key: k8s.volume.name + value: + stringValue: coredns-token-dzc5t + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "2015703040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "2015715328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492118" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492109" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "9" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-szddj + - key: k8s.pod.uid + value: + stringValue: 0adffe8e-9849-4e05-b4cd-92d2d1e1f1c3 + - key: k8s.volume.name + value: + stringValue: config-volume + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "14810071040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9768928" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9758502" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "5" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-szddj + - key: k8s.pod.uid + value: + stringValue: 0adffe8e-9849-4e05-b4cd-92d2d1e1f1c3 + - key: k8s.volume.name + value: + stringValue: coredns-token-dzc5t + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "2015703040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "2015715328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492118" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492109" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "9" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-proxy-v48tf + - key: k8s.pod.uid + value: + stringValue: 0a6d6b05-0e8d-4920-8a38-926a33164d45 + - key: k8s.volume.name + value: + stringValue: kube-proxy + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "14810071040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9768928" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9758502" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "7" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-proxy-v48tf + - key: k8s.pod.uid + value: + stringValue: 0a6d6b05-0e8d-4920-8a38-926a33164d45 + - key: k8s.volume.name + value: + stringValue: kube-proxy-token-2z27z + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "2015703040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "2015715328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492118" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492109" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "9" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: storage-provisioner + - key: k8s.pod.uid + value: + stringValue: 14bf95e0-9451-4192-b111-807b03163670 + - key: k8s.volume.name + value: + stringValue: storage-provisioner-token-qzlx6 + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "2015703040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "2015715328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492118" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492109" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "9" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: container.id + value: + stringValue: 364bd8f13021f326 + - key: k8s.container.name + value: + stringValue: kube-scheduler + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-scheduler-minikube + - key: k8s.pod.uid + value: + stringValue: 5795d0c442cb997ff93c49feeb9f6386 + scopeMetrics: + - metrics: + - description: Container CPU time + name: container.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 4.560175707 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Container CPU utilization + gauge: + dataPoints: + - asDouble: 0.003438625 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.cpu.utilization + unit: "1" + - description: Container filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.available + unit: By + - description: Container filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.capacity + unit: By + - description: Container filesystem usage + gauge: + dataPoints: + - asInt: "12288" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.usage + unit: By + - description: Container memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.available + unit: By + - description: Container memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.major_page_faults + unit: "1" + - description: Container memory page_faults + gauge: + dataPoints: + - asInt: "7260" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.page_faults + unit: "1" + - description: Container memory rss + gauge: + dataPoints: + - asInt: "12660736" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.rss + unit: By + - description: Container memory usage + gauge: + dataPoints: + - asInt: "13701120" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.usage + unit: By + - description: Container memory working_set + gauge: + dataPoints: + - asInt: "11640832" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.working_set + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: container.id + value: + stringValue: 3c340a1810969eb1 + - key: k8s.container.name + value: + stringValue: kube-proxy + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-proxy-v48tf + - key: k8s.pod.uid + value: + stringValue: 0a6d6b05-0e8d-4920-8a38-926a33164d45 + scopeMetrics: + - metrics: + - description: Container CPU time + name: container.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 1.047769731 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Container CPU utilization + gauge: + dataPoints: + - asDouble: 0.000396945 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.cpu.utilization + unit: "1" + - description: Container filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.available + unit: By + - description: Container filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.capacity + unit: By + - description: Container filesystem usage + gauge: + dataPoints: + - asInt: "94208" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.usage + unit: By + - description: Container memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.available + unit: By + - description: Container memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.major_page_faults + unit: "1" + - description: Container memory page_faults + gauge: + dataPoints: + - asInt: "38148" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.page_faults + unit: "1" + - description: Container memory rss + gauge: + dataPoints: + - asInt: "8065024" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.rss + unit: By + - description: Container memory usage + gauge: + dataPoints: + - asInt: "9715712" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.usage + unit: By + - description: Container memory working_set + gauge: + dataPoints: + - asInt: "8736768" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.working_set + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: container.id + value: + stringValue: 765c28ca19767b2e + - key: k8s.container.name + value: + stringValue: coredns + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-58qvv + - key: k8s.pod.uid + value: + stringValue: eb632b33-62c6-4a80-9575-a97ab363ad7f + scopeMetrics: + - metrics: + - description: Container CPU time + name: container.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 3.662885116 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Container CPU utilization + gauge: + dataPoints: + - asDouble: 0.004558032 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.cpu.utilization + unit: "1" + - description: Container filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.available + unit: By + - description: Container filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.capacity + unit: By + - description: Container filesystem usage + gauge: + dataPoints: + - asInt: "32768" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.usage + unit: By + - description: Container memory available + gauge: + dataPoints: + - asInt: "171999232" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.available + unit: By + - description: Container memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.major_page_faults + unit: "1" + - description: Container memory page_faults + gauge: + dataPoints: + - asInt: "5445" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.page_faults + unit: "1" + - description: Container memory rss + gauge: + dataPoints: + - asInt: "6828032" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.rss + unit: By + - description: Container memory usage + gauge: + dataPoints: + - asInt: "7962624" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.usage + unit: By + - description: Container memory working_set + gauge: + dataPoints: + - asInt: "6258688" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.working_set + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: container.id + value: + stringValue: b798809239aad09b + - key: k8s.container.name + value: + stringValue: kube-apiserver + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-apiserver-minikube + - key: k8s.pod.uid + value: + stringValue: 3bef16d65fa74d46458df57d8f6f59af + scopeMetrics: + - metrics: + - description: Container CPU time + name: container.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 45.900186687 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Container CPU utilization + gauge: + dataPoints: + - asDouble: 0.046144879 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.cpu.utilization + unit: "1" + - description: Container filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.available + unit: By + - description: Container filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.capacity + unit: By + - description: Container filesystem usage + gauge: + dataPoints: + - asInt: "53248" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.usage + unit: By + - description: Container memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.available + unit: By + - description: Container memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.major_page_faults + unit: "1" + - description: Container memory page_faults + gauge: + dataPoints: + - asInt: "78969" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.page_faults + unit: "1" + - description: Container memory rss + gauge: + dataPoints: + - asInt: "266645504" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.rss + unit: By + - description: Container memory usage + gauge: + dataPoints: + - asInt: "268869632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.usage + unit: By + - description: Container memory working_set + gauge: + dataPoints: + - asInt: "243318784" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.working_set + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: container.id + value: + stringValue: baa7aaedeab79d38 + - key: k8s.container.name + value: + stringValue: etcd + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: etcd-minikube + - key: k8s.pod.uid + value: + stringValue: 5a5fbd34cfb43ee7bee976798370c910 + scopeMetrics: + - metrics: + - description: Container CPU time + name: container.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 20.061348607 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Container CPU utilization + gauge: + dataPoints: + - asDouble: 0.019865291 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.cpu.utilization + unit: "1" + - description: Container filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.available + unit: By + - description: Container filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.capacity + unit: By + - description: Container filesystem usage + gauge: + dataPoints: + - asInt: "32768" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.usage + unit: By + - description: Container memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.available + unit: By + - description: Container memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.major_page_faults + unit: "1" + - description: Container memory page_faults + gauge: + dataPoints: + - asInt: "11088" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.page_faults + unit: "1" + - description: Container memory rss + gauge: + dataPoints: + - asInt: "31907840" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.rss + unit: By + - description: Container memory usage + gauge: + dataPoints: + - asInt: "38199296" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.usage + unit: By + - description: Container memory working_set + gauge: + dataPoints: + - asInt: "33415168" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.working_set + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: container.id + value: + stringValue: bcaf30860852fd24 + - key: k8s.container.name + value: + stringValue: storage-provisioner + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: storage-provisioner + - key: k8s.pod.uid + value: + stringValue: 14bf95e0-9451-4192-b111-807b03163670 + scopeMetrics: + - metrics: + - description: Container CPU time + name: container.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 1.196195093 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Container CPU utilization + gauge: + dataPoints: + - asDouble: 0.00032689 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.cpu.utilization + unit: "1" + - description: Container filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.available + unit: By + - description: Container filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.capacity + unit: By + - description: Container filesystem usage + gauge: + dataPoints: + - asInt: "28672" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.usage + unit: By + - description: Container memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.available + unit: By + - description: Container memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.major_page_faults + unit: "1" + - description: Container memory page_faults + gauge: + dataPoints: + - asInt: "8481" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.page_faults + unit: "1" + - description: Container memory rss + gauge: + dataPoints: + - asInt: "12865536" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.rss + unit: By + - description: Container memory usage + gauge: + dataPoints: + - asInt: "13877248" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.usage + unit: By + - description: Container memory working_set + gauge: + dataPoints: + - asInt: "13877248" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.working_set + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: container.id + value: + stringValue: bd76db53336d07eb + - key: k8s.container.name + value: + stringValue: coredns + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-szddj + - key: k8s.pod.uid + value: + stringValue: 0adffe8e-9849-4e05-b4cd-92d2d1e1f1c3 + scopeMetrics: + - metrics: + - description: Container CPU time + name: container.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 2.727333643 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Container CPU utilization + gauge: + dataPoints: + - asDouble: 0.003508506 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.cpu.utilization + unit: "1" + - description: Container filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.available + unit: By + - description: Container filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.capacity + unit: By + - description: Container filesystem usage + gauge: + dataPoints: + - asInt: "32768" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.usage + unit: By + - description: Container memory available + gauge: + dataPoints: + - asInt: "172007424" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.available + unit: By + - description: Container memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.major_page_faults + unit: "1" + - description: Container memory page_faults + gauge: + dataPoints: + - asInt: "5445" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.page_faults + unit: "1" + - description: Container memory rss + gauge: + dataPoints: + - asInt: "6807552" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.rss + unit: By + - description: Container memory usage + gauge: + dataPoints: + - asInt: "7942144" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.usage + unit: By + - description: Container memory working_set + gauge: + dataPoints: + - asInt: "6250496" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.working_set + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: container.id + value: + stringValue: bddddc92226476d2 + - key: k8s.container.name + value: + stringValue: kube-controller-manager + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-controller-manager-minikube + - key: k8s.pod.uid + value: + stringValue: 3016593d20758bbfe68aba26604a8e3d + scopeMetrics: + - metrics: + - description: Container CPU time + name: container.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 16.885222421 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Container CPU utilization + gauge: + dataPoints: + - asDouble: 0.018247146 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.cpu.utilization + unit: "1" + - description: Container filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.available + unit: By + - description: Container filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.capacity + unit: By + - description: Container filesystem usage + gauge: + dataPoints: + - asInt: "77824" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.usage + unit: By + - description: Container memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.available + unit: By + - description: Container memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.major_page_faults + unit: "1" + - description: Container memory page_faults + gauge: + dataPoints: + - asInt: "14751" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.page_faults + unit: "1" + - description: Container memory rss + gauge: + dataPoints: + - asInt: "36741120" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.rss + unit: By + - description: Container memory usage + gauge: + dataPoints: + - asInt: "38068224" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.usage + unit: By + - description: Container memory working_set + gauge: + dataPoints: + - asInt: "37040128" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.working_set + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: container.id + value: + stringValue: c3d470faf18eba2b + - key: k8s.container.name + value: + stringValue: server + - key: k8s.namespace.name + value: + stringValue: default + - key: k8s.pod.name + value: + stringValue: go-hello-world-5456b4b8cd-99vxc + - key: k8s.pod.uid + value: + stringValue: 42ad382b-ed0b-446d-9aab-3fdce8b4f9e2 + scopeMetrics: + - metrics: + - description: Container CPU time + name: container.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 0.271467923 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Container CPU utilization + gauge: + dataPoints: + - asDouble: 0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.cpu.utilization + unit: "1" + - description: Container filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.available + unit: By + - description: Container filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.capacity + unit: By + - description: Container filesystem usage + gauge: + dataPoints: + - asInt: "36864" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.usage + unit: By + - description: Container memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.available + unit: By + - description: Container memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.major_page_faults + unit: "1" + - description: Container memory page_faults + gauge: + dataPoints: + - asInt: "9702" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.page_faults + unit: "1" + - description: Container memory rss + gauge: + dataPoints: + - asInt: "23523328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.rss + unit: By + - description: Container memory usage + gauge: + dataPoints: + - asInt: "25088000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.usage + unit: By + - description: Container memory working_set + gauge: + dataPoints: + - asInt: "25083904" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.working_set + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest diff --git a/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_metric_groups_only_container_group_expected.yaml b/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_metric_groups_only_container_group_expected.yaml new file mode 100644 index 000000000000..dabd51f64e25 --- /dev/null +++ b/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_metric_groups_only_container_group_expected.yaml @@ -0,0 +1,1009 @@ +resourceMetrics: + - resource: + attributes: + - key: container.id + value: + stringValue: 364bd8f13021f326 + - key: k8s.container.name + value: + stringValue: kube-scheduler + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-scheduler-minikube + - key: k8s.pod.uid + value: + stringValue: 5795d0c442cb997ff93c49feeb9f6386 + scopeMetrics: + - metrics: + - description: Container CPU time + name: container.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 4.560175707 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Container CPU utilization + gauge: + dataPoints: + - asDouble: 0.003438625 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.cpu.utilization + unit: "1" + - description: Container filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.available + unit: By + - description: Container filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.capacity + unit: By + - description: Container filesystem usage + gauge: + dataPoints: + - asInt: "12288" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.usage + unit: By + - description: Container memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.available + unit: By + - description: Container memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.major_page_faults + unit: "1" + - description: Container memory page_faults + gauge: + dataPoints: + - asInt: "7260" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.page_faults + unit: "1" + - description: Container memory rss + gauge: + dataPoints: + - asInt: "12660736" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.rss + unit: By + - description: Container memory usage + gauge: + dataPoints: + - asInt: "13701120" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.usage + unit: By + - description: Container memory working_set + gauge: + dataPoints: + - asInt: "11640832" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.working_set + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: container.id + value: + stringValue: 3c340a1810969eb1 + - key: k8s.container.name + value: + stringValue: kube-proxy + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-proxy-v48tf + - key: k8s.pod.uid + value: + stringValue: 0a6d6b05-0e8d-4920-8a38-926a33164d45 + scopeMetrics: + - metrics: + - description: Container CPU time + name: container.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 1.047769731 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Container CPU utilization + gauge: + dataPoints: + - asDouble: 0.000396945 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.cpu.utilization + unit: "1" + - description: Container filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.available + unit: By + - description: Container filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.capacity + unit: By + - description: Container filesystem usage + gauge: + dataPoints: + - asInt: "94208" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.usage + unit: By + - description: Container memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.available + unit: By + - description: Container memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.major_page_faults + unit: "1" + - description: Container memory page_faults + gauge: + dataPoints: + - asInt: "38148" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.page_faults + unit: "1" + - description: Container memory rss + gauge: + dataPoints: + - asInt: "8065024" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.rss + unit: By + - description: Container memory usage + gauge: + dataPoints: + - asInt: "9715712" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.usage + unit: By + - description: Container memory working_set + gauge: + dataPoints: + - asInt: "8736768" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.working_set + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: container.id + value: + stringValue: 765c28ca19767b2e + - key: k8s.container.name + value: + stringValue: coredns + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-58qvv + - key: k8s.pod.uid + value: + stringValue: eb632b33-62c6-4a80-9575-a97ab363ad7f + scopeMetrics: + - metrics: + - description: Container CPU time + name: container.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 3.662885116 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Container CPU utilization + gauge: + dataPoints: + - asDouble: 0.004558032 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.cpu.utilization + unit: "1" + - description: Container filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.available + unit: By + - description: Container filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.capacity + unit: By + - description: Container filesystem usage + gauge: + dataPoints: + - asInt: "32768" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.usage + unit: By + - description: Container memory available + gauge: + dataPoints: + - asInt: "171999232" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.available + unit: By + - description: Container memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.major_page_faults + unit: "1" + - description: Container memory page_faults + gauge: + dataPoints: + - asInt: "5445" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.page_faults + unit: "1" + - description: Container memory rss + gauge: + dataPoints: + - asInt: "6828032" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.rss + unit: By + - description: Container memory usage + gauge: + dataPoints: + - asInt: "7962624" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.usage + unit: By + - description: Container memory working_set + gauge: + dataPoints: + - asInt: "6258688" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.working_set + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: container.id + value: + stringValue: b798809239aad09b + - key: k8s.container.name + value: + stringValue: kube-apiserver + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-apiserver-minikube + - key: k8s.pod.uid + value: + stringValue: 3bef16d65fa74d46458df57d8f6f59af + scopeMetrics: + - metrics: + - description: Container CPU time + name: container.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 45.900186687 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Container CPU utilization + gauge: + dataPoints: + - asDouble: 0.046144879 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.cpu.utilization + unit: "1" + - description: Container filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.available + unit: By + - description: Container filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.capacity + unit: By + - description: Container filesystem usage + gauge: + dataPoints: + - asInt: "53248" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.usage + unit: By + - description: Container memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.available + unit: By + - description: Container memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.major_page_faults + unit: "1" + - description: Container memory page_faults + gauge: + dataPoints: + - asInt: "78969" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.page_faults + unit: "1" + - description: Container memory rss + gauge: + dataPoints: + - asInt: "266645504" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.rss + unit: By + - description: Container memory usage + gauge: + dataPoints: + - asInt: "268869632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.usage + unit: By + - description: Container memory working_set + gauge: + dataPoints: + - asInt: "243318784" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.working_set + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: container.id + value: + stringValue: baa7aaedeab79d38 + - key: k8s.container.name + value: + stringValue: etcd + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: etcd-minikube + - key: k8s.pod.uid + value: + stringValue: 5a5fbd34cfb43ee7bee976798370c910 + scopeMetrics: + - metrics: + - description: Container CPU time + name: container.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 20.061348607 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Container CPU utilization + gauge: + dataPoints: + - asDouble: 0.019865291 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.cpu.utilization + unit: "1" + - description: Container filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.available + unit: By + - description: Container filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.capacity + unit: By + - description: Container filesystem usage + gauge: + dataPoints: + - asInt: "32768" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.usage + unit: By + - description: Container memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.available + unit: By + - description: Container memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.major_page_faults + unit: "1" + - description: Container memory page_faults + gauge: + dataPoints: + - asInt: "11088" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.page_faults + unit: "1" + - description: Container memory rss + gauge: + dataPoints: + - asInt: "31907840" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.rss + unit: By + - description: Container memory usage + gauge: + dataPoints: + - asInt: "38199296" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.usage + unit: By + - description: Container memory working_set + gauge: + dataPoints: + - asInt: "33415168" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.working_set + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: container.id + value: + stringValue: bcaf30860852fd24 + - key: k8s.container.name + value: + stringValue: storage-provisioner + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: storage-provisioner + - key: k8s.pod.uid + value: + stringValue: 14bf95e0-9451-4192-b111-807b03163670 + scopeMetrics: + - metrics: + - description: Container CPU time + name: container.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 1.196195093 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Container CPU utilization + gauge: + dataPoints: + - asDouble: 0.00032689 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.cpu.utilization + unit: "1" + - description: Container filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.available + unit: By + - description: Container filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.capacity + unit: By + - description: Container filesystem usage + gauge: + dataPoints: + - asInt: "28672" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.usage + unit: By + - description: Container memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.available + unit: By + - description: Container memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.major_page_faults + unit: "1" + - description: Container memory page_faults + gauge: + dataPoints: + - asInt: "8481" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.page_faults + unit: "1" + - description: Container memory rss + gauge: + dataPoints: + - asInt: "12865536" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.rss + unit: By + - description: Container memory usage + gauge: + dataPoints: + - asInt: "13877248" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.usage + unit: By + - description: Container memory working_set + gauge: + dataPoints: + - asInt: "13877248" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.working_set + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: container.id + value: + stringValue: bd76db53336d07eb + - key: k8s.container.name + value: + stringValue: coredns + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-szddj + - key: k8s.pod.uid + value: + stringValue: 0adffe8e-9849-4e05-b4cd-92d2d1e1f1c3 + scopeMetrics: + - metrics: + - description: Container CPU time + name: container.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 2.727333643 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Container CPU utilization + gauge: + dataPoints: + - asDouble: 0.003508506 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.cpu.utilization + unit: "1" + - description: Container filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.available + unit: By + - description: Container filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.capacity + unit: By + - description: Container filesystem usage + gauge: + dataPoints: + - asInt: "32768" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.usage + unit: By + - description: Container memory available + gauge: + dataPoints: + - asInt: "172007424" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.available + unit: By + - description: Container memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.major_page_faults + unit: "1" + - description: Container memory page_faults + gauge: + dataPoints: + - asInt: "5445" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.page_faults + unit: "1" + - description: Container memory rss + gauge: + dataPoints: + - asInt: "6807552" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.rss + unit: By + - description: Container memory usage + gauge: + dataPoints: + - asInt: "7942144" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.usage + unit: By + - description: Container memory working_set + gauge: + dataPoints: + - asInt: "6250496" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.working_set + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: container.id + value: + stringValue: bddddc92226476d2 + - key: k8s.container.name + value: + stringValue: kube-controller-manager + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-controller-manager-minikube + - key: k8s.pod.uid + value: + stringValue: 3016593d20758bbfe68aba26604a8e3d + scopeMetrics: + - metrics: + - description: Container CPU time + name: container.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 16.885222421 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Container CPU utilization + gauge: + dataPoints: + - asDouble: 0.018247146 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.cpu.utilization + unit: "1" + - description: Container filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.available + unit: By + - description: Container filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.capacity + unit: By + - description: Container filesystem usage + gauge: + dataPoints: + - asInt: "77824" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.usage + unit: By + - description: Container memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.available + unit: By + - description: Container memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.major_page_faults + unit: "1" + - description: Container memory page_faults + gauge: + dataPoints: + - asInt: "14751" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.page_faults + unit: "1" + - description: Container memory rss + gauge: + dataPoints: + - asInt: "36741120" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.rss + unit: By + - description: Container memory usage + gauge: + dataPoints: + - asInt: "38068224" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.usage + unit: By + - description: Container memory working_set + gauge: + dataPoints: + - asInt: "37040128" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.working_set + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: container.id + value: + stringValue: c3d470faf18eba2b + - key: k8s.container.name + value: + stringValue: server + - key: k8s.namespace.name + value: + stringValue: default + - key: k8s.pod.name + value: + stringValue: go-hello-world-5456b4b8cd-99vxc + - key: k8s.pod.uid + value: + stringValue: 42ad382b-ed0b-446d-9aab-3fdce8b4f9e2 + scopeMetrics: + - metrics: + - description: Container CPU time + name: container.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 0.271467923 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Container CPU utilization + gauge: + dataPoints: + - asDouble: 0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.cpu.utilization + unit: "1" + - description: Container filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.available + unit: By + - description: Container filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.capacity + unit: By + - description: Container filesystem usage + gauge: + dataPoints: + - asInt: "36864" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.filesystem.usage + unit: By + - description: Container memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.available + unit: By + - description: Container memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.major_page_faults + unit: "1" + - description: Container memory page_faults + gauge: + dataPoints: + - asInt: "9702" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.page_faults + unit: "1" + - description: Container memory rss + gauge: + dataPoints: + - asInt: "23523328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.rss + unit: By + - description: Container memory usage + gauge: + dataPoints: + - asInt: "25088000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.usage + unit: By + - description: Container memory working_set + gauge: + dataPoints: + - asInt: "25083904" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: container.memory.working_set + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest diff --git a/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_metric_groups_only_node_group_expected.yaml b/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_metric_groups_only_node_group_expected.yaml new file mode 100644 index 000000000000..3b72325e4d27 --- /dev/null +++ b/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_metric_groups_only_node_group_expected.yaml @@ -0,0 +1,155 @@ +resourceMetrics: + - resource: + attributes: + - key: k8s.node.name + value: + stringValue: minikube + scopeMetrics: + - metrics: + - description: Node CPU time + name: k8s.node.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 263.475389988 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Node CPU utilization + gauge: + dataPoints: + - asDouble: 0.165737329 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.node.cpu.utilization + unit: "1" + - description: Node filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.node.filesystem.available + unit: By + - description: Node filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.node.filesystem.capacity + unit: By + - description: Node filesystem usage + gauge: + dataPoints: + - asInt: "2626973696" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.node.filesystem.usage + unit: By + - description: Node memory available + gauge: + dataPoints: + - asInt: "2620624896" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.node.memory.available + unit: By + - description: Node memory major_page_faults + gauge: + dataPoints: + - asInt: "12" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.node.memory.major_page_faults + unit: "1" + - description: Node memory page_faults + gauge: + dataPoints: + - asInt: "12345" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.node.memory.page_faults + unit: "1" + - description: Node memory rss + gauge: + dataPoints: + - asInt: "607125504" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.node.memory.rss + unit: By + - description: Node memory usage + gauge: + dataPoints: + - asInt: "3608727552" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.node.memory.usage + unit: By + - description: Node memory working_set + gauge: + dataPoints: + - asInt: "1234567890" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.node.memory.working_set + unit: By + - description: Node network errors + name: k8s.node.network.errors + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "0" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: "1" + - description: Node network IO + name: k8s.node.network.io + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "948305524" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "12542266" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest diff --git a/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_metric_groups_only_pod_group_expected.yaml b/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_metric_groups_only_pod_group_expected.yaml new file mode 100644 index 000000000000..3c61724a19b1 --- /dev/null +++ b/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_metric_groups_only_pod_group_expected.yaml @@ -0,0 +1,1441 @@ +resourceMetrics: + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: default + - key: k8s.pod.name + value: + stringValue: go-hello-world-5456b4b8cd-99vxc + - key: k8s.pod.uid + value: + stringValue: 42ad382b-ed0b-446d-9aab-3fdce8b4f9e2 + scopeMetrics: + - metrics: + - description: Pod CPU time + name: k8s.pod.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 0.300122579 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Pod CPU utilization + gauge: + dataPoints: + - asDouble: 0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.cpu.utilization + unit: "1" + - description: Pod filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.available + unit: By + - description: Pod filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.capacity + unit: By + - description: Pod filesystem usage + gauge: + dataPoints: + - asInt: "135168" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.usage + unit: By + - description: Pod memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.available + unit: By + - description: Pod memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.major_page_faults + unit: "1" + - description: Pod memory page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.page_faults + unit: "1" + - description: Pod memory rss + gauge: + dataPoints: + - asInt: "23523328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.rss + unit: By + - description: Pod memory usage + gauge: + dataPoints: + - asInt: "25726976" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.usage + unit: By + - description: Pod memory working_set + gauge: + dataPoints: + - asInt: "25722880" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.working_set + unit: By + - description: Pod network errors + name: k8s.pod.network.errors + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "0" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: "1" + - description: Pod network IO + name: k8s.pod.network.io + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "0" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-58qvv + - key: k8s.pod.uid + value: + stringValue: eb632b33-62c6-4a80-9575-a97ab363ad7f + scopeMetrics: + - metrics: + - description: Pod CPU time + name: k8s.pod.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 3.69769445 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Pod CPU utilization + gauge: + dataPoints: + - asDouble: 0.003494461 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.cpu.utilization + unit: "1" + - description: Pod filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.available + unit: By + - description: Pod filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.capacity + unit: By + - description: Pod filesystem usage + gauge: + dataPoints: + - asInt: "73728" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.usage + unit: By + - description: Pod memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.available + unit: By + - description: Pod memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.major_page_faults + unit: "1" + - description: Pod memory page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.page_faults + unit: "1" + - description: Pod memory rss + gauge: + dataPoints: + - asInt: "6832128" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.rss + unit: By + - description: Pod memory usage + gauge: + dataPoints: + - asInt: "8372224" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.usage + unit: By + - description: Pod memory working_set + gauge: + dataPoints: + - asInt: "6668288" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.working_set + unit: By + - description: Pod network errors + name: k8s.pod.network.errors + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "0" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: "1" + - description: Pod network IO + name: k8s.pod.network.io + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "606529" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "121854" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-szddj + - key: k8s.pod.uid + value: + stringValue: 0adffe8e-9849-4e05-b4cd-92d2d1e1f1c3 + scopeMetrics: + - metrics: + - description: Pod CPU time + name: k8s.pod.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 2.771541709 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Pod CPU utilization + gauge: + dataPoints: + - asDouble: 0.003430175 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.cpu.utilization + unit: "1" + - description: Pod filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.available + unit: By + - description: Pod filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.capacity + unit: By + - description: Pod filesystem usage + gauge: + dataPoints: + - asInt: "73728" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.usage + unit: By + - description: Pod memory available + gauge: + dataPoints: + - asInt: "171323392" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.available + unit: By + - description: Pod memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.major_page_faults + unit: "1" + - description: Pod memory page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.page_faults + unit: "1" + - description: Pod memory rss + gauge: + dataPoints: + - asInt: "6807552" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.rss + unit: By + - description: Pod memory usage + gauge: + dataPoints: + - asInt: "8626176" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.usage + unit: By + - description: Pod memory working_set + gauge: + dataPoints: + - asInt: "6934528" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.working_set + unit: By + - description: Pod network errors + name: k8s.pod.network.errors + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "0" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: "1" + - description: Pod network IO + name: k8s.pod.network.io + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "606880" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "120484" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: etcd-minikube + - key: k8s.pod.uid + value: + stringValue: 5a5fbd34cfb43ee7bee976798370c910 + scopeMetrics: + - metrics: + - description: Pod CPU time + name: k8s.pod.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 20.099753934 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Pod CPU utilization + gauge: + dataPoints: + - asDouble: 0.019806671 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.cpu.utilization + unit: "1" + - description: Pod filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.available + unit: By + - description: Pod filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.capacity + unit: By + - description: Pod filesystem usage + gauge: + dataPoints: + - asInt: "69632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.usage + unit: By + - description: Pod memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.available + unit: By + - description: Pod memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.major_page_faults + unit: "1" + - description: Pod memory page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.page_faults + unit: "1" + - description: Pod memory rss + gauge: + dataPoints: + - asInt: "31907840" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.rss + unit: By + - description: Pod memory usage + gauge: + dataPoints: + - asInt: "38768640" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.usage + unit: By + - description: Pod memory working_set + gauge: + dataPoints: + - asInt: "33984512" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.working_set + unit: By + - description: Pod network errors + name: k8s.pod.network.errors + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "0" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: "1" + - description: Pod network IO + name: k8s.pod.network.io + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "948305524" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "12542266" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-apiserver-minikube + - key: k8s.pod.uid + value: + stringValue: 3bef16d65fa74d46458df57d8f6f59af + scopeMetrics: + - metrics: + - description: Pod CPU time + name: k8s.pod.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 46.096711585 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Pod CPU utilization + gauge: + dataPoints: + - asDouble: 0.046223592 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.cpu.utilization + unit: "1" + - description: Pod filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.available + unit: By + - description: Pod filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.capacity + unit: By + - description: Pod filesystem usage + gauge: + dataPoints: + - asInt: "126976" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.usage + unit: By + - description: Pod memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.available + unit: By + - description: Pod memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.major_page_faults + unit: "1" + - description: Pod memory page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.page_faults + unit: "1" + - description: Pod memory rss + gauge: + dataPoints: + - asInt: "266645504" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.rss + unit: By + - description: Pod memory usage + gauge: + dataPoints: + - asInt: "269459456" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.usage + unit: By + - description: Pod memory working_set + gauge: + dataPoints: + - asInt: "243908608" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.working_set + unit: By + - description: Pod network errors + name: k8s.pod.network.errors + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "0" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: "1" + - description: Pod network IO + name: k8s.pod.network.io + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "948305362" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "12542068" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-controller-manager-minikube + - key: k8s.pod.uid + value: + stringValue: 3016593d20758bbfe68aba26604a8e3d + scopeMetrics: + - metrics: + - description: Pod CPU time + name: k8s.pod.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 16.84088936 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Pod CPU utilization + gauge: + dataPoints: + - asDouble: 0.018113404 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.cpu.utilization + unit: "1" + - description: Pod filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.available + unit: By + - description: Pod filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.capacity + unit: By + - description: Pod filesystem usage + gauge: + dataPoints: + - asInt: "143360" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.usage + unit: By + - description: Pod memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.available + unit: By + - description: Pod memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.major_page_faults + unit: "1" + - description: Pod memory page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.page_faults + unit: "1" + - description: Pod memory rss + gauge: + dataPoints: + - asInt: "36741120" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.rss + unit: By + - description: Pod memory usage + gauge: + dataPoints: + - asInt: "38703104" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.usage + unit: By + - description: Pod memory working_set + gauge: + dataPoints: + - asInt: "37675008" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.working_set + unit: By + - description: Pod network errors + name: k8s.pod.network.errors + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "0" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: "1" + - description: Pod network IO + name: k8s.pod.network.io + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "948297240" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "12510148" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-proxy-v48tf + - key: k8s.pod.uid + value: + stringValue: 0a6d6b05-0e8d-4920-8a38-926a33164d45 + scopeMetrics: + - metrics: + - description: Pod CPU time + name: k8s.pod.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 1.067441804 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Pod CPU utilization + gauge: + dataPoints: + - asDouble: 0.000276428 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.cpu.utilization + unit: "1" + - description: Pod filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.available + unit: By + - description: Pod filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.capacity + unit: By + - description: Pod filesystem usage + gauge: + dataPoints: + - asInt: "139264" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.usage + unit: By + - description: Pod memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.available + unit: By + - description: Pod memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.major_page_faults + unit: "1" + - description: Pod memory page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.page_faults + unit: "1" + - description: Pod memory rss + gauge: + dataPoints: + - asInt: "8081408" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.rss + unit: By + - description: Pod memory usage + gauge: + dataPoints: + - asInt: "10280960" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.usage + unit: By + - description: Pod memory working_set + gauge: + dataPoints: + - asInt: "9302016" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.working_set + unit: By + - description: Pod network errors + name: k8s.pod.network.errors + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "0" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: "1" + - description: Pod network IO + name: k8s.pod.network.io + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "948297282" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "12510214" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-scheduler-minikube + - key: k8s.pod.uid + value: + stringValue: 5795d0c442cb997ff93c49feeb9f6386 + scopeMetrics: + - metrics: + - description: Pod CPU time + name: k8s.pod.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 4.553997785 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Pod CPU utilization + gauge: + dataPoints: + - asDouble: 0.003620103 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.cpu.utilization + unit: "1" + - description: Pod filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.available + unit: By + - description: Pod filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.capacity + unit: By + - description: Pod filesystem usage + gauge: + dataPoints: + - asInt: "49152" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.usage + unit: By + - description: Pod memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.available + unit: By + - description: Pod memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.major_page_faults + unit: "1" + - description: Pod memory page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.page_faults + unit: "1" + - description: Pod memory rss + gauge: + dataPoints: + - asInt: "12660736" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.rss + unit: By + - description: Pod memory usage + gauge: + dataPoints: + - asInt: "14290944" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.usage + unit: By + - description: Pod memory working_set + gauge: + dataPoints: + - asInt: "12230656" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.working_set + unit: By + - description: Pod network errors + name: k8s.pod.network.errors + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "0" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: "1" + - description: Pod network IO + name: k8s.pod.network.io + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "948305362" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "12542068" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: storage-provisioner + - key: k8s.pod.uid + value: + stringValue: 14bf95e0-9451-4192-b111-807b03163670 + scopeMetrics: + - metrics: + - description: Pod CPU time + name: k8s.pod.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 1.215412064 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Pod CPU utilization + gauge: + dataPoints: + - asDouble: 0.000378421 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.cpu.utilization + unit: "1" + - description: Pod filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.available + unit: By + - description: Pod filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.capacity + unit: By + - description: Pod filesystem usage + gauge: + dataPoints: + - asInt: "53248" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.usage + unit: By + - description: Pod memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.available + unit: By + - description: Pod memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.major_page_faults + unit: "1" + - description: Pod memory page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.page_faults + unit: "1" + - description: Pod memory rss + gauge: + dataPoints: + - asInt: "12865536" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.rss + unit: By + - description: Pod memory usage + gauge: + dataPoints: + - asInt: "14356480" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.usage + unit: By + - description: Pod memory working_set + gauge: + dataPoints: + - asInt: "14356480" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.working_set + unit: By + - description: Pod network errors + name: k8s.pod.network.errors + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "0" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: "1" + - description: Pod network IO + name: k8s.pod.network.io + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "948297282" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "12510214" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest diff --git a/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_metric_groups_only_volume_group_expected.yaml b/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_metric_groups_only_volume_group_expected.yaml new file mode 100644 index 000000000000..85312e1388c2 --- /dev/null +++ b/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_metric_groups_only_volume_group_expected.yaml @@ -0,0 +1,473 @@ +resourceMetrics: + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: default + - key: k8s.pod.name + value: + stringValue: go-hello-world-5456b4b8cd-99vxc + - key: k8s.pod.uid + value: + stringValue: 42ad382b-ed0b-446d-9aab-3fdce8b4f9e2 + - key: k8s.volume.name + value: + stringValue: default-token-wgfsl + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "2015703040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "2015715328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492118" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492109" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "9" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-58qvv + - key: k8s.pod.uid + value: + stringValue: eb632b33-62c6-4a80-9575-a97ab363ad7f + - key: k8s.volume.name + value: + stringValue: config-volume + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "14810071040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9768928" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9758502" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "5" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-58qvv + - key: k8s.pod.uid + value: + stringValue: eb632b33-62c6-4a80-9575-a97ab363ad7f + - key: k8s.volume.name + value: + stringValue: coredns-token-dzc5t + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "2015703040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "2015715328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492118" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492109" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "9" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-szddj + - key: k8s.pod.uid + value: + stringValue: 0adffe8e-9849-4e05-b4cd-92d2d1e1f1c3 + - key: k8s.volume.name + value: + stringValue: config-volume + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "14810071040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9768928" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9758502" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "5" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-szddj + - key: k8s.pod.uid + value: + stringValue: 0adffe8e-9849-4e05-b4cd-92d2d1e1f1c3 + - key: k8s.volume.name + value: + stringValue: coredns-token-dzc5t + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "2015703040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "2015715328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492118" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492109" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "9" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-proxy-v48tf + - key: k8s.pod.uid + value: + stringValue: 0a6d6b05-0e8d-4920-8a38-926a33164d45 + - key: k8s.volume.name + value: + stringValue: kube-proxy + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "14810071040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9768928" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9758502" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "7" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-proxy-v48tf + - key: k8s.pod.uid + value: + stringValue: 0a6d6b05-0e8d-4920-8a38-926a33164d45 + - key: k8s.volume.name + value: + stringValue: kube-proxy-token-2z27z + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "2015703040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "2015715328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492118" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492109" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "9" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: storage-provisioner + - key: k8s.pod.uid + value: + stringValue: 14bf95e0-9451-4192-b111-807b03163670 + - key: k8s.volume.name + value: + stringValue: storage-provisioner-token-qzlx6 + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "2015703040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "2015715328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492118" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492109" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "9" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest diff --git a/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_metric_groups_pod_and_node_groups_expected.yaml b/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_metric_groups_pod_and_node_groups_expected.yaml new file mode 100644 index 000000000000..a7936daac1ed --- /dev/null +++ b/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_metric_groups_pod_and_node_groups_expected.yaml @@ -0,0 +1,1595 @@ +resourceMetrics: + - resource: + attributes: + - key: k8s.node.name + value: + stringValue: minikube + scopeMetrics: + - metrics: + - description: Node CPU time + name: k8s.node.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 263.475389988 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Node CPU utilization + gauge: + dataPoints: + - asDouble: 0.165737329 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.node.cpu.utilization + unit: "1" + - description: Node filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.node.filesystem.available + unit: By + - description: Node filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.node.filesystem.capacity + unit: By + - description: Node filesystem usage + gauge: + dataPoints: + - asInt: "2626973696" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.node.filesystem.usage + unit: By + - description: Node memory available + gauge: + dataPoints: + - asInt: "2620624896" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.node.memory.available + unit: By + - description: Node memory major_page_faults + gauge: + dataPoints: + - asInt: "12" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.node.memory.major_page_faults + unit: "1" + - description: Node memory page_faults + gauge: + dataPoints: + - asInt: "12345" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.node.memory.page_faults + unit: "1" + - description: Node memory rss + gauge: + dataPoints: + - asInt: "607125504" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.node.memory.rss + unit: By + - description: Node memory usage + gauge: + dataPoints: + - asInt: "3608727552" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.node.memory.usage + unit: By + - description: Node memory working_set + gauge: + dataPoints: + - asInt: "1234567890" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.node.memory.working_set + unit: By + - description: Node network errors + name: k8s.node.network.errors + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "0" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: "1" + - description: Node network IO + name: k8s.node.network.io + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "948305524" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "12542266" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: default + - key: k8s.pod.name + value: + stringValue: go-hello-world-5456b4b8cd-99vxc + - key: k8s.pod.uid + value: + stringValue: 42ad382b-ed0b-446d-9aab-3fdce8b4f9e2 + scopeMetrics: + - metrics: + - description: Pod CPU time + name: k8s.pod.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 0.300122579 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Pod CPU utilization + gauge: + dataPoints: + - asDouble: 0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.cpu.utilization + unit: "1" + - description: Pod filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.available + unit: By + - description: Pod filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.capacity + unit: By + - description: Pod filesystem usage + gauge: + dataPoints: + - asInt: "135168" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.usage + unit: By + - description: Pod memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.available + unit: By + - description: Pod memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.major_page_faults + unit: "1" + - description: Pod memory page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.page_faults + unit: "1" + - description: Pod memory rss + gauge: + dataPoints: + - asInt: "23523328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.rss + unit: By + - description: Pod memory usage + gauge: + dataPoints: + - asInt: "25726976" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.usage + unit: By + - description: Pod memory working_set + gauge: + dataPoints: + - asInt: "25722880" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.working_set + unit: By + - description: Pod network errors + name: k8s.pod.network.errors + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "0" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: "1" + - description: Pod network IO + name: k8s.pod.network.io + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "0" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-58qvv + - key: k8s.pod.uid + value: + stringValue: eb632b33-62c6-4a80-9575-a97ab363ad7f + scopeMetrics: + - metrics: + - description: Pod CPU time + name: k8s.pod.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 3.69769445 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Pod CPU utilization + gauge: + dataPoints: + - asDouble: 0.003494461 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.cpu.utilization + unit: "1" + - description: Pod filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.available + unit: By + - description: Pod filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.capacity + unit: By + - description: Pod filesystem usage + gauge: + dataPoints: + - asInt: "73728" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.usage + unit: By + - description: Pod memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.available + unit: By + - description: Pod memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.major_page_faults + unit: "1" + - description: Pod memory page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.page_faults + unit: "1" + - description: Pod memory rss + gauge: + dataPoints: + - asInt: "6832128" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.rss + unit: By + - description: Pod memory usage + gauge: + dataPoints: + - asInt: "8372224" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.usage + unit: By + - description: Pod memory working_set + gauge: + dataPoints: + - asInt: "6668288" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.working_set + unit: By + - description: Pod network errors + name: k8s.pod.network.errors + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "0" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: "1" + - description: Pod network IO + name: k8s.pod.network.io + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "606529" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "121854" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-szddj + - key: k8s.pod.uid + value: + stringValue: 0adffe8e-9849-4e05-b4cd-92d2d1e1f1c3 + scopeMetrics: + - metrics: + - description: Pod CPU time + name: k8s.pod.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 2.771541709 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Pod CPU utilization + gauge: + dataPoints: + - asDouble: 0.003430175 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.cpu.utilization + unit: "1" + - description: Pod filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.available + unit: By + - description: Pod filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.capacity + unit: By + - description: Pod filesystem usage + gauge: + dataPoints: + - asInt: "73728" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.usage + unit: By + - description: Pod memory available + gauge: + dataPoints: + - asInt: "171323392" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.available + unit: By + - description: Pod memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.major_page_faults + unit: "1" + - description: Pod memory page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.page_faults + unit: "1" + - description: Pod memory rss + gauge: + dataPoints: + - asInt: "6807552" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.rss + unit: By + - description: Pod memory usage + gauge: + dataPoints: + - asInt: "8626176" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.usage + unit: By + - description: Pod memory working_set + gauge: + dataPoints: + - asInt: "6934528" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.working_set + unit: By + - description: Pod network errors + name: k8s.pod.network.errors + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "0" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: "1" + - description: Pod network IO + name: k8s.pod.network.io + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "606880" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "120484" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: etcd-minikube + - key: k8s.pod.uid + value: + stringValue: 5a5fbd34cfb43ee7bee976798370c910 + scopeMetrics: + - metrics: + - description: Pod CPU time + name: k8s.pod.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 20.099753934 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Pod CPU utilization + gauge: + dataPoints: + - asDouble: 0.019806671 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.cpu.utilization + unit: "1" + - description: Pod filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.available + unit: By + - description: Pod filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.capacity + unit: By + - description: Pod filesystem usage + gauge: + dataPoints: + - asInt: "69632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.usage + unit: By + - description: Pod memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.available + unit: By + - description: Pod memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.major_page_faults + unit: "1" + - description: Pod memory page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.page_faults + unit: "1" + - description: Pod memory rss + gauge: + dataPoints: + - asInt: "31907840" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.rss + unit: By + - description: Pod memory usage + gauge: + dataPoints: + - asInt: "38768640" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.usage + unit: By + - description: Pod memory working_set + gauge: + dataPoints: + - asInt: "33984512" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.working_set + unit: By + - description: Pod network errors + name: k8s.pod.network.errors + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "0" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: "1" + - description: Pod network IO + name: k8s.pod.network.io + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "948305524" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "12542266" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-apiserver-minikube + - key: k8s.pod.uid + value: + stringValue: 3bef16d65fa74d46458df57d8f6f59af + scopeMetrics: + - metrics: + - description: Pod CPU time + name: k8s.pod.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 46.096711585 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Pod CPU utilization + gauge: + dataPoints: + - asDouble: 0.046223592 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.cpu.utilization + unit: "1" + - description: Pod filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.available + unit: By + - description: Pod filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.capacity + unit: By + - description: Pod filesystem usage + gauge: + dataPoints: + - asInt: "126976" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.usage + unit: By + - description: Pod memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.available + unit: By + - description: Pod memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.major_page_faults + unit: "1" + - description: Pod memory page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.page_faults + unit: "1" + - description: Pod memory rss + gauge: + dataPoints: + - asInt: "266645504" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.rss + unit: By + - description: Pod memory usage + gauge: + dataPoints: + - asInt: "269459456" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.usage + unit: By + - description: Pod memory working_set + gauge: + dataPoints: + - asInt: "243908608" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.working_set + unit: By + - description: Pod network errors + name: k8s.pod.network.errors + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "0" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: "1" + - description: Pod network IO + name: k8s.pod.network.io + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "948305362" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "12542068" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-controller-manager-minikube + - key: k8s.pod.uid + value: + stringValue: 3016593d20758bbfe68aba26604a8e3d + scopeMetrics: + - metrics: + - description: Pod CPU time + name: k8s.pod.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 16.84088936 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Pod CPU utilization + gauge: + dataPoints: + - asDouble: 0.018113404 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.cpu.utilization + unit: "1" + - description: Pod filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.available + unit: By + - description: Pod filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.capacity + unit: By + - description: Pod filesystem usage + gauge: + dataPoints: + - asInt: "143360" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.usage + unit: By + - description: Pod memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.available + unit: By + - description: Pod memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.major_page_faults + unit: "1" + - description: Pod memory page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.page_faults + unit: "1" + - description: Pod memory rss + gauge: + dataPoints: + - asInt: "36741120" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.rss + unit: By + - description: Pod memory usage + gauge: + dataPoints: + - asInt: "38703104" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.usage + unit: By + - description: Pod memory working_set + gauge: + dataPoints: + - asInt: "37675008" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.working_set + unit: By + - description: Pod network errors + name: k8s.pod.network.errors + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "0" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: "1" + - description: Pod network IO + name: k8s.pod.network.io + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "948297240" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "12510148" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-proxy-v48tf + - key: k8s.pod.uid + value: + stringValue: 0a6d6b05-0e8d-4920-8a38-926a33164d45 + scopeMetrics: + - metrics: + - description: Pod CPU time + name: k8s.pod.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 1.067441804 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Pod CPU utilization + gauge: + dataPoints: + - asDouble: 0.000276428 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.cpu.utilization + unit: "1" + - description: Pod filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.available + unit: By + - description: Pod filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.capacity + unit: By + - description: Pod filesystem usage + gauge: + dataPoints: + - asInt: "139264" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.usage + unit: By + - description: Pod memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.available + unit: By + - description: Pod memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.major_page_faults + unit: "1" + - description: Pod memory page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.page_faults + unit: "1" + - description: Pod memory rss + gauge: + dataPoints: + - asInt: "8081408" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.rss + unit: By + - description: Pod memory usage + gauge: + dataPoints: + - asInt: "10280960" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.usage + unit: By + - description: Pod memory working_set + gauge: + dataPoints: + - asInt: "9302016" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.working_set + unit: By + - description: Pod network errors + name: k8s.pod.network.errors + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "0" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: "1" + - description: Pod network IO + name: k8s.pod.network.io + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "948297282" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "12510214" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-scheduler-minikube + - key: k8s.pod.uid + value: + stringValue: 5795d0c442cb997ff93c49feeb9f6386 + scopeMetrics: + - metrics: + - description: Pod CPU time + name: k8s.pod.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 4.553997785 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Pod CPU utilization + gauge: + dataPoints: + - asDouble: 0.003620103 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.cpu.utilization + unit: "1" + - description: Pod filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.available + unit: By + - description: Pod filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.capacity + unit: By + - description: Pod filesystem usage + gauge: + dataPoints: + - asInt: "49152" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.usage + unit: By + - description: Pod memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.available + unit: By + - description: Pod memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.major_page_faults + unit: "1" + - description: Pod memory page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.page_faults + unit: "1" + - description: Pod memory rss + gauge: + dataPoints: + - asInt: "12660736" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.rss + unit: By + - description: Pod memory usage + gauge: + dataPoints: + - asInt: "14290944" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.usage + unit: By + - description: Pod memory working_set + gauge: + dataPoints: + - asInt: "12230656" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.working_set + unit: By + - description: Pod network errors + name: k8s.pod.network.errors + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "0" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: "1" + - description: Pod network IO + name: k8s.pod.network.io + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "948305362" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "12542068" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: storage-provisioner + - key: k8s.pod.uid + value: + stringValue: 14bf95e0-9451-4192-b111-807b03163670 + scopeMetrics: + - metrics: + - description: Pod CPU time + name: k8s.pod.cpu.time + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 1.215412064 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: s + - description: Pod CPU utilization + gauge: + dataPoints: + - asDouble: 0.000378421 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.cpu.utilization + unit: "1" + - description: Pod filesystem available + gauge: + dataPoints: + - asInt: "13717454848" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.available + unit: By + - description: Pod filesystem capacity + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.capacity + unit: By + - description: Pod filesystem usage + gauge: + dataPoints: + - asInt: "53248" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.filesystem.usage + unit: By + - description: Pod memory available + gauge: + dataPoints: + - asInt: "171589632" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.available + unit: By + - description: Pod memory major_page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.major_page_faults + unit: "1" + - description: Pod memory page_faults + gauge: + dataPoints: + - asInt: "0" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.page_faults + unit: "1" + - description: Pod memory rss + gauge: + dataPoints: + - asInt: "12865536" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.rss + unit: By + - description: Pod memory usage + gauge: + dataPoints: + - asInt: "14356480" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.usage + unit: By + - description: Pod memory working_set + gauge: + dataPoints: + - asInt: "14356480" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory.working_set + unit: By + - description: Pod network errors + name: k8s.pod.network.errors + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "0" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: "1" + - description: Pod network IO + name: k8s.pod.network.io + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "948297282" + attributes: + - key: direction + value: + stringValue: receive + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asInt: "12510214" + attributes: + - key: direction + value: + stringValue: transmit + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + isMonotonic: true + unit: By + scope: + name: otelcol/kubeletstatsreceiver + version: latest diff --git a/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_percent_expected.yaml b/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_percent_expected.yaml new file mode 100644 index 000000000000..1cbb7b7ab407 --- /dev/null +++ b/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_percent_expected.yaml @@ -0,0 +1,100 @@ +resourceMetrics: + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-scheduler-minikube + - key: k8s.pod.uid + value: + stringValue: 5795d0c442cb997ff93c49feeb9f6386 + scopeMetrics: + - metrics: + - description: Pod cpu utilization as a ratio of the pod's total container limits. If any container is missing a limit the metric is not emitted. + gauge: + dataPoints: + - asDouble: 0.90502575 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.cpu_limit_utilization + unit: "1" + - description: Pod cpu utilization as a ratio of the pod's total container requests. If any container is missing a request the metric is not emitted. + gauge: + dataPoints: + - asDouble: 1.8100515 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.cpu_request_utilization + unit: "1" + - description: Pod memory utilization as a ratio of the pod's total container limits. If any container is missing a limit the metric is not emitted. + gauge: + dataPoints: + - asDouble: 0.14290944 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory_limit_utilization + unit: "1" + - description: Pod memory utilization as a ratio of the pod's total container requests. If any container is missing a request the metric is not emitted. + gauge: + dataPoints: + - asDouble: 1.4290944 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.pod.memory_request_utilization + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.container.name + value: + stringValue: kube-scheduler + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-scheduler-minikube + - key: k8s.pod.uid + value: + stringValue: 5795d0c442cb997ff93c49feeb9f6386 + scopeMetrics: + - metrics: + - description: Container cpu utilization as a ratio of the container's limits + gauge: + dataPoints: + - asDouble: 0.8596562499999999 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.container.cpu_limit_utilization + unit: "1" + - description: Container cpu utilization as a ratio of the container's requests + gauge: + dataPoints: + - asDouble: 1.7193124999999998 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.container.cpu_request_utilization + unit: "1" + - description: Container memory utilization as a ratio of the container's limits + gauge: + dataPoints: + - asDouble: 0.1370112 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.container.memory_limit_utilization + unit: "1" + - description: Container memory utilization as a ratio of the container's requests + gauge: + dataPoints: + - asDouble: 1.370112 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.container.memory_request_utilization + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest diff --git a/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_pvc_labels_do_not_collect_detailed_labels_expected.yaml b/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_pvc_labels_do_not_collect_detailed_labels_expected.yaml new file mode 100644 index 000000000000..894ea81f3c4d --- /dev/null +++ b/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_pvc_labels_do_not_collect_detailed_labels_expected.yaml @@ -0,0 +1,506 @@ +resourceMetrics: + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: default + - key: k8s.pod.name + value: + stringValue: go-hello-world-5456b4b8cd-99vxc + - key: k8s.pod.uid + value: + stringValue: 42ad382b-ed0b-446d-9aab-3fdce8b4f9e2 + - key: k8s.volume.name + value: + stringValue: default-token-wgfsl + - key: k8s.volume.type + value: + stringValue: secret + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "2015703040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "2015715328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492118" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492109" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "9" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-58qvv + - key: k8s.pod.uid + value: + stringValue: eb632b33-62c6-4a80-9575-a97ab363ad7f + - key: k8s.volume.name + value: + stringValue: config-volume + - key: k8s.volume.type + value: + stringValue: configMap + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "14810071040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9768928" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9758502" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "5" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-szddj + - key: k8s.pod.uid + value: + stringValue: 0adffe8e-9849-4e05-b4cd-92d2d1e1f1c3 + - key: k8s.volume.name + value: + stringValue: config-volume + - key: k8s.volume.type + value: + stringValue: configMap + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "14810071040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9768928" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9758502" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "5" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-szddj + - key: k8s.pod.uid + value: + stringValue: 0adffe8e-9849-4e05-b4cd-92d2d1e1f1c3 + - key: k8s.volume.name + value: + stringValue: coredns-token-dzc5t + - key: k8s.volume.type + value: + stringValue: secret + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "2015703040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "2015715328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492118" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492109" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "9" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-proxy-v48tf + - key: k8s.pod.uid + value: + stringValue: 0a6d6b05-0e8d-4920-8a38-926a33164d45 + - key: k8s.volume.name + value: + stringValue: kube-proxy-token-2z27z + - key: k8s.volume.type + value: + stringValue: secret + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "2015703040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "2015715328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492118" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492109" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "9" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.persistentvolumeclaim.name + value: + stringValue: volume_claim_1 + - key: k8s.pod.name + value: + stringValue: storage-provisioner + - key: k8s.pod.uid + value: + stringValue: 14bf95e0-9451-4192-b111-807b03163670 + - key: k8s.volume.name + value: + stringValue: storage-provisioner-token-qzlx6 + - key: k8s.volume.type + value: + stringValue: persistentVolumeClaim + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "2015703040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "2015715328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492118" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492109" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "9" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.persistentvolumeclaim.name + value: + stringValue: volume_claim_2 + - key: k8s.pod.name + value: + stringValue: kube-proxy-v48tf + - key: k8s.pod.uid + value: + stringValue: 0a6d6b05-0e8d-4920-8a38-926a33164d45 + - key: k8s.volume.name + value: + stringValue: kube-proxy + - key: k8s.volume.type + value: + stringValue: persistentVolumeClaim + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "14810071040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9768928" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9758502" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "7" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.persistentvolumeclaim.name + value: + stringValue: volume_claim_3 + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-58qvv + - key: k8s.pod.uid + value: + stringValue: eb632b33-62c6-4a80-9575-a97ab363ad7f + - key: k8s.volume.name + value: + stringValue: coredns-token-dzc5t + - key: k8s.volume.type + value: + stringValue: persistentVolumeClaim + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "2015703040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "2015715328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492118" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492109" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "9" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest diff --git a/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_pvc_labels_empty_volume_name_in_pvc_expected.yaml b/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_pvc_labels_empty_volume_name_in_pvc_expected.yaml new file mode 100644 index 000000000000..c2b10a8e554d --- /dev/null +++ b/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_pvc_labels_empty_volume_name_in_pvc_expected.yaml @@ -0,0 +1,459 @@ +resourceMetrics: + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: default + - key: k8s.pod.name + value: + stringValue: go-hello-world-5456b4b8cd-99vxc + - key: k8s.pod.uid + value: + stringValue: 42ad382b-ed0b-446d-9aab-3fdce8b4f9e2 + - key: k8s.volume.name + value: + stringValue: default-token-wgfsl + - key: k8s.volume.type + value: + stringValue: secret + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "2015703040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "2015715328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492118" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492109" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "9" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-58qvv + - key: k8s.pod.uid + value: + stringValue: eb632b33-62c6-4a80-9575-a97ab363ad7f + - key: k8s.volume.name + value: + stringValue: config-volume + - key: k8s.volume.type + value: + stringValue: configMap + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "14810071040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9768928" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9758502" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "5" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-szddj + - key: k8s.pod.uid + value: + stringValue: 0adffe8e-9849-4e05-b4cd-92d2d1e1f1c3 + - key: k8s.volume.name + value: + stringValue: config-volume + - key: k8s.volume.type + value: + stringValue: configMap + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "14810071040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9768928" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9758502" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "5" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-szddj + - key: k8s.pod.uid + value: + stringValue: 0adffe8e-9849-4e05-b4cd-92d2d1e1f1c3 + - key: k8s.volume.name + value: + stringValue: coredns-token-dzc5t + - key: k8s.volume.type + value: + stringValue: secret + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "2015703040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "2015715328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492118" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492109" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "9" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-proxy-v48tf + - key: k8s.pod.uid + value: + stringValue: 0a6d6b05-0e8d-4920-8a38-926a33164d45 + - key: k8s.volume.name + value: + stringValue: kube-proxy-token-2z27z + - key: k8s.volume.type + value: + stringValue: secret + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "2015703040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "2015715328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492118" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492109" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "9" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: aws.volume.id + value: + stringValue: volume_id + - key: fs.type + value: + stringValue: fs_type + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.persistentvolumeclaim.name + value: + stringValue: volume_claim_1 + - key: k8s.pod.name + value: + stringValue: storage-provisioner + - key: k8s.pod.uid + value: + stringValue: 14bf95e0-9451-4192-b111-807b03163670 + - key: k8s.volume.name + value: + stringValue: storage-provisioner-token-qzlx6 + - key: k8s.volume.type + value: + stringValue: awsElasticBlockStore + - key: partition + value: + stringValue: "10" + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "2015703040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "2015715328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492118" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492109" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "9" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: fs.type + value: + stringValue: fs_type + - key: gce.pd.name + value: + stringValue: pd_name + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.persistentvolumeclaim.name + value: + stringValue: volume_claim_2 + - key: k8s.pod.name + value: + stringValue: kube-proxy-v48tf + - key: k8s.pod.uid + value: + stringValue: 0a6d6b05-0e8d-4920-8a38-926a33164d45 + - key: k8s.volume.name + value: + stringValue: kube-proxy + - key: k8s.volume.type + value: + stringValue: gcePersistentDisk + - key: partition + value: + stringValue: "10" + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "14810071040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9768928" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9758502" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "7" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest diff --git a/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_pvc_labels_non_existent_volume_in_pvc_expected.yaml b/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_pvc_labels_non_existent_volume_in_pvc_expected.yaml new file mode 100644 index 000000000000..c2b10a8e554d --- /dev/null +++ b/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_pvc_labels_non_existent_volume_in_pvc_expected.yaml @@ -0,0 +1,459 @@ +resourceMetrics: + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: default + - key: k8s.pod.name + value: + stringValue: go-hello-world-5456b4b8cd-99vxc + - key: k8s.pod.uid + value: + stringValue: 42ad382b-ed0b-446d-9aab-3fdce8b4f9e2 + - key: k8s.volume.name + value: + stringValue: default-token-wgfsl + - key: k8s.volume.type + value: + stringValue: secret + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "2015703040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "2015715328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492118" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492109" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "9" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-58qvv + - key: k8s.pod.uid + value: + stringValue: eb632b33-62c6-4a80-9575-a97ab363ad7f + - key: k8s.volume.name + value: + stringValue: config-volume + - key: k8s.volume.type + value: + stringValue: configMap + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "14810071040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9768928" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9758502" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "5" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-szddj + - key: k8s.pod.uid + value: + stringValue: 0adffe8e-9849-4e05-b4cd-92d2d1e1f1c3 + - key: k8s.volume.name + value: + stringValue: config-volume + - key: k8s.volume.type + value: + stringValue: configMap + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "14810071040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9768928" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9758502" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "5" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-szddj + - key: k8s.pod.uid + value: + stringValue: 0adffe8e-9849-4e05-b4cd-92d2d1e1f1c3 + - key: k8s.volume.name + value: + stringValue: coredns-token-dzc5t + - key: k8s.volume.type + value: + stringValue: secret + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "2015703040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "2015715328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492118" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492109" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "9" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-proxy-v48tf + - key: k8s.pod.uid + value: + stringValue: 0a6d6b05-0e8d-4920-8a38-926a33164d45 + - key: k8s.volume.name + value: + stringValue: kube-proxy-token-2z27z + - key: k8s.volume.type + value: + stringValue: secret + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "2015703040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "2015715328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492118" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492109" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "9" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: aws.volume.id + value: + stringValue: volume_id + - key: fs.type + value: + stringValue: fs_type + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.persistentvolumeclaim.name + value: + stringValue: volume_claim_1 + - key: k8s.pod.name + value: + stringValue: storage-provisioner + - key: k8s.pod.uid + value: + stringValue: 14bf95e0-9451-4192-b111-807b03163670 + - key: k8s.volume.name + value: + stringValue: storage-provisioner-token-qzlx6 + - key: k8s.volume.type + value: + stringValue: awsElasticBlockStore + - key: partition + value: + stringValue: "10" + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "2015703040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "2015715328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492118" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492109" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "9" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: fs.type + value: + stringValue: fs_type + - key: gce.pd.name + value: + stringValue: pd_name + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.persistentvolumeclaim.name + value: + stringValue: volume_claim_2 + - key: k8s.pod.name + value: + stringValue: kube-proxy-v48tf + - key: k8s.pod.uid + value: + stringValue: 0a6d6b05-0e8d-4920-8a38-926a33164d45 + - key: k8s.volume.name + value: + stringValue: kube-proxy + - key: k8s.volume.type + value: + stringValue: gcePersistentDisk + - key: partition + value: + stringValue: "10" + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "14810071040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9768928" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9758502" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "7" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest diff --git a/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_pvc_labels_pvc_doesnot_exist_expected.yaml b/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_pvc_labels_pvc_doesnot_exist_expected.yaml new file mode 100644 index 000000000000..7902da2a6afe --- /dev/null +++ b/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_pvc_labels_pvc_doesnot_exist_expected.yaml @@ -0,0 +1,311 @@ +resourceMetrics: + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: default + - key: k8s.pod.name + value: + stringValue: go-hello-world-5456b4b8cd-99vxc + - key: k8s.pod.uid + value: + stringValue: 42ad382b-ed0b-446d-9aab-3fdce8b4f9e2 + - key: k8s.volume.name + value: + stringValue: default-token-wgfsl + - key: k8s.volume.type + value: + stringValue: secret + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "2015703040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "2015715328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492118" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492109" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "9" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-58qvv + - key: k8s.pod.uid + value: + stringValue: eb632b33-62c6-4a80-9575-a97ab363ad7f + - key: k8s.volume.name + value: + stringValue: config-volume + - key: k8s.volume.type + value: + stringValue: configMap + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "14810071040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9768928" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9758502" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "5" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-szddj + - key: k8s.pod.uid + value: + stringValue: 0adffe8e-9849-4e05-b4cd-92d2d1e1f1c3 + - key: k8s.volume.name + value: + stringValue: config-volume + - key: k8s.volume.type + value: + stringValue: configMap + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "14810071040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9768928" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9758502" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "5" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-szddj + - key: k8s.pod.uid + value: + stringValue: 0adffe8e-9849-4e05-b4cd-92d2d1e1f1c3 + - key: k8s.volume.name + value: + stringValue: coredns-token-dzc5t + - key: k8s.volume.type + value: + stringValue: secret + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "2015703040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "2015715328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492118" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492109" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "9" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-proxy-v48tf + - key: k8s.pod.uid + value: + stringValue: 0a6d6b05-0e8d-4920-8a38-926a33164d45 + - key: k8s.volume.name + value: + stringValue: kube-proxy-token-2z27z + - key: k8s.volume.type + value: + stringValue: secret + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "2015703040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "2015715328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492118" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492109" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "9" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest diff --git a/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_pvc_labels_successful_expected.yaml b/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_pvc_labels_successful_expected.yaml new file mode 100644 index 000000000000..7991d489c2a7 --- /dev/null +++ b/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_pvc_labels_successful_expected.yaml @@ -0,0 +1,530 @@ +resourceMetrics: + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: default + - key: k8s.pod.name + value: + stringValue: go-hello-world-5456b4b8cd-99vxc + - key: k8s.pod.uid + value: + stringValue: 42ad382b-ed0b-446d-9aab-3fdce8b4f9e2 + - key: k8s.volume.name + value: + stringValue: default-token-wgfsl + - key: k8s.volume.type + value: + stringValue: secret + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "2015703040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "2015715328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492118" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492109" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "9" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-58qvv + - key: k8s.pod.uid + value: + stringValue: eb632b33-62c6-4a80-9575-a97ab363ad7f + - key: k8s.volume.name + value: + stringValue: config-volume + - key: k8s.volume.type + value: + stringValue: configMap + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "14810071040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9768928" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9758502" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "5" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-szddj + - key: k8s.pod.uid + value: + stringValue: 0adffe8e-9849-4e05-b4cd-92d2d1e1f1c3 + - key: k8s.volume.name + value: + stringValue: config-volume + - key: k8s.volume.type + value: + stringValue: configMap + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "14810071040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9768928" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9758502" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "5" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-szddj + - key: k8s.pod.uid + value: + stringValue: 0adffe8e-9849-4e05-b4cd-92d2d1e1f1c3 + - key: k8s.volume.name + value: + stringValue: coredns-token-dzc5t + - key: k8s.volume.type + value: + stringValue: secret + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "2015703040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "2015715328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492118" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492109" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "9" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.pod.name + value: + stringValue: kube-proxy-v48tf + - key: k8s.pod.uid + value: + stringValue: 0a6d6b05-0e8d-4920-8a38-926a33164d45 + - key: k8s.volume.name + value: + stringValue: kube-proxy-token-2z27z + - key: k8s.volume.type + value: + stringValue: secret + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "2015703040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "2015715328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492118" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492109" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "9" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: glusterfs.endpoints.name + value: + stringValue: endpoints_name + - key: glusterfs.path + value: + stringValue: path + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.persistentvolumeclaim.name + value: + stringValue: volume_claim_3 + - key: k8s.pod.name + value: + stringValue: coredns-66bff467f8-58qvv + - key: k8s.pod.uid + value: + stringValue: eb632b33-62c6-4a80-9575-a97ab363ad7f + - key: k8s.volume.name + value: + stringValue: coredns-token-dzc5t + - key: k8s.volume.type + value: + stringValue: glusterfs + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "2015703040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "2015715328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492118" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492109" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "9" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: aws.volume.id + value: + stringValue: volume_id + - key: fs.type + value: + stringValue: fs_type + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.persistentvolumeclaim.name + value: + stringValue: volume_claim_1 + - key: k8s.pod.name + value: + stringValue: storage-provisioner + - key: k8s.pod.uid + value: + stringValue: 14bf95e0-9451-4192-b111-807b03163670 + - key: k8s.volume.name + value: + stringValue: storage-provisioner-token-qzlx6 + - key: k8s.volume.type + value: + stringValue: awsElasticBlockStore + - key: partition + value: + stringValue: "10" + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "2015703040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "2015715328" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492118" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "492109" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "9" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest + - resource: + attributes: + - key: fs.type + value: + stringValue: fs_type + - key: gce.pd.name + value: + stringValue: pd_name + - key: k8s.namespace.name + value: + stringValue: kube-system + - key: k8s.persistentvolumeclaim.name + value: + stringValue: volume_claim_2 + - key: k8s.pod.name + value: + stringValue: kube-proxy-v48tf + - key: k8s.pod.uid + value: + stringValue: 0a6d6b05-0e8d-4920-8a38-926a33164d45 + - key: k8s.volume.name + value: + stringValue: kube-proxy + - key: k8s.volume.type + value: + stringValue: gcePersistentDisk + - key: partition + value: + stringValue: "10" + scopeMetrics: + - metrics: + - description: The number of available bytes in the volume. + gauge: + dataPoints: + - asInt: "14810071040" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.available + unit: By + - description: The total capacity in bytes of the volume. + gauge: + dataPoints: + - asInt: "17361125376" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.capacity + unit: By + - description: The total inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9768928" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes + unit: "1" + - description: The free inodes in the filesystem. + gauge: + dataPoints: + - asInt: "9758502" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.free + unit: "1" + - description: The inodes used by the filesystem. This may not equal inodes - free because filesystem may share inodes with other filesystems. + gauge: + dataPoints: + - asInt: "7" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + name: k8s.volume.inodes.used + unit: "1" + scope: + name: otelcol/kubeletstatsreceiver + version: latest