From 338cdb393dcd43b4cebd113bc9e725e69bd7dc0c Mon Sep 17 00:00:00 2001 From: Marc Sanmiquel Date: Tue, 27 Jun 2023 08:12:20 +0200 Subject: [PATCH] [receiver/dockerstats] Add optional resource attributes (#21185) **Description:** Add `container.image.id` and `container.command_line` as optional resource attributes, disabled by default. **Link to tracking Issue:** Tracking issue https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/21092 **Testing:** Until this point, all resource attributes have been enabled by default, resulting in the coupling of the [test](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/7bf5d66fae6c1c5360ec2875948f2c2adab6c44f/receiver/dockerstatsreceiver/receiver_test.go#L191) to the default configuration. In order to test the current implementation with the new resource attributes enabled & disabled, a minor refactoring was required in the `TestScrapeV2` test, allowing to pass different configurations for each test. Refer to the following commit 508dbee9aa9a22c1ca79f16bba5abeecceeb9c48 to check the refactor in the test. **Documentation:** New resource attributes documentation was generated by `mdatagen`. --- ...cker-add-optional-resource-attributes.yaml | 16 + receiver/dockerstatsreceiver/documentation.md | 2 + .../internal/metadata/generated_config.go | 18 +- .../metadata/generated_config_test.go | 24 +- .../internal/metadata/generated_metrics.go | 18 + .../metadata/generated_metrics_test.go | 20 +- .../internal/metadata/testdata/config.yaml | 8 + receiver/dockerstatsreceiver/metadata.yaml | 8 + receiver/dockerstatsreceiver/receiver.go | 5 +- receiver/dockerstatsreceiver/receiver_test.go | 99 ++- .../mock/cgroups_v2/expected_metrics.yaml | 138 +-- .../mock/no_pids_stats/expected_metrics.yaml | 294 +++---- .../mock/pids_stats_max/expected_metrics.yaml | 154 ++-- .../single_container/expected_metrics.yaml | 298 +++---- .../container.json | 218 +++++ .../containers.json | 54 ++ .../expected_metrics.yaml | 807 ++++++++++++++++++ .../stats.json | 182 ++++ .../mock/two_containers/expected_metrics.yaml | 540 ++++++------ 19 files changed, 2159 insertions(+), 744 deletions(-) create mode 100644 .chloggen/docker-add-optional-resource-attributes.yaml create mode 100644 receiver/dockerstatsreceiver/testdata/mock/single_container_with_optional_resource_attributes/container.json create mode 100644 receiver/dockerstatsreceiver/testdata/mock/single_container_with_optional_resource_attributes/containers.json create mode 100644 receiver/dockerstatsreceiver/testdata/mock/single_container_with_optional_resource_attributes/expected_metrics.yaml create mode 100644 receiver/dockerstatsreceiver/testdata/mock/single_container_with_optional_resource_attributes/stats.json diff --git a/.chloggen/docker-add-optional-resource-attributes.yaml b/.chloggen/docker-add-optional-resource-attributes.yaml new file mode 100644 index 000000000000..dcecb10df930 --- /dev/null +++ b/.chloggen/docker-add-optional-resource-attributes.yaml @@ -0,0 +1,16 @@ +# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' +change_type: enhancement + +# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver) +component: dockerstatsreceiver + +# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). +note: "Add `container.image.id` and `container.command_line` optional resource attributes" + +# One or more tracking issues related to the change +issues: [21092] + +# (Optional) One or more lines of additional information to render under the primary note. +# These lines will be padded with 2 spaces and then inserted directly into the document. +# Use pipe (|) for multiline entries. +subtext: diff --git a/receiver/dockerstatsreceiver/documentation.md b/receiver/dockerstatsreceiver/documentation.md index bd489a33eec1..c4e6f1c315a8 100644 --- a/receiver/dockerstatsreceiver/documentation.md +++ b/receiver/dockerstatsreceiver/documentation.md @@ -718,8 +718,10 @@ Time elapsed since container start time. | Name | Description | Values | Enabled | | ---- | ----------- | ------ | ------- | +| container.command_line | The full command executed by the container. | Any Str | false | | container.hostname | The hostname of the container. | Any Str | true | | container.id | The ID of the container. | Any Str | true | +| container.image.id | The ID of the container image. | Any Str | false | | container.image.name | The name of the docker image in use by the container. | Any Str | true | | container.name | The name of the container. | Any Str | true | | container.runtime | The runtime of the container. For this receiver, it will always be 'docker'. | Any Str | true | diff --git a/receiver/dockerstatsreceiver/internal/metadata/generated_config.go b/receiver/dockerstatsreceiver/internal/metadata/generated_config.go index fd48ec3beb9e..a5f78a7dcbcd 100644 --- a/receiver/dockerstatsreceiver/internal/metadata/generated_config.go +++ b/receiver/dockerstatsreceiver/internal/metadata/generated_config.go @@ -307,21 +307,29 @@ type ResourceAttributeConfig struct { // ResourceAttributesConfig provides config for docker_stats resource attributes. type ResourceAttributesConfig struct { - ContainerHostname ResourceAttributeConfig `mapstructure:"container.hostname"` - ContainerID ResourceAttributeConfig `mapstructure:"container.id"` - ContainerImageName ResourceAttributeConfig `mapstructure:"container.image.name"` - ContainerName ResourceAttributeConfig `mapstructure:"container.name"` - ContainerRuntime ResourceAttributeConfig `mapstructure:"container.runtime"` + ContainerCommandLine ResourceAttributeConfig `mapstructure:"container.command_line"` + ContainerHostname ResourceAttributeConfig `mapstructure:"container.hostname"` + ContainerID ResourceAttributeConfig `mapstructure:"container.id"` + ContainerImageID ResourceAttributeConfig `mapstructure:"container.image.id"` + ContainerImageName ResourceAttributeConfig `mapstructure:"container.image.name"` + ContainerName ResourceAttributeConfig `mapstructure:"container.name"` + ContainerRuntime ResourceAttributeConfig `mapstructure:"container.runtime"` } func DefaultResourceAttributesConfig() ResourceAttributesConfig { return ResourceAttributesConfig{ + ContainerCommandLine: ResourceAttributeConfig{ + Enabled: false, + }, ContainerHostname: ResourceAttributeConfig{ Enabled: true, }, ContainerID: ResourceAttributeConfig{ Enabled: true, }, + ContainerImageID: ResourceAttributeConfig{ + Enabled: false, + }, ContainerImageName: ResourceAttributeConfig{ Enabled: true, }, diff --git a/receiver/dockerstatsreceiver/internal/metadata/generated_config_test.go b/receiver/dockerstatsreceiver/internal/metadata/generated_config_test.go index c1a93fea3262..e48235ddb89f 100644 --- a/receiver/dockerstatsreceiver/internal/metadata/generated_config_test.go +++ b/receiver/dockerstatsreceiver/internal/metadata/generated_config_test.go @@ -95,11 +95,13 @@ func TestMetricsBuilderConfig(t *testing.T) { ContainerUptime: MetricConfig{Enabled: true}, }, ResourceAttributes: ResourceAttributesConfig{ - ContainerHostname: ResourceAttributeConfig{Enabled: true}, - ContainerID: ResourceAttributeConfig{Enabled: true}, - ContainerImageName: ResourceAttributeConfig{Enabled: true}, - ContainerName: ResourceAttributeConfig{Enabled: true}, - ContainerRuntime: ResourceAttributeConfig{Enabled: true}, + ContainerCommandLine: ResourceAttributeConfig{Enabled: true}, + ContainerHostname: ResourceAttributeConfig{Enabled: true}, + ContainerID: ResourceAttributeConfig{Enabled: true}, + ContainerImageID: ResourceAttributeConfig{Enabled: true}, + ContainerImageName: ResourceAttributeConfig{Enabled: true}, + ContainerName: ResourceAttributeConfig{Enabled: true}, + ContainerRuntime: ResourceAttributeConfig{Enabled: true}, }, }, }, @@ -176,11 +178,13 @@ func TestMetricsBuilderConfig(t *testing.T) { ContainerUptime: MetricConfig{Enabled: false}, }, ResourceAttributes: ResourceAttributesConfig{ - ContainerHostname: ResourceAttributeConfig{Enabled: false}, - ContainerID: ResourceAttributeConfig{Enabled: false}, - ContainerImageName: ResourceAttributeConfig{Enabled: false}, - ContainerName: ResourceAttributeConfig{Enabled: false}, - ContainerRuntime: ResourceAttributeConfig{Enabled: false}, + ContainerCommandLine: ResourceAttributeConfig{Enabled: false}, + ContainerHostname: ResourceAttributeConfig{Enabled: false}, + ContainerID: ResourceAttributeConfig{Enabled: false}, + ContainerImageID: ResourceAttributeConfig{Enabled: false}, + ContainerImageName: ResourceAttributeConfig{Enabled: false}, + ContainerName: ResourceAttributeConfig{Enabled: false}, + ContainerRuntime: ResourceAttributeConfig{Enabled: false}, }, }, }, diff --git a/receiver/dockerstatsreceiver/internal/metadata/generated_metrics.go b/receiver/dockerstatsreceiver/internal/metadata/generated_metrics.go index ebdc28ae6c77..5cad6471a7fc 100644 --- a/receiver/dockerstatsreceiver/internal/metadata/generated_metrics.go +++ b/receiver/dockerstatsreceiver/internal/metadata/generated_metrics.go @@ -3658,6 +3658,15 @@ func (mb *MetricsBuilder) updateCapacity(rm pmetric.ResourceMetrics) { // ResourceMetricsOption applies changes to provided resource metrics. type ResourceMetricsOption func(ResourceAttributesConfig, pmetric.ResourceMetrics) +// WithContainerCommandLine sets provided value as "container.command_line" attribute for current resource. +func WithContainerCommandLine(val string) ResourceMetricsOption { + return func(rac ResourceAttributesConfig, rm pmetric.ResourceMetrics) { + if rac.ContainerCommandLine.Enabled { + rm.Resource().Attributes().PutStr("container.command_line", val) + } + } +} + // WithContainerHostname sets provided value as "container.hostname" attribute for current resource. func WithContainerHostname(val string) ResourceMetricsOption { return func(rac ResourceAttributesConfig, rm pmetric.ResourceMetrics) { @@ -3676,6 +3685,15 @@ func WithContainerID(val string) ResourceMetricsOption { } } +// WithContainerImageID sets provided value as "container.image.id" attribute for current resource. +func WithContainerImageID(val string) ResourceMetricsOption { + return func(rac ResourceAttributesConfig, rm pmetric.ResourceMetrics) { + if rac.ContainerImageID.Enabled { + rm.Resource().Attributes().PutStr("container.image.id", val) + } + } +} + // WithContainerImageName sets provided value as "container.image.name" attribute for current resource. func WithContainerImageName(val string) ResourceMetricsOption { return func(rac ResourceAttributesConfig, rm pmetric.ResourceMetrics) { diff --git a/receiver/dockerstatsreceiver/internal/metadata/generated_metrics_test.go b/receiver/dockerstatsreceiver/internal/metadata/generated_metrics_test.go index b0315b785536..655639762789 100644 --- a/receiver/dockerstatsreceiver/internal/metadata/generated_metrics_test.go +++ b/receiver/dockerstatsreceiver/internal/metadata/generated_metrics_test.go @@ -277,7 +277,7 @@ func TestMetricsBuilder(t *testing.T) { allMetricsCount++ mb.RecordContainerUptimeDataPoint(ts, 1) - metrics := mb.Emit(WithContainerHostname("attr-val"), WithContainerID("attr-val"), WithContainerImageName("attr-val"), WithContainerName("attr-val"), WithContainerRuntime("attr-val")) + metrics := mb.Emit(WithContainerCommandLine("attr-val"), WithContainerHostname("attr-val"), WithContainerID("attr-val"), WithContainerImageID("attr-val"), WithContainerImageName("attr-val"), WithContainerName("attr-val"), WithContainerRuntime("attr-val")) if test.configSet == testSetNone { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) @@ -288,7 +288,14 @@ func TestMetricsBuilder(t *testing.T) { rm := metrics.ResourceMetrics().At(0) attrCount := 0 enabledAttrCount := 0 - attrVal, ok := rm.Resource().Attributes().Get("container.hostname") + attrVal, ok := rm.Resource().Attributes().Get("container.command_line") + attrCount++ + assert.Equal(t, mb.resourceAttributesConfig.ContainerCommandLine.Enabled, ok) + if mb.resourceAttributesConfig.ContainerCommandLine.Enabled { + enabledAttrCount++ + assert.EqualValues(t, "attr-val", attrVal.Str()) + } + attrVal, ok = rm.Resource().Attributes().Get("container.hostname") attrCount++ assert.Equal(t, mb.resourceAttributesConfig.ContainerHostname.Enabled, ok) if mb.resourceAttributesConfig.ContainerHostname.Enabled { @@ -302,6 +309,13 @@ func TestMetricsBuilder(t *testing.T) { enabledAttrCount++ assert.EqualValues(t, "attr-val", attrVal.Str()) } + attrVal, ok = rm.Resource().Attributes().Get("container.image.id") + attrCount++ + assert.Equal(t, mb.resourceAttributesConfig.ContainerImageID.Enabled, ok) + if mb.resourceAttributesConfig.ContainerImageID.Enabled { + enabledAttrCount++ + assert.EqualValues(t, "attr-val", attrVal.Str()) + } attrVal, ok = rm.Resource().Attributes().Get("container.image.name") attrCount++ assert.Equal(t, mb.resourceAttributesConfig.ContainerImageName.Enabled, ok) @@ -324,7 +338,7 @@ func TestMetricsBuilder(t *testing.T) { assert.EqualValues(t, "attr-val", attrVal.Str()) } assert.Equal(t, enabledAttrCount, rm.Resource().Attributes().Len()) - assert.Equal(t, attrCount, 5) + assert.Equal(t, attrCount, 7) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() diff --git a/receiver/dockerstatsreceiver/internal/metadata/testdata/config.yaml b/receiver/dockerstatsreceiver/internal/metadata/testdata/config.yaml index a84a3c4fe10b..4f2c619b47a1 100644 --- a/receiver/dockerstatsreceiver/internal/metadata/testdata/config.yaml +++ b/receiver/dockerstatsreceiver/internal/metadata/testdata/config.yaml @@ -136,10 +136,14 @@ all_set: container.uptime: enabled: true resource_attributes: + container.command_line: + enabled: true container.hostname: enabled: true container.id: enabled: true + container.image.id: + enabled: true container.image.name: enabled: true container.name: @@ -283,10 +287,14 @@ none_set: container.uptime: enabled: false resource_attributes: + container.command_line: + enabled: false container.hostname: enabled: false container.id: enabled: false + container.image.id: + enabled: false container.image.name: enabled: false container.name: diff --git a/receiver/dockerstatsreceiver/metadata.yaml b/receiver/dockerstatsreceiver/metadata.yaml index b5377b34ea8d..a586aee13f26 100644 --- a/receiver/dockerstatsreceiver/metadata.yaml +++ b/receiver/dockerstatsreceiver/metadata.yaml @@ -30,6 +30,14 @@ resource_attributes: description: "The hostname of the container." type: string enabled: true + container.image.id: + description: "The ID of the container image." + type: string + enabled: false + container.command_line: + description: "The full command executed by the container." + type: string + enabled: false attributes: core: diff --git a/receiver/dockerstatsreceiver/receiver.go b/receiver/dockerstatsreceiver/receiver.go index 93cbfba764b3..47309ca3bd56 100644 --- a/receiver/dockerstatsreceiver/receiver.go +++ b/receiver/dockerstatsreceiver/receiver.go @@ -132,7 +132,10 @@ func (r *receiver) recordContainerStats(now pcommon.Timestamp, containerStats *d metadata.WithContainerHostname(container.Config.Hostname), metadata.WithContainerID(container.ID), metadata.WithContainerImageName(container.Config.Image), - metadata.WithContainerName(strings.TrimPrefix(container.Name, "/"))) + metadata.WithContainerName(strings.TrimPrefix(container.Name, "/")), + metadata.WithContainerImageID(container.Image), + metadata.WithContainerCommandLine(strings.Join(container.Config.Cmd, " ")), + ) for k, label := range r.config.EnvVarsToMetricLabels { label := label diff --git a/receiver/dockerstatsreceiver/receiver_test.go b/receiver/dockerstatsreceiver/receiver_test.go index 6bf6285e2bdd..2ab55b93519b 100644 --- a/receiver/dockerstatsreceiver/receiver_test.go +++ b/receiver/dockerstatsreceiver/receiver_test.go @@ -102,6 +102,17 @@ var ( ContainerMemoryAnon: metricEnabled, ContainerMemoryFile: metricEnabled, } + + resourceAttributeEnabled = metadata.ResourceAttributeConfig{Enabled: true} + allResourceAttributesEnabled = metadata.ResourceAttributesConfig{ + ContainerCommandLine: resourceAttributeEnabled, + ContainerHostname: resourceAttributeEnabled, + ContainerID: resourceAttributeEnabled, + ContainerImageID: resourceAttributeEnabled, + ContainerImageName: resourceAttributeEnabled, + ContainerName: resourceAttributeEnabled, + ContainerRuntime: resourceAttributeEnabled, + } ) func TestNewReceiver(t *testing.T) { @@ -145,6 +156,7 @@ func TestScrapeV2(t *testing.T) { desc string expectedMetricsFile string mockDockerEngine func(t *testing.T) *httptest.Server + cfgBuilder *testConfigBuilder }{ { desc: "scrapeV2_single_container", @@ -160,6 +172,9 @@ func TestScrapeV2(t *testing.T) { require.NoError(t, err) return mockServer }, + cfgBuilder: newTestConfigBuilder(). + withDefaultLabels(). + withMetrics(allMetricsEnabled), }, { desc: "scrapeV2_two_containers", @@ -180,6 +195,9 @@ func TestScrapeV2(t *testing.T) { require.NoError(t, err) return mockServer }, + cfgBuilder: newTestConfigBuilder(). + withDefaultLabels(). + withMetrics(allMetricsEnabled), }, { desc: "scrapeV2_no_pids_stats", @@ -195,6 +213,9 @@ func TestScrapeV2(t *testing.T) { require.NoError(t, err) return mockServer }, + cfgBuilder: newTestConfigBuilder(). + withDefaultLabels(). + withMetrics(allMetricsEnabled), }, { desc: "scrapeV2_pid_stats_max", @@ -210,6 +231,9 @@ func TestScrapeV2(t *testing.T) { require.NoError(t, err) return mockServer }, + cfgBuilder: newTestConfigBuilder(). + withDefaultLabels(). + withMetrics(allMetricsEnabled), }, { desc: "cgroups_v2_container", @@ -224,6 +248,27 @@ func TestScrapeV2(t *testing.T) { require.NoError(t, err) return mockServer }, + cfgBuilder: newTestConfigBuilder(). + withDefaultLabels(). + withMetrics(allMetricsEnabled), + }, + { + desc: "scrapeV2_single_container_with_optional_resource_attributes", + expectedMetricsFile: filepath.Join(mockFolder, "single_container_with_optional_resource_attributes", "expected_metrics.yaml"), + mockDockerEngine: func(t *testing.T) *httptest.Server { + containerID := "73364842ef014441cac89fed05df19463b1230db25a31252cdf82e754f1ec581" + mockServer, err := dockerMockServer(&map[string]string{ + "/v1.23/containers/json": filepath.Join(mockFolder, "single_container_with_optional_resource_attributes", "containers.json"), + "/v1.23/containers/" + containerID + "/json": filepath.Join(mockFolder, "single_container_with_optional_resource_attributes", "container.json"), + "/v1.23/containers/" + containerID + "/stats": filepath.Join(mockFolder, "single_container_with_optional_resource_attributes", "stats.json"), + }) + require.NoError(t, err) + return mockServer + }, + cfgBuilder: newTestConfigBuilder(). + withDefaultLabels(). + withMetrics(allMetricsEnabled). + withResourceAttributes(allResourceAttributesEnabled), }, } @@ -232,19 +277,8 @@ func TestScrapeV2(t *testing.T) { mockDockerEngine := tc.mockDockerEngine(t) defer mockDockerEngine.Close() - cfg := createDefaultConfig().(*Config) - cfg.Endpoint = mockDockerEngine.URL - cfg.EnvVarsToMetricLabels = map[string]string{ - "ENV_VAR": "env-var-metric-label", - "ENV_VAR_2": "env-var-metric-label-2", - } - cfg.ContainerLabelsToMetricLabels = map[string]string{ - "container.label": "container-metric-label", - "container.label.2": "container-metric-label-2", - } - cfg.MetricsBuilderConfig.Metrics = allMetricsEnabled - - receiver := newReceiver(receivertest.NewNopCreateSettings(), cfg) + receiver := newReceiver( + receivertest.NewNopCreateSettings(), tc.cfgBuilder.withEndpoint(mockDockerEngine.URL).build()) err := receiver.start(context.Background(), componenttest.NewNopHost()) require.NoError(t, err) @@ -335,3 +369,42 @@ func dockerMockServer(urlToFile *map[string]string) (*httptest.Server, error) { _, _ = rw.Write(data) })), nil } + +type testConfigBuilder struct { + config *Config +} + +func newTestConfigBuilder() *testConfigBuilder { + return &testConfigBuilder{config: createDefaultConfig().(*Config)} +} + +func (cb *testConfigBuilder) withEndpoint(endpoint string) *testConfigBuilder { + cb.config.Endpoint = endpoint + return cb +} + +func (cb *testConfigBuilder) withMetrics(ms metadata.MetricsConfig) *testConfigBuilder { + cb.config.MetricsBuilderConfig.Metrics = ms + return cb +} + +func (cb *testConfigBuilder) withResourceAttributes(ras metadata.ResourceAttributesConfig) *testConfigBuilder { + cb.config.MetricsBuilderConfig.ResourceAttributes = ras + return cb +} + +func (cb *testConfigBuilder) withDefaultLabels() *testConfigBuilder { + cb.config.EnvVarsToMetricLabels = map[string]string{ + "ENV_VAR": "env-var-metric-label", + "ENV_VAR_2": "env-var-metric-label-2", + } + cb.config.ContainerLabelsToMetricLabels = map[string]string{ + "container.label": "container-metric-label", + "container.label.2": "container-metric-label-2", + } + return cb +} + +func (cb *testConfigBuilder) build() *Config { + return cb.config +} diff --git a/receiver/dockerstatsreceiver/testdata/mock/cgroups_v2/expected_metrics.yaml b/receiver/dockerstatsreceiver/testdata/mock/cgroups_v2/expected_metrics.yaml index a6c8348aa043..23b240087693 100644 --- a/receiver/dockerstatsreceiver/testdata/mock/cgroups_v2/expected_metrics.yaml +++ b/receiver/dockerstatsreceiver/testdata/mock/cgroups_v2/expected_metrics.yaml @@ -35,8 +35,8 @@ resourceMetrics: - key: operation value: stringValue: read - startTimeUnixNano: "1686652517912798000" - timeUnixNano: "1686652517916756000" + startTimeUnixNano: "1687762436307743000" + timeUnixNano: "1687762436315926000" - asInt: "0" attributes: - key: device_major @@ -48,16 +48,16 @@ resourceMetrics: - key: operation value: stringValue: write - startTimeUnixNano: "1686652517912798000" - timeUnixNano: "1686652517916756000" + startTimeUnixNano: "1687762436307743000" + timeUnixNano: "1687762436315926000" isMonotonic: true unit: By - description: 'Deprecated: use `container.cpu.utilization` metric instead. Percent of CPU used by the container.' gauge: dataPoints: - asDouble: 0.041326615629205886 - startTimeUnixNano: "1686652517912798000" - timeUnixNano: "1686652517916756000" + startTimeUnixNano: "1687762436307743000" + timeUnixNano: "1687762436315926000" name: container.cpu.percent unit: "1" - description: Number of periods with throttling active. @@ -66,8 +66,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517912798000" - timeUnixNano: "1686652517916756000" + startTimeUnixNano: "1687762436307743000" + timeUnixNano: "1687762436315926000" isMonotonic: true unit: '{periods}' - description: Number of periods when the container hits its throttling limit. @@ -76,8 +76,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517912798000" - timeUnixNano: "1686652517916756000" + startTimeUnixNano: "1687762436307743000" + timeUnixNano: "1687762436315926000" isMonotonic: true unit: '{periods}' - description: Aggregate time the container was throttled. @@ -86,8 +86,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517912798000" - timeUnixNano: "1686652517916756000" + startTimeUnixNano: "1687762436307743000" + timeUnixNano: "1687762436315926000" isMonotonic: true unit: ns - description: Time spent by tasks of the cgroup in kernel mode (Linux). Time spent by all container processes in kernel mode (Windows). @@ -96,8 +96,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "970974000" - startTimeUnixNano: "1686652517912798000" - timeUnixNano: "1686652517916756000" + startTimeUnixNano: "1687762436307743000" + timeUnixNano: "1687762436315926000" isMonotonic: true unit: ns - description: System CPU usage, as reported by docker. @@ -106,8 +106,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4836970000000" - startTimeUnixNano: "1686652517912798000" - timeUnixNano: "1686652517916756000" + startTimeUnixNano: "1687762436307743000" + timeUnixNano: "1687762436315926000" isMonotonic: true unit: ns - description: Total CPU time consumed. @@ -116,8 +116,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "999478000" - startTimeUnixNano: "1686652517912798000" - timeUnixNano: "1686652517916756000" + startTimeUnixNano: "1687762436307743000" + timeUnixNano: "1687762436315926000" isMonotonic: true unit: ns - description: Time spent by tasks of the cgroup in user mode (Linux). Time spent by all container processes in user mode (Windows). @@ -126,8 +126,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "28503000" - startTimeUnixNano: "1686652517912798000" - timeUnixNano: "1686652517916756000" + startTimeUnixNano: "1687762436307743000" + timeUnixNano: "1687762436315926000" isMonotonic: true unit: ns - description: The amount of anonymous memory that has been identified as active by the kernel. @@ -136,8 +136,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4096" - startTimeUnixNano: "1686652517912798000" - timeUnixNano: "1686652517916756000" + startTimeUnixNano: "1687762436307743000" + timeUnixNano: "1687762436315926000" unit: By - description: Cache memory that has been identified as active by the kernel. name: container.memory.active_file @@ -145,8 +145,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517912798000" - timeUnixNano: "1686652517916756000" + startTimeUnixNano: "1687762436307743000" + timeUnixNano: "1687762436315926000" unit: By - description: Amount of memory used in anonymous mappings such as brk(), sbrk(), and mmap(MAP_ANONYMOUS) (Only available with cgroups v2). name: container.memory.anon @@ -154,8 +154,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "61440" - startTimeUnixNano: "1686652517912798000" - timeUnixNano: "1686652517916756000" + startTimeUnixNano: "1687762436307743000" + timeUnixNano: "1687762436315926000" unit: By - description: Amount of memory used to cache filesystem data, including tmpfs and shared memory (Only available with cgroups v2). name: container.memory.file @@ -163,8 +163,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "233848832" - startTimeUnixNano: "1686652517912798000" - timeUnixNano: "1686652517916756000" + startTimeUnixNano: "1687762436307743000" + timeUnixNano: "1687762436315926000" unit: By - description: The amount of anonymous memory that has been identified as inactive by the kernel. name: container.memory.inactive_anon @@ -172,8 +172,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "233906176" - startTimeUnixNano: "1686652517912798000" - timeUnixNano: "1686652517916756000" + startTimeUnixNano: "1687762436307743000" + timeUnixNano: "1687762436315926000" unit: By - description: Cache memory that has been identified as inactive by the kernel. name: container.memory.inactive_file @@ -181,15 +181,15 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517912798000" - timeUnixNano: "1686652517916756000" + startTimeUnixNano: "1687762436307743000" + timeUnixNano: "1687762436315926000" unit: By - description: Percentage of memory used. gauge: dataPoints: - asDouble: 87.41302490234375 - startTimeUnixNano: "1686652517912798000" - timeUnixNano: "1686652517916756000" + startTimeUnixNano: "1687762436307743000" + timeUnixNano: "1687762436315926000" name: container.memory.percent unit: "1" - description: Indicate the number of times that a process of the cgroup triggered a page fault. @@ -198,8 +198,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "9458" - startTimeUnixNano: "1686652517912798000" - timeUnixNano: "1686652517916756000" + startTimeUnixNano: "1687762436307743000" + timeUnixNano: "1687762436315926000" isMonotonic: true unit: '{faults}' - description: Indicate the number of times that a process of the cgroup triggered a major fault. @@ -208,8 +208,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4" - startTimeUnixNano: "1686652517912798000" - timeUnixNano: "1686652517916756000" + startTimeUnixNano: "1687762436307743000" + timeUnixNano: "1687762436315926000" isMonotonic: true unit: '{faults}' - description: The amount of memory that cannot be reclaimed. @@ -218,8 +218,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517912798000" - timeUnixNano: "1686652517916756000" + startTimeUnixNano: "1687762436307743000" + timeUnixNano: "1687762436315926000" unit: By - description: Memory limit of the container. name: container.memory.usage.limit @@ -227,8 +227,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "268435456" - startTimeUnixNano: "1686652517912798000" - timeUnixNano: "1686652517916756000" + startTimeUnixNano: "1687762436307743000" + timeUnixNano: "1687762436315926000" unit: By - description: Maximum memory usage. name: container.memory.usage.max @@ -236,8 +236,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517912798000" - timeUnixNano: "1686652517916756000" + startTimeUnixNano: "1687762436307743000" + timeUnixNano: "1687762436315926000" unit: By - description: Memory usage of the container. This excludes the cache. name: container.memory.usage.total @@ -245,8 +245,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "234647552" - startTimeUnixNano: "1686652517912798000" - timeUnixNano: "1686652517916756000" + startTimeUnixNano: "1687762436307743000" + timeUnixNano: "1687762436315926000" unit: By - description: Bytes received by the container. name: container.network.io.usage.rx_bytes @@ -258,8 +258,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517912798000" - timeUnixNano: "1686652517916756000" + startTimeUnixNano: "1687762436307743000" + timeUnixNano: "1687762436315926000" isMonotonic: true unit: By - description: Incoming packets dropped. @@ -272,8 +272,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517912798000" - timeUnixNano: "1686652517916756000" + startTimeUnixNano: "1687762436307743000" + timeUnixNano: "1687762436315926000" isMonotonic: true unit: '{packets}' - description: Received errors. @@ -286,8 +286,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517912798000" - timeUnixNano: "1686652517916756000" + startTimeUnixNano: "1687762436307743000" + timeUnixNano: "1687762436315926000" isMonotonic: true unit: '{errors}' - description: Packets received. @@ -300,8 +300,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517912798000" - timeUnixNano: "1686652517916756000" + startTimeUnixNano: "1687762436307743000" + timeUnixNano: "1687762436315926000" isMonotonic: true unit: '{packets}' - description: Bytes sent. @@ -314,8 +314,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517912798000" - timeUnixNano: "1686652517916756000" + startTimeUnixNano: "1687762436307743000" + timeUnixNano: "1687762436315926000" isMonotonic: true unit: By - description: Outgoing packets dropped. @@ -328,8 +328,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517912798000" - timeUnixNano: "1686652517916756000" + startTimeUnixNano: "1687762436307743000" + timeUnixNano: "1687762436315926000" isMonotonic: true unit: '{packets}' - description: Sent errors. @@ -342,8 +342,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517912798000" - timeUnixNano: "1686652517916756000" + startTimeUnixNano: "1687762436307743000" + timeUnixNano: "1687762436315926000" isMonotonic: true unit: '{errors}' - description: Packets sent. @@ -356,8 +356,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517912798000" - timeUnixNano: "1686652517916756000" + startTimeUnixNano: "1687762436307743000" + timeUnixNano: "1687762436315926000" isMonotonic: true unit: '{packets}' - description: Number of pids in the container's cgroup. @@ -366,8 +366,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1" - startTimeUnixNano: "1686652517912798000" - timeUnixNano: "1686652517916756000" + startTimeUnixNano: "1687762436307743000" + timeUnixNano: "1687762436315926000" unit: '{pids}' - description: Maximum number of pids in the container's cgroup. name: container.pids.limit @@ -375,15 +375,15 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4694" - startTimeUnixNano: "1686652517912798000" - timeUnixNano: "1686652517916756000" + startTimeUnixNano: "1687762436307743000" + timeUnixNano: "1687762436315926000" unit: '{pids}' - description: Time elapsed since container start time. gauge: dataPoints: - - asDouble: 4.233354158179942e+06 - startTimeUnixNano: "1686652517912798000" - timeUnixNano: "1686652517916756000" + - asDouble: 5.343272557349942e+06 + startTimeUnixNano: "1687762436307743000" + timeUnixNano: "1687762436315926000" name: container.uptime unit: s scope: diff --git a/receiver/dockerstatsreceiver/testdata/mock/no_pids_stats/expected_metrics.yaml b/receiver/dockerstatsreceiver/testdata/mock/no_pids_stats/expected_metrics.yaml index c4d1a2d2eae4..c3301e58ef4a 100644 --- a/receiver/dockerstatsreceiver/testdata/mock/no_pids_stats/expected_metrics.yaml +++ b/receiver/dockerstatsreceiver/testdata/mock/no_pids_stats/expected_metrics.yaml @@ -41,8 +41,8 @@ resourceMetrics: - key: operation value: stringValue: async - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" - asInt: "0" attributes: - key: device_major @@ -54,8 +54,8 @@ resourceMetrics: - key: operation value: stringValue: discard - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" - asInt: "2502656" attributes: - key: device_major @@ -67,8 +67,8 @@ resourceMetrics: - key: operation value: stringValue: read - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" - asInt: "2502656" attributes: - key: device_major @@ -80,8 +80,8 @@ resourceMetrics: - key: operation value: stringValue: sync - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" - asInt: "2502656" attributes: - key: device_major @@ -93,8 +93,8 @@ resourceMetrics: - key: operation value: stringValue: total - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" - asInt: "0" attributes: - key: device_major @@ -106,8 +106,8 @@ resourceMetrics: - key: operation value: stringValue: write - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" isMonotonic: true unit: By - description: Number of IOs (bio) issued to the disk by the group and descendant groups (Only available with cgroups v1). @@ -126,8 +126,8 @@ resourceMetrics: - key: operation value: stringValue: async - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" - asInt: "0" attributes: - key: device_major @@ -139,8 +139,8 @@ resourceMetrics: - key: operation value: stringValue: discard - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" - asInt: "99" attributes: - key: device_major @@ -152,8 +152,8 @@ resourceMetrics: - key: operation value: stringValue: read - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" - asInt: "99" attributes: - key: device_major @@ -165,8 +165,8 @@ resourceMetrics: - key: operation value: stringValue: sync - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" - asInt: "99" attributes: - key: device_major @@ -178,8 +178,8 @@ resourceMetrics: - key: operation value: stringValue: total - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" - asInt: "0" attributes: - key: device_major @@ -191,16 +191,16 @@ resourceMetrics: - key: operation value: stringValue: write - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" isMonotonic: true unit: '{operations}' - description: 'Deprecated: use `container.cpu.utilization` metric instead. Percent of CPU used by the container.' gauge: dataPoints: - asDouble: 0.0002888012543185477 - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" name: container.cpu.percent unit: "1" - description: Number of periods with throttling active. @@ -209,8 +209,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" isMonotonic: true unit: '{periods}' - description: Number of periods when the container hits its throttling limit. @@ -219,8 +219,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" isMonotonic: true unit: '{periods}' - description: Aggregate time the container was throttled. @@ -229,8 +229,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" isMonotonic: true unit: ns - description: Time spent by tasks of the cgroup in kernel mode (Linux). Time spent by all container processes in kernel mode (Windows). @@ -239,8 +239,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "10000000" - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" isMonotonic: true unit: ns - description: Per-core CPU usage by the container (Only available with cgroups v1). @@ -253,57 +253,57 @@ resourceMetrics: - key: core value: stringValue: cpu0 - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" - asInt: "0" attributes: - key: core value: stringValue: cpu1 - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" - asInt: "262690" attributes: - key: core value: stringValue: cpu2 - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" - asInt: "762532" attributes: - key: core value: stringValue: cpu3 - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" - asInt: "78532" attributes: - key: core value: stringValue: cpu4 - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" - asInt: "28108575" attributes: - key: core value: stringValue: cpu5 - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" - asInt: "8800811" attributes: - key: core value: stringValue: cpu6 - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" - asInt: "4191833" attributes: - key: core value: stringValue: cpu7 - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" isMonotonic: true unit: ns - description: System CPU usage, as reported by docker. @@ -312,8 +312,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "120830550000000" - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" isMonotonic: true unit: ns - description: Total CPU time consumed. @@ -322,8 +322,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "43620018" - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" isMonotonic: true unit: ns - description: Time spent by tasks of the cgroup in user mode (Linux). Time spent by all container processes in user mode (Windows). @@ -332,8 +332,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "10000000" - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" isMonotonic: true unit: ns - description: The amount of anonymous memory that has been identified as active by the kernel. @@ -342,8 +342,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" unit: By - description: Cache memory that has been identified as active by the kernel. name: container.memory.active_file @@ -351,8 +351,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "270336" - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" unit: By - description: The amount of memory used by the processes of this control group that can be associated precisely with a block on a block device (Only available with cgroups v1). name: container.memory.cache @@ -360,8 +360,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2433024" - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" unit: By - description: Bytes that are waiting to get written back to the disk, from this cgroup (Only available with cgroups v1). name: container.memory.dirty @@ -369,8 +369,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" unit: By - description: The maximum amount of physical memory that can be used by the processes of this control group (Only available with cgroups v1). name: container.memory.hierarchical_memory_limit @@ -378,8 +378,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "9223372036854772000" - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" unit: By - description: The maximum amount of RAM + swap that can be used by the processes of this control group (Only available with cgroups v1). name: container.memory.hierarchical_memsw_limit @@ -387,8 +387,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "9223372036854772000" - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" unit: By - description: The amount of anonymous memory that has been identified as inactive by the kernel. name: container.memory.inactive_anon @@ -396,8 +396,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" unit: By - description: Cache memory that has been identified as inactive by the kernel. name: container.memory.inactive_file @@ -405,8 +405,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2162688" - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" unit: By - description: Indicates the amount of memory mapped by the processes in the control group (Only available with cgroups v1). name: container.memory.mapped_file @@ -414,15 +414,15 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1486848" - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" unit: By - description: Percentage of memory used. gauge: dataPoints: - asDouble: 0.006938014912420301 - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" name: container.memory.percent unit: "1" - description: Indicate the number of times that a process of the cgroup triggered a page fault. @@ -431,8 +431,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "990" - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" isMonotonic: true unit: '{faults}' - description: Indicate the number of times that a process of the cgroup triggered a major fault. @@ -441,8 +441,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" isMonotonic: true unit: '{faults}' - description: Number of pages read from disk by the cgroup (Only available with cgroups v1). @@ -451,8 +451,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1287" - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" isMonotonic: true unit: '{operations}' - description: Number of pages written to disk by the cgroup (Only available with cgroups v1). @@ -461,8 +461,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "667" - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" isMonotonic: true unit: '{operations}' - description: 'The amount of memory that doesn’t correspond to anything on disk: stacks, heaps, and anonymous memory maps (Only available with cgroups v1).' @@ -471,8 +471,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" unit: By - description: Number of bytes of anonymous transparent hugepages in this cgroup (Only available with cgroups v1). name: container.memory.rss_huge @@ -480,8 +480,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" unit: By - description: The amount of anonymous memory that has been identified as active by the kernel. Includes descendant cgroups (Only available with cgroups v1). name: container.memory.total_active_anon @@ -489,8 +489,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" unit: By - description: Cache memory that has been identified as active by the kernel. Includes descendant cgroups (Only available with cgroups v1). name: container.memory.total_active_file @@ -498,8 +498,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "270336" - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" unit: By - description: Total amount of memory used by the processes of this cgroup (and descendants) that can be associated with a block on a block device. Also accounts for memory used by tmpfs (Only available with cgroups v1). name: container.memory.total_cache @@ -507,8 +507,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2433024" - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" unit: By - description: Bytes that are waiting to get written back to the disk, from this cgroup and descendants (Only available with cgroups v1). name: container.memory.total_dirty @@ -516,8 +516,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" unit: By - description: The amount of anonymous memory that has been identified as inactive by the kernel. Includes descendant cgroups (Only available with cgroups v1). name: container.memory.total_inactive_anon @@ -525,8 +525,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" unit: By - description: Cache memory that has been identified as inactive by the kernel. Includes descendant cgroups (Only available with cgroups v1). name: container.memory.total_inactive_file @@ -534,8 +534,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2162688" - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" unit: By - description: Indicates the amount of memory mapped by the processes in the control group and descendant groups (Only available with cgroups v1). name: container.memory.total_mapped_file @@ -543,8 +543,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1486848" - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" unit: By - description: Indicate the number of times that a process of the cgroup (or descendant cgroups) triggered a page fault (Only available with cgroups v1). name: container.memory.total_pgfault @@ -552,8 +552,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "990" - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" isMonotonic: true unit: '{faults}' - description: Indicate the number of times that a process of the cgroup (or descendant cgroups) triggered a major fault (Only available with cgroups v1). @@ -562,8 +562,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" isMonotonic: true unit: '{faults}' - description: Number of pages read from disk by the cgroup and descendant groups (Only available with cgroups v1). @@ -572,8 +572,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1287" - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" isMonotonic: true unit: '{operations}' - description: Number of pages written to disk by the cgroup and descendant groups (Only available with cgroups v1). @@ -582,8 +582,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "667" - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" isMonotonic: true unit: '{operations}' - description: 'The amount of memory that doesn’t correspond to anything on disk: stacks, heaps, and anonymous memory maps. Includes descendant cgroups (Only available with cgroups v1).' @@ -592,8 +592,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" unit: By - description: Number of bytes of anonymous transparent hugepages in this cgroup and descendant cgroups (Only available with cgroups v1). name: container.memory.total_rss_huge @@ -601,8 +601,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" unit: By - description: The amount of memory that cannot be reclaimed. Includes descendant cgroups (Only available with cgroups v1). name: container.memory.total_unevictable @@ -610,8 +610,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" unit: By - description: Number of bytes of file/anon cache that are queued for syncing to disk in this cgroup and descendants (Only available with cgroups v1). name: container.memory.total_writeback @@ -619,8 +619,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" unit: By - description: The amount of memory that cannot be reclaimed. name: container.memory.unevictable @@ -628,8 +628,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" unit: By - description: Memory limit of the container. name: container.memory.usage.limit @@ -637,8 +637,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "10449559552" - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" unit: By - description: Maximum memory usage. name: container.memory.usage.max @@ -646,8 +646,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3932160" - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" unit: By - description: Memory usage of the container. This excludes the cache. name: container.memory.usage.total @@ -655,8 +655,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "724992" - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" unit: By - description: Number of bytes of file/anon cache that are queued for syncing to disk in this cgroup (Only available with cgroups v1). name: container.memory.writeback @@ -664,8 +664,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" unit: By - description: Bytes received by the container. name: container.network.io.usage.rx_bytes @@ -677,8 +677,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" isMonotonic: true unit: By - description: Incoming packets dropped. @@ -691,8 +691,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" isMonotonic: true unit: '{packets}' - description: Received errors. @@ -705,8 +705,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" isMonotonic: true unit: '{errors}' - description: Packets received. @@ -719,8 +719,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" isMonotonic: true unit: '{packets}' - description: Bytes sent. @@ -733,8 +733,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" isMonotonic: true unit: By - description: Outgoing packets dropped. @@ -747,8 +747,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" isMonotonic: true unit: '{packets}' - description: Sent errors. @@ -761,8 +761,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" isMonotonic: true unit: '{errors}' - description: Packets sent. @@ -775,16 +775,16 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" isMonotonic: true unit: '{packets}' - description: Time elapsed since container start time. gauge: dataPoints: - - asDouble: 2.95714675823128e+07 - startTimeUnixNano: "1686652517836091000" - timeUnixNano: "1686652517839381000" + - asDouble: 3.06813859730868e+07 + startTimeUnixNano: "1687762436220246000" + timeUnixNano: "1687762436230155000" name: container.uptime unit: s scope: diff --git a/receiver/dockerstatsreceiver/testdata/mock/pids_stats_max/expected_metrics.yaml b/receiver/dockerstatsreceiver/testdata/mock/pids_stats_max/expected_metrics.yaml index 726fccfae9c8..391eab8088a4 100644 --- a/receiver/dockerstatsreceiver/testdata/mock/pids_stats_max/expected_metrics.yaml +++ b/receiver/dockerstatsreceiver/testdata/mock/pids_stats_max/expected_metrics.yaml @@ -35,8 +35,8 @@ resourceMetrics: - key: operation value: stringValue: read - startTimeUnixNano: "1686652517884566000" - timeUnixNano: "1686652517887966000" + startTimeUnixNano: "1687762436274253000" + timeUnixNano: "1687762436282542000" - asInt: "0" attributes: - key: device_major @@ -48,8 +48,8 @@ resourceMetrics: - key: operation value: stringValue: write - startTimeUnixNano: "1686652517884566000" - timeUnixNano: "1686652517887966000" + startTimeUnixNano: "1687762436274253000" + timeUnixNano: "1687762436282542000" - asInt: "1998848" attributes: - key: device_major @@ -61,8 +61,8 @@ resourceMetrics: - key: operation value: stringValue: read - startTimeUnixNano: "1686652517884566000" - timeUnixNano: "1686652517887966000" + startTimeUnixNano: "1687762436274253000" + timeUnixNano: "1687762436282542000" - asInt: "0" attributes: - key: device_major @@ -74,8 +74,8 @@ resourceMetrics: - key: operation value: stringValue: write - startTimeUnixNano: "1686652517884566000" - timeUnixNano: "1686652517887966000" + startTimeUnixNano: "1687762436274253000" + timeUnixNano: "1687762436282542000" - asInt: "1998848" attributes: - key: device_major @@ -87,8 +87,8 @@ resourceMetrics: - key: operation value: stringValue: read - startTimeUnixNano: "1686652517884566000" - timeUnixNano: "1686652517887966000" + startTimeUnixNano: "1687762436274253000" + timeUnixNano: "1687762436282542000" - asInt: "0" attributes: - key: device_major @@ -100,16 +100,16 @@ resourceMetrics: - key: operation value: stringValue: write - startTimeUnixNano: "1686652517884566000" - timeUnixNano: "1686652517887966000" + startTimeUnixNano: "1687762436274253000" + timeUnixNano: "1687762436282542000" isMonotonic: true unit: By - description: 'Deprecated: use `container.cpu.utilization` metric instead. Percent of CPU used by the container.' gauge: dataPoints: - asDouble: 0 - startTimeUnixNano: "1686652517884566000" - timeUnixNano: "1686652517887966000" + startTimeUnixNano: "1687762436274253000" + timeUnixNano: "1687762436282542000" name: container.cpu.percent unit: "1" - description: Number of periods with throttling active. @@ -118,8 +118,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517884566000" - timeUnixNano: "1686652517887966000" + startTimeUnixNano: "1687762436274253000" + timeUnixNano: "1687762436282542000" isMonotonic: true unit: '{periods}' - description: Number of periods when the container hits its throttling limit. @@ -128,8 +128,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517884566000" - timeUnixNano: "1686652517887966000" + startTimeUnixNano: "1687762436274253000" + timeUnixNano: "1687762436282542000" isMonotonic: true unit: '{periods}' - description: Aggregate time the container was throttled. @@ -138,8 +138,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517884566000" - timeUnixNano: "1686652517887966000" + startTimeUnixNano: "1687762436274253000" + timeUnixNano: "1687762436282542000" isMonotonic: true unit: ns - description: Time spent by tasks of the cgroup in kernel mode (Linux). Time spent by all container processes in kernel mode (Windows). @@ -148,8 +148,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "5467000" - startTimeUnixNano: "1686652517884566000" - timeUnixNano: "1686652517887966000" + startTimeUnixNano: "1687762436274253000" + timeUnixNano: "1687762436282542000" isMonotonic: true unit: ns - description: System CPU usage, as reported by docker. @@ -158,8 +158,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "183556380000000" - startTimeUnixNano: "1686652517884566000" - timeUnixNano: "1686652517887966000" + startTimeUnixNano: "1687762436274253000" + timeUnixNano: "1687762436282542000" isMonotonic: true unit: ns - description: Total CPU time consumed. @@ -168,8 +168,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "10935000" - startTimeUnixNano: "1686652517884566000" - timeUnixNano: "1686652517887966000" + startTimeUnixNano: "1687762436274253000" + timeUnixNano: "1687762436282542000" isMonotonic: true unit: ns - description: Time spent by tasks of the cgroup in user mode (Linux). Time spent by all container processes in user mode (Windows). @@ -178,8 +178,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "5467000" - startTimeUnixNano: "1686652517884566000" - timeUnixNano: "1686652517887966000" + startTimeUnixNano: "1687762436274253000" + timeUnixNano: "1687762436282542000" isMonotonic: true unit: ns - description: The amount of anonymous memory that has been identified as active by the kernel. @@ -188,8 +188,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4096" - startTimeUnixNano: "1686652517884566000" - timeUnixNano: "1686652517887966000" + startTimeUnixNano: "1687762436274253000" + timeUnixNano: "1687762436282542000" unit: By - description: Cache memory that has been identified as active by the kernel. name: container.memory.active_file @@ -197,8 +197,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517884566000" - timeUnixNano: "1686652517887966000" + startTimeUnixNano: "1687762436274253000" + timeUnixNano: "1687762436282542000" unit: By - description: Amount of memory used in anonymous mappings such as brk(), sbrk(), and mmap(MAP_ANONYMOUS) (Only available with cgroups v2). name: container.memory.anon @@ -206,8 +206,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "114688" - startTimeUnixNano: "1686652517884566000" - timeUnixNano: "1686652517887966000" + startTimeUnixNano: "1687762436274253000" + timeUnixNano: "1687762436282542000" unit: By - description: Amount of memory used to cache filesystem data, including tmpfs and shared memory (Only available with cgroups v2). name: container.memory.file @@ -215,8 +215,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1892352" - startTimeUnixNano: "1686652517884566000" - timeUnixNano: "1686652517887966000" + startTimeUnixNano: "1687762436274253000" + timeUnixNano: "1687762436282542000" unit: By - description: The amount of anonymous memory that has been identified as inactive by the kernel. name: container.memory.inactive_anon @@ -224,8 +224,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "110592" - startTimeUnixNano: "1686652517884566000" - timeUnixNano: "1686652517887966000" + startTimeUnixNano: "1687762436274253000" + timeUnixNano: "1687762436282542000" unit: By - description: Cache memory that has been identified as inactive by the kernel. name: container.memory.inactive_file @@ -233,15 +233,15 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1892352" - startTimeUnixNano: "1686652517884566000" - timeUnixNano: "1686652517887966000" + startTimeUnixNano: "1687762436274253000" + timeUnixNano: "1687762436282542000" unit: By - description: Percentage of memory used. gauge: dataPoints: - asDouble: 0.016875995187363255 - startTimeUnixNano: "1686652517884566000" - timeUnixNano: "1686652517887966000" + startTimeUnixNano: "1687762436274253000" + timeUnixNano: "1687762436282542000" name: container.memory.percent unit: "1" - description: Indicate the number of times that a process of the cgroup triggered a page fault. @@ -250,8 +250,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1029" - startTimeUnixNano: "1686652517884566000" - timeUnixNano: "1686652517887966000" + startTimeUnixNano: "1687762436274253000" + timeUnixNano: "1687762436282542000" isMonotonic: true unit: '{faults}' - description: Indicate the number of times that a process of the cgroup triggered a major fault. @@ -260,8 +260,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "12" - startTimeUnixNano: "1686652517884566000" - timeUnixNano: "1686652517887966000" + startTimeUnixNano: "1687762436274253000" + timeUnixNano: "1687762436282542000" isMonotonic: true unit: '{faults}' - description: The amount of memory that cannot be reclaimed. @@ -270,8 +270,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517884566000" - timeUnixNano: "1686652517887966000" + startTimeUnixNano: "1687762436274253000" + timeUnixNano: "1687762436282542000" unit: By - description: Memory limit of the container. name: container.memory.usage.limit @@ -279,8 +279,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2063048704" - startTimeUnixNano: "1686652517884566000" - timeUnixNano: "1686652517887966000" + startTimeUnixNano: "1687762436274253000" + timeUnixNano: "1687762436282542000" unit: By - description: Maximum memory usage. name: container.memory.usage.max @@ -288,8 +288,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517884566000" - timeUnixNano: "1686652517887966000" + startTimeUnixNano: "1687762436274253000" + timeUnixNano: "1687762436282542000" unit: By - description: Memory usage of the container. This excludes the cache. name: container.memory.usage.total @@ -297,8 +297,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "348160" - startTimeUnixNano: "1686652517884566000" - timeUnixNano: "1686652517887966000" + startTimeUnixNano: "1687762436274253000" + timeUnixNano: "1687762436282542000" unit: By - description: Bytes received by the container. name: container.network.io.usage.rx_bytes @@ -310,8 +310,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517884566000" - timeUnixNano: "1686652517887966000" + startTimeUnixNano: "1687762436274253000" + timeUnixNano: "1687762436282542000" isMonotonic: true unit: By - description: Incoming packets dropped. @@ -324,8 +324,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517884566000" - timeUnixNano: "1686652517887966000" + startTimeUnixNano: "1687762436274253000" + timeUnixNano: "1687762436282542000" isMonotonic: true unit: '{packets}' - description: Received errors. @@ -338,8 +338,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517884566000" - timeUnixNano: "1686652517887966000" + startTimeUnixNano: "1687762436274253000" + timeUnixNano: "1687762436282542000" isMonotonic: true unit: '{errors}' - description: Packets received. @@ -352,8 +352,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517884566000" - timeUnixNano: "1686652517887966000" + startTimeUnixNano: "1687762436274253000" + timeUnixNano: "1687762436282542000" isMonotonic: true unit: '{packets}' - description: Bytes sent. @@ -366,8 +366,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517884566000" - timeUnixNano: "1686652517887966000" + startTimeUnixNano: "1687762436274253000" + timeUnixNano: "1687762436282542000" isMonotonic: true unit: By - description: Outgoing packets dropped. @@ -380,8 +380,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517884566000" - timeUnixNano: "1686652517887966000" + startTimeUnixNano: "1687762436274253000" + timeUnixNano: "1687762436282542000" isMonotonic: true unit: '{packets}' - description: Sent errors. @@ -394,8 +394,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517884566000" - timeUnixNano: "1686652517887966000" + startTimeUnixNano: "1687762436274253000" + timeUnixNano: "1687762436282542000" isMonotonic: true unit: '{errors}' - description: Packets sent. @@ -408,8 +408,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517884566000" - timeUnixNano: "1686652517887966000" + startTimeUnixNano: "1687762436274253000" + timeUnixNano: "1687762436282542000" isMonotonic: true unit: '{packets}' - description: Number of pids in the container's cgroup. @@ -418,8 +418,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1" - startTimeUnixNano: "1686652517884566000" - timeUnixNano: "1686652517887966000" + startTimeUnixNano: "1687762436274253000" + timeUnixNano: "1687762436282542000" unit: '{pids}' - description: Maximum number of pids in the container's cgroup. name: container.pids.limit @@ -427,15 +427,15 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2192" - startTimeUnixNano: "1686652517884566000" - timeUnixNano: "1686652517887966000" + startTimeUnixNano: "1687762436274253000" + timeUnixNano: "1687762436282542000" unit: '{pids}' - description: Time elapsed since container start time. gauge: dataPoints: - - asDouble: 4.739290078504516e+06 - startTimeUnixNano: "1686652517884566000" - timeUnixNano: "1686652517887966000" + - asDouble: 5.849208473080516e+06 + startTimeUnixNano: "1687762436274253000" + timeUnixNano: "1687762436282542000" name: container.uptime unit: s scope: diff --git a/receiver/dockerstatsreceiver/testdata/mock/single_container/expected_metrics.yaml b/receiver/dockerstatsreceiver/testdata/mock/single_container/expected_metrics.yaml index 8a7991ca61dc..e2398e45c2ff 100644 --- a/receiver/dockerstatsreceiver/testdata/mock/single_container/expected_metrics.yaml +++ b/receiver/dockerstatsreceiver/testdata/mock/single_container/expected_metrics.yaml @@ -47,8 +47,8 @@ resourceMetrics: - key: operation value: stringValue: async - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" - asInt: "0" attributes: - key: device_major @@ -60,8 +60,8 @@ resourceMetrics: - key: operation value: stringValue: discard - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" - asInt: "2502656" attributes: - key: device_major @@ -73,8 +73,8 @@ resourceMetrics: - key: operation value: stringValue: read - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" - asInt: "2502656" attributes: - key: device_major @@ -86,8 +86,8 @@ resourceMetrics: - key: operation value: stringValue: sync - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" - asInt: "2502656" attributes: - key: device_major @@ -99,8 +99,8 @@ resourceMetrics: - key: operation value: stringValue: total - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" - asInt: "0" attributes: - key: device_major @@ -112,8 +112,8 @@ resourceMetrics: - key: operation value: stringValue: write - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" isMonotonic: true unit: By - description: Number of IOs (bio) issued to the disk by the group and descendant groups (Only available with cgroups v1). @@ -132,8 +132,8 @@ resourceMetrics: - key: operation value: stringValue: async - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" - asInt: "0" attributes: - key: device_major @@ -145,8 +145,8 @@ resourceMetrics: - key: operation value: stringValue: discard - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" - asInt: "99" attributes: - key: device_major @@ -158,8 +158,8 @@ resourceMetrics: - key: operation value: stringValue: read - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" - asInt: "99" attributes: - key: device_major @@ -171,8 +171,8 @@ resourceMetrics: - key: operation value: stringValue: sync - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" - asInt: "99" attributes: - key: device_major @@ -184,8 +184,8 @@ resourceMetrics: - key: operation value: stringValue: total - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" - asInt: "0" attributes: - key: device_major @@ -197,16 +197,16 @@ resourceMetrics: - key: operation value: stringValue: write - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" isMonotonic: true unit: '{operations}' - description: 'Deprecated: use `container.cpu.utilization` metric instead. Percent of CPU used by the container.' gauge: dataPoints: - asDouble: 0.0002888012543185477 - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" name: container.cpu.percent unit: "1" - description: Number of periods with throttling active. @@ -215,8 +215,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" isMonotonic: true unit: '{periods}' - description: Number of periods when the container hits its throttling limit. @@ -225,8 +225,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" isMonotonic: true unit: '{periods}' - description: Aggregate time the container was throttled. @@ -235,8 +235,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" isMonotonic: true unit: ns - description: Time spent by tasks of the cgroup in kernel mode (Linux). Time spent by all container processes in kernel mode (Windows). @@ -245,8 +245,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "10000000" - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" isMonotonic: true unit: ns - description: Per-core CPU usage by the container (Only available with cgroups v1). @@ -259,57 +259,57 @@ resourceMetrics: - key: core value: stringValue: cpu0 - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" - asInt: "0" attributes: - key: core value: stringValue: cpu1 - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" - asInt: "262690" attributes: - key: core value: stringValue: cpu2 - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" - asInt: "762532" attributes: - key: core value: stringValue: cpu3 - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" - asInt: "78532" attributes: - key: core value: stringValue: cpu4 - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" - asInt: "28108575" attributes: - key: core value: stringValue: cpu5 - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" - asInt: "8800811" attributes: - key: core value: stringValue: cpu6 - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" - asInt: "4191833" attributes: - key: core value: stringValue: cpu7 - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" isMonotonic: true unit: ns - description: System CPU usage, as reported by docker. @@ -318,8 +318,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "120830550000000" - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" isMonotonic: true unit: ns - description: Total CPU time consumed. @@ -328,8 +328,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "43620018" - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" isMonotonic: true unit: ns - description: Time spent by tasks of the cgroup in user mode (Linux). Time spent by all container processes in user mode (Windows). @@ -338,8 +338,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "10000000" - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" isMonotonic: true unit: ns - description: The amount of anonymous memory that has been identified as active by the kernel. @@ -348,8 +348,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" unit: By - description: Cache memory that has been identified as active by the kernel. name: container.memory.active_file @@ -357,8 +357,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "270336" - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" unit: By - description: The amount of memory used by the processes of this control group that can be associated precisely with a block on a block device (Only available with cgroups v1). name: container.memory.cache @@ -366,8 +366,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2433024" - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" unit: By - description: Bytes that are waiting to get written back to the disk, from this cgroup (Only available with cgroups v1). name: container.memory.dirty @@ -375,8 +375,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" unit: By - description: The maximum amount of physical memory that can be used by the processes of this control group (Only available with cgroups v1). name: container.memory.hierarchical_memory_limit @@ -384,8 +384,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "9223372036854772000" - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" unit: By - description: The maximum amount of RAM + swap that can be used by the processes of this control group (Only available with cgroups v1). name: container.memory.hierarchical_memsw_limit @@ -393,8 +393,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "9223372036854772000" - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" unit: By - description: The amount of anonymous memory that has been identified as inactive by the kernel. name: container.memory.inactive_anon @@ -402,8 +402,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" unit: By - description: Cache memory that has been identified as inactive by the kernel. name: container.memory.inactive_file @@ -411,8 +411,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2162688" - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" unit: By - description: Indicates the amount of memory mapped by the processes in the control group (Only available with cgroups v1). name: container.memory.mapped_file @@ -420,15 +420,15 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1486848" - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" unit: By - description: Percentage of memory used. gauge: dataPoints: - asDouble: 0.006938014912420301 - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" name: container.memory.percent unit: "1" - description: Indicate the number of times that a process of the cgroup triggered a page fault. @@ -437,8 +437,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "990" - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" isMonotonic: true unit: '{faults}' - description: Indicate the number of times that a process of the cgroup triggered a major fault. @@ -447,8 +447,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" isMonotonic: true unit: '{faults}' - description: Number of pages read from disk by the cgroup (Only available with cgroups v1). @@ -457,8 +457,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1287" - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" isMonotonic: true unit: '{operations}' - description: Number of pages written to disk by the cgroup (Only available with cgroups v1). @@ -467,8 +467,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "667" - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" isMonotonic: true unit: '{operations}' - description: 'The amount of memory that doesn’t correspond to anything on disk: stacks, heaps, and anonymous memory maps (Only available with cgroups v1).' @@ -477,8 +477,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" unit: By - description: Number of bytes of anonymous transparent hugepages in this cgroup (Only available with cgroups v1). name: container.memory.rss_huge @@ -486,8 +486,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" unit: By - description: The amount of anonymous memory that has been identified as active by the kernel. Includes descendant cgroups (Only available with cgroups v1). name: container.memory.total_active_anon @@ -495,8 +495,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" unit: By - description: Cache memory that has been identified as active by the kernel. Includes descendant cgroups (Only available with cgroups v1). name: container.memory.total_active_file @@ -504,8 +504,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "270336" - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" unit: By - description: Total amount of memory used by the processes of this cgroup (and descendants) that can be associated with a block on a block device. Also accounts for memory used by tmpfs (Only available with cgroups v1). name: container.memory.total_cache @@ -513,8 +513,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2433024" - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" unit: By - description: Bytes that are waiting to get written back to the disk, from this cgroup and descendants (Only available with cgroups v1). name: container.memory.total_dirty @@ -522,8 +522,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" unit: By - description: The amount of anonymous memory that has been identified as inactive by the kernel. Includes descendant cgroups (Only available with cgroups v1). name: container.memory.total_inactive_anon @@ -531,8 +531,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" unit: By - description: Cache memory that has been identified as inactive by the kernel. Includes descendant cgroups (Only available with cgroups v1). name: container.memory.total_inactive_file @@ -540,8 +540,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2162688" - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" unit: By - description: Indicates the amount of memory mapped by the processes in the control group and descendant groups (Only available with cgroups v1). name: container.memory.total_mapped_file @@ -549,8 +549,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1486848" - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" unit: By - description: Indicate the number of times that a process of the cgroup (or descendant cgroups) triggered a page fault (Only available with cgroups v1). name: container.memory.total_pgfault @@ -558,8 +558,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "990" - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" isMonotonic: true unit: '{faults}' - description: Indicate the number of times that a process of the cgroup (or descendant cgroups) triggered a major fault (Only available with cgroups v1). @@ -568,8 +568,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" isMonotonic: true unit: '{faults}' - description: Number of pages read from disk by the cgroup and descendant groups (Only available with cgroups v1). @@ -578,8 +578,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1287" - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" isMonotonic: true unit: '{operations}' - description: Number of pages written to disk by the cgroup and descendant groups (Only available with cgroups v1). @@ -588,8 +588,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "667" - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" isMonotonic: true unit: '{operations}' - description: 'The amount of memory that doesn’t correspond to anything on disk: stacks, heaps, and anonymous memory maps. Includes descendant cgroups (Only available with cgroups v1).' @@ -598,8 +598,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" unit: By - description: Number of bytes of anonymous transparent hugepages in this cgroup and descendant cgroups (Only available with cgroups v1). name: container.memory.total_rss_huge @@ -607,8 +607,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" unit: By - description: The amount of memory that cannot be reclaimed. Includes descendant cgroups (Only available with cgroups v1). name: container.memory.total_unevictable @@ -616,8 +616,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" unit: By - description: Number of bytes of file/anon cache that are queued for syncing to disk in this cgroup and descendants (Only available with cgroups v1). name: container.memory.total_writeback @@ -625,8 +625,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" unit: By - description: The amount of memory that cannot be reclaimed. name: container.memory.unevictable @@ -634,8 +634,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" unit: By - description: Memory limit of the container. name: container.memory.usage.limit @@ -643,8 +643,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "10449559552" - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" unit: By - description: Maximum memory usage. name: container.memory.usage.max @@ -652,8 +652,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3932160" - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" unit: By - description: Memory usage of the container. This excludes the cache. name: container.memory.usage.total @@ -661,8 +661,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "724992" - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" unit: By - description: Number of bytes of file/anon cache that are queued for syncing to disk in this cgroup (Only available with cgroups v1). name: container.memory.writeback @@ -670,8 +670,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" unit: By - description: Bytes received by the container. name: container.network.io.usage.rx_bytes @@ -683,8 +683,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" isMonotonic: true unit: By - description: Incoming packets dropped. @@ -697,8 +697,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" isMonotonic: true unit: '{packets}' - description: Received errors. @@ -711,8 +711,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" isMonotonic: true unit: '{errors}' - description: Packets received. @@ -725,8 +725,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" isMonotonic: true unit: '{packets}' - description: Bytes sent. @@ -739,8 +739,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" isMonotonic: true unit: By - description: Outgoing packets dropped. @@ -753,8 +753,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" isMonotonic: true unit: '{packets}' - description: Sent errors. @@ -767,8 +767,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" isMonotonic: true unit: '{errors}' - description: Packets sent. @@ -781,8 +781,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" isMonotonic: true unit: '{packets}' - description: Number of pids in the container's cgroup. @@ -791,15 +791,15 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1" - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" unit: '{pids}' - description: Time elapsed since container start time. gauge: dataPoints: - - asDouble: 2.95714674407398e+07 - startTimeUnixNano: "1686652517690921000" - timeUnixNano: "1686652517697808000" + - asDouble: 3.06813858144158e+07 + startTimeUnixNano: "1687762436059456000" + timeUnixNano: "1687762436071484000" name: container.uptime unit: s scope: diff --git a/receiver/dockerstatsreceiver/testdata/mock/single_container_with_optional_resource_attributes/container.json b/receiver/dockerstatsreceiver/testdata/mock/single_container_with_optional_resource_attributes/container.json new file mode 100644 index 000000000000..73b98c332a56 --- /dev/null +++ b/receiver/dockerstatsreceiver/testdata/mock/single_container_with_optional_resource_attributes/container.json @@ -0,0 +1,218 @@ +{ + "AppArmorProfile": "", + "Args": [], + "Config": { + "AttachStderr": true, + "AttachStdin": true, + "AttachStdout": true, + "Cmd": [ + "/bin/sh" + ], + "Domainname": "", + "Entrypoint": null, + "Env": [ + "ENV_VAR=env-var", + "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" + ], + "ExposedPorts": { + "8000/tcp": {} + }, + "Hostname": "10b703fb312b", + "Image": "ubuntu", + "Labels": { + "container.label": "container-label" + }, + "OnBuild": null, + "OpenStdin": true, + "StdinOnce": true, + "Tty": true, + "User": "", + "Volumes": null, + "WorkingDir": "" + }, + "Created": "2022-07-06T04:17:29.79437Z", + "Driver": "overlay2", + "ExecIDs": null, + "GraphDriver": { + "Data": { + "LowerDir": "/var/lib/docker/overlay2/669689c31e0a0038beda956dc8ee195c30093890251f497fbee84131e6abe859-init/diff:/var/lib/docker/overlay2/f11adae41a6c3a10b6e8fd2440b5170d8ff4f9979eecb1b43c19e2a996c9937a/diff", + "MergedDir": "/var/lib/docker/overlay2/669689c31e0a0038beda956dc8ee195c30093890251f497fbee84131e6abe859/merged", + "UpperDir": "/var/lib/docker/overlay2/669689c31e0a0038beda956dc8ee195c30093890251f497fbee84131e6abe859/diff", + "WorkDir": "/var/lib/docker/overlay2/669689c31e0a0038beda956dc8ee195c30093890251f497fbee84131e6abe859/work" + }, + "Name": "overlay2" + }, + "HostConfig": { + "AutoRemove": false, + "Binds": null, + "BlkioDeviceReadBps": null, + "BlkioDeviceReadIOps": null, + "BlkioDeviceWriteBps": null, + "BlkioDeviceWriteIOps": null, + "BlkioWeight": 0, + "BlkioWeightDevice": [], + "CapAdd": null, + "CapDrop": null, + "Cgroup": "", + "CgroupParent": "", + "CgroupnsMode": "host", + "ConsoleSize": [ + 0, + 0 + ], + "ContainerIDFile": "", + "CpuCount": 0, + "CpuPercent": 0, + "CpuPeriod": 0, + "CpuQuota": 0, + "CpuRealtimePeriod": 0, + "CpuRealtimeRuntime": 0, + "CpuShares": 0, + "CpusetCpus": "", + "CpusetMems": "", + "DeviceCgroupRules": null, + "DeviceRequests": null, + "Devices": [], + "Dns": [], + "DnsOptions": [], + "DnsSearch": [], + "ExtraHosts": null, + "GroupAdd": null, + "IOMaximumBandwidth": 0, + "IOMaximumIOps": 0, + "IpcMode": "private", + "Isolation": "", + "KernelMemory": 0, + "KernelMemoryTCP": 0, + "Links": null, + "LogConfig": { + "Config": {}, + "Type": "json-file" + }, + "MaskedPaths": [ + "/proc/asound", + "/proc/acpi", + "/proc/kcore", + "/proc/keys", + "/proc/latency_stats", + "/proc/timer_list", + "/proc/timer_stats", + "/proc/sched_debug", + "/proc/scsi", + "/sys/firmware" + ], + "Memory": 0, + "MemoryReservation": 0, + "MemorySwap": 0, + "MemorySwappiness": null, + "NanoCpus": 0, + "NetworkMode": "default", + "OomKillDisable": false, + "OomScoreAdj": 0, + "PidMode": "", + "PidsLimit": null, + "PortBindings": { + "8000/tcp": [ + { + "HostIp": "", + "HostPort": "8000" + } + ] + }, + "Privileged": false, + "PublishAllPorts": false, + "ReadonlyPaths": [ + "/proc/bus", + "/proc/fs", + "/proc/irq", + "/proc/sys", + "/proc/sysrq-trigger" + ], + "ReadonlyRootfs": false, + "RestartPolicy": { + "MaximumRetryCount": 0, + "Name": "no" + }, + "Runtime": "runc", + "SecurityOpt": null, + "ShmSize": 67108864, + "UTSMode": "", + "Ulimits": null, + "UsernsMode": "", + "VolumeDriver": "", + "VolumesFrom": null + }, + "HostnamePath": "/var/lib/docker/containers/73364842ef014441cac89fed05df19463b1230db25a31252cdf82e754f1ec581/hostname", + "HostsPath": "/var/lib/docker/containers/73364842ef014441cac89fed05df19463b1230db25a31252cdf82e754f1ec581/hosts", + "Id": "73364842ef014441cac89fed05df19463b1230db25a31252cdf82e754f1ec581", + "Image": "sha256:825d55fb6340083b06e69e02e823a02918f3ffb575ed2a87026d4645a7fd9e1b", + "LogPath": "/var/lib/docker/containers/73364842ef014441cac89fed05df19463b1230db25a31252cdf82e754f1ec581/73364842ef014441cac89fed05df19463b1230db25a31252cdf82e754f1ec581-json.log", + "MountLabel": "", + "Mounts": [], + "Name": "/bold_sinoussi", + "NetworkSettings": { + "Bridge": "", + "EndpointID": "6914fd894bfd0a86061aa9d4a100a3e235e7f922ebc782183f60101b207ec1c7", + "Gateway": "10.255.0.1", + "GlobalIPv6Address": "", + "GlobalIPv6PrefixLen": 0, + "HairpinMode": false, + "IPAddress": "10.255.0.2", + "IPPrefixLen": 24, + "IPv6Gateway": "", + "LinkLocalIPv6Address": "", + "LinkLocalIPv6PrefixLen": 0, + "MacAddress": "02:42:0a:ff:00:01", + "Networks": { + "bridge": { + "Aliases": null, + "DriverOpts": null, + "EndpointID": "6914fd894bfd0a86061aa9d4a100a3e235e7f922ebc782183f60101b207ec1c7", + "Gateway": "10.255.0.1", + "GlobalIPv6Address": "", + "GlobalIPv6PrefixLen": 0, + "IPAMConfig": null, + "IPAddress": "10.255.0.2", + "IPPrefixLen": 24, + "IPv6Gateway": "", + "Links": null, + "MacAddress": "02:42:0a:ff:00:01", + "NetworkID": "792aab49ed5f9b0f0a33af3a93d0581c1bd8ea3688482e1859c3e544256af057" + } + }, + "Ports": { + "8000/tcp": [ + { + "HostIp": "0.0.0.0", + "HostPort": "8000" + }, + { + "HostIp": "::", + "HostPort": "8000" + } + ] + }, + "SandboxID": "4602fa6944161b3c0e2ff24901ab5b5c0b64f4052f85555b87afeab456428c5e", + "SandboxKey": "/var/run/docker/netns/4602fa694416", + "SecondaryIPAddresses": null, + "SecondaryIPv6Addresses": null + }, + "Path": "/bin/sh", + "Platform": "linux", + "ProcessLabel": "", + "ResolvConfPath": "/var/lib/docker/containers/73364842ef014441cac89fed05df19463b1230db25a31252cdf82e754f1ec581/resolv.conf", + "RestartCount": 0, + "State": { + "Dead": false, + "Error": "", + "ExitCode": 0, + "FinishedAt": "0001-01-01T00:00:00Z", + "OOMKilled": false, + "Paused": false, + "Pid": 2968, + "Restarting": false, + "Running": true, + "StartedAt": "2022-07-06T04:17:30.2570682Z", + "Status": "running" + } +} \ No newline at end of file diff --git a/receiver/dockerstatsreceiver/testdata/mock/single_container_with_optional_resource_attributes/containers.json b/receiver/dockerstatsreceiver/testdata/mock/single_container_with_optional_resource_attributes/containers.json new file mode 100644 index 000000000000..7b64d306f969 --- /dev/null +++ b/receiver/dockerstatsreceiver/testdata/mock/single_container_with_optional_resource_attributes/containers.json @@ -0,0 +1,54 @@ +[ + { + "Command": "/bin/sh", + "Created": 1657081049, + "HostConfig": { + "NetworkMode": "default" + }, + "Id": "73364842ef014441cac89fed05df19463b1230db25a31252cdf82e754f1ec581", + "Image": "ubuntu", + "ImageID": "sha256:825d55fb6340083b06e69e02e823a02918f3ffb575ed2a87026d4645a7fd9e1b", + "Labels": { + "container.label": "container-label" + }, + "Mounts": [], + "Names": [ + "/bold_sinoussi" + ], + "NetworkSettings": { + "Networks": { + "bridge": { + "Aliases": null, + "DriverOpts": null, + "EndpointID": "6914fd894bfd0a86061aa9d4a100a3e235e7f922ebc782183f60101b207ec1c7", + "Gateway": "10.255.0.1", + "GlobalIPv6Address": "", + "GlobalIPv6PrefixLen": 0, + "IPAMConfig": null, + "IPAddress": "10.255.0.2", + "IPPrefixLen": 24, + "IPv6Gateway": "", + "Links": null, + "MacAddress": "02:42:0a:ff:00:02", + "NetworkID": "792aab49ed5f9b0f0a33af3a93d0581c1bd8ea3688482e1859c3e544256af057" + } + } + }, + "Ports": [ + { + "IP": "0.0.0.0", + "PrivatePort": 8000, + "PublicPort": 8000, + "Type": "tcp" + }, + { + "IP": "::", + "PrivatePort": 8000, + "PublicPort": 8000, + "Type": "tcp" + } + ], + "State": "running", + "Status": "Up 3 minutes" + } +] \ No newline at end of file diff --git a/receiver/dockerstatsreceiver/testdata/mock/single_container_with_optional_resource_attributes/expected_metrics.yaml b/receiver/dockerstatsreceiver/testdata/mock/single_container_with_optional_resource_attributes/expected_metrics.yaml new file mode 100644 index 000000000000..9a841727892d --- /dev/null +++ b/receiver/dockerstatsreceiver/testdata/mock/single_container_with_optional_resource_attributes/expected_metrics.yaml @@ -0,0 +1,807 @@ +resourceMetrics: + - resource: + attributes: + - key: container-metric-label + value: + stringValue: container-label + - key: container.command_line + value: + stringValue: /bin/sh + - key: container.hostname + value: + stringValue: 10b703fb312b + - key: container.id + value: + stringValue: 73364842ef014441cac89fed05df19463b1230db25a31252cdf82e754f1ec581 + - key: container.image.id + value: + stringValue: sha256:825d55fb6340083b06e69e02e823a02918f3ffb575ed2a87026d4645a7fd9e1b + - key: container.image.name + value: + stringValue: ubuntu + - key: container.name + value: + stringValue: bold_sinoussi + - key: container.runtime + value: + stringValue: docker + - key: env-var-metric-label + value: + stringValue: env-var + schemaUrl: https://opentelemetry.io/schemas/1.6.1 + scopeMetrics: + - metrics: + - description: Number of bytes transferred to/from the disk by the group and descendant groups. + name: container.blockio.io_service_bytes_recursive + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: device_major + value: + stringValue: "254" + - key: device_minor + value: + stringValue: "0" + - key: operation + value: + stringValue: async + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + - asInt: "0" + attributes: + - key: device_major + value: + stringValue: "254" + - key: device_minor + value: + stringValue: "0" + - key: operation + value: + stringValue: discard + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + - asInt: "2502656" + attributes: + - key: device_major + value: + stringValue: "254" + - key: device_minor + value: + stringValue: "0" + - key: operation + value: + stringValue: read + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + - asInt: "2502656" + attributes: + - key: device_major + value: + stringValue: "254" + - key: device_minor + value: + stringValue: "0" + - key: operation + value: + stringValue: sync + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + - asInt: "2502656" + attributes: + - key: device_major + value: + stringValue: "254" + - key: device_minor + value: + stringValue: "0" + - key: operation + value: + stringValue: total + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + - asInt: "0" + attributes: + - key: device_major + value: + stringValue: "254" + - key: device_minor + value: + stringValue: "0" + - key: operation + value: + stringValue: write + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + isMonotonic: true + unit: By + - description: Number of IOs (bio) issued to the disk by the group and descendant groups (Only available with cgroups v1). + name: container.blockio.io_serviced_recursive + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: device_major + value: + stringValue: "254" + - key: device_minor + value: + stringValue: "0" + - key: operation + value: + stringValue: async + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + - asInt: "0" + attributes: + - key: device_major + value: + stringValue: "254" + - key: device_minor + value: + stringValue: "0" + - key: operation + value: + stringValue: discard + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + - asInt: "99" + attributes: + - key: device_major + value: + stringValue: "254" + - key: device_minor + value: + stringValue: "0" + - key: operation + value: + stringValue: read + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + - asInt: "99" + attributes: + - key: device_major + value: + stringValue: "254" + - key: device_minor + value: + stringValue: "0" + - key: operation + value: + stringValue: sync + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + - asInt: "99" + attributes: + - key: device_major + value: + stringValue: "254" + - key: device_minor + value: + stringValue: "0" + - key: operation + value: + stringValue: total + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + - asInt: "0" + attributes: + - key: device_major + value: + stringValue: "254" + - key: device_minor + value: + stringValue: "0" + - key: operation + value: + stringValue: write + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + isMonotonic: true + unit: '{operations}' + - description: 'Deprecated: use `container.cpu.utilization` metric instead. Percent of CPU used by the container.' + gauge: + dataPoints: + - asDouble: 0.0002888012543185477 + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + name: container.cpu.percent + unit: "1" + - description: Number of periods with throttling active. + name: container.cpu.throttling_data.periods + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + isMonotonic: true + unit: '{periods}' + - description: Number of periods when the container hits its throttling limit. + name: container.cpu.throttling_data.throttled_periods + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + isMonotonic: true + unit: '{periods}' + - description: Aggregate time the container was throttled. + name: container.cpu.throttling_data.throttled_time + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + isMonotonic: true + unit: ns + - description: Time spent by tasks of the cgroup in kernel mode (Linux). Time spent by all container processes in kernel mode (Windows). + name: container.cpu.usage.kernelmode + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "10000000" + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + isMonotonic: true + unit: ns + - description: Per-core CPU usage by the container (Only available with cgroups v1). + name: container.cpu.usage.percpu + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "1415045" + attributes: + - key: core + value: + stringValue: cpu0 + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + - asInt: "0" + attributes: + - key: core + value: + stringValue: cpu1 + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + - asInt: "262690" + attributes: + - key: core + value: + stringValue: cpu2 + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + - asInt: "762532" + attributes: + - key: core + value: + stringValue: cpu3 + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + - asInt: "78532" + attributes: + - key: core + value: + stringValue: cpu4 + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + - asInt: "28108575" + attributes: + - key: core + value: + stringValue: cpu5 + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + - asInt: "8800811" + attributes: + - key: core + value: + stringValue: cpu6 + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + - asInt: "4191833" + attributes: + - key: core + value: + stringValue: cpu7 + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + isMonotonic: true + unit: ns + - description: System CPU usage, as reported by docker. + name: container.cpu.usage.system + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "120830550000000" + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + isMonotonic: true + unit: ns + - description: Total CPU time consumed. + name: container.cpu.usage.total + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "43620018" + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + isMonotonic: true + unit: ns + - description: Time spent by tasks of the cgroup in user mode (Linux). Time spent by all container processes in user mode (Windows). + name: container.cpu.usage.usermode + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "10000000" + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + isMonotonic: true + unit: ns + - description: The amount of anonymous memory that has been identified as active by the kernel. + name: container.memory.active_anon + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + unit: By + - description: Cache memory that has been identified as active by the kernel. + name: container.memory.active_file + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "270336" + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + unit: By + - description: The amount of memory used by the processes of this control group that can be associated precisely with a block on a block device (Only available with cgroups v1). + name: container.memory.cache + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "2433024" + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + unit: By + - description: Bytes that are waiting to get written back to the disk, from this cgroup (Only available with cgroups v1). + name: container.memory.dirty + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + unit: By + - description: The maximum amount of physical memory that can be used by the processes of this control group (Only available with cgroups v1). + name: container.memory.hierarchical_memory_limit + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "9223372036854772000" + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + unit: By + - description: The maximum amount of RAM + swap that can be used by the processes of this control group (Only available with cgroups v1). + name: container.memory.hierarchical_memsw_limit + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "9223372036854772000" + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + unit: By + - description: The amount of anonymous memory that has been identified as inactive by the kernel. + name: container.memory.inactive_anon + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + unit: By + - description: Cache memory that has been identified as inactive by the kernel. + name: container.memory.inactive_file + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "2162688" + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + unit: By + - description: Indicates the amount of memory mapped by the processes in the control group (Only available with cgroups v1). + name: container.memory.mapped_file + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "1486848" + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + unit: By + - description: Percentage of memory used. + gauge: + dataPoints: + - asDouble: 0.006938014912420301 + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + name: container.memory.percent + unit: "1" + - description: Indicate the number of times that a process of the cgroup triggered a page fault. + name: container.memory.pgfault + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "990" + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + isMonotonic: true + unit: '{faults}' + - description: Indicate the number of times that a process of the cgroup triggered a major fault. + name: container.memory.pgmajfault + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + isMonotonic: true + unit: '{faults}' + - description: Number of pages read from disk by the cgroup (Only available with cgroups v1). + name: container.memory.pgpgin + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "1287" + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + isMonotonic: true + unit: '{operations}' + - description: Number of pages written to disk by the cgroup (Only available with cgroups v1). + name: container.memory.pgpgout + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "667" + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + isMonotonic: true + unit: '{operations}' + - description: 'The amount of memory that doesn’t correspond to anything on disk: stacks, heaps, and anonymous memory maps (Only available with cgroups v1).' + name: container.memory.rss + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + unit: By + - description: Number of bytes of anonymous transparent hugepages in this cgroup (Only available with cgroups v1). + name: container.memory.rss_huge + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + unit: By + - description: The amount of anonymous memory that has been identified as active by the kernel. Includes descendant cgroups (Only available with cgroups v1). + name: container.memory.total_active_anon + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + unit: By + - description: Cache memory that has been identified as active by the kernel. Includes descendant cgroups (Only available with cgroups v1). + name: container.memory.total_active_file + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "270336" + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + unit: By + - description: Total amount of memory used by the processes of this cgroup (and descendants) that can be associated with a block on a block device. Also accounts for memory used by tmpfs (Only available with cgroups v1). + name: container.memory.total_cache + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "2433024" + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + unit: By + - description: Bytes that are waiting to get written back to the disk, from this cgroup and descendants (Only available with cgroups v1). + name: container.memory.total_dirty + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + unit: By + - description: The amount of anonymous memory that has been identified as inactive by the kernel. Includes descendant cgroups (Only available with cgroups v1). + name: container.memory.total_inactive_anon + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + unit: By + - description: Cache memory that has been identified as inactive by the kernel. Includes descendant cgroups (Only available with cgroups v1). + name: container.memory.total_inactive_file + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "2162688" + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + unit: By + - description: Indicates the amount of memory mapped by the processes in the control group and descendant groups (Only available with cgroups v1). + name: container.memory.total_mapped_file + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "1486848" + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + unit: By + - description: Indicate the number of times that a process of the cgroup (or descendant cgroups) triggered a page fault (Only available with cgroups v1). + name: container.memory.total_pgfault + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "990" + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + isMonotonic: true + unit: '{faults}' + - description: Indicate the number of times that a process of the cgroup (or descendant cgroups) triggered a major fault (Only available with cgroups v1). + name: container.memory.total_pgmajfault + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + isMonotonic: true + unit: '{faults}' + - description: Number of pages read from disk by the cgroup and descendant groups (Only available with cgroups v1). + name: container.memory.total_pgpgin + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "1287" + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + isMonotonic: true + unit: '{operations}' + - description: Number of pages written to disk by the cgroup and descendant groups (Only available with cgroups v1). + name: container.memory.total_pgpgout + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "667" + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + isMonotonic: true + unit: '{operations}' + - description: 'The amount of memory that doesn’t correspond to anything on disk: stacks, heaps, and anonymous memory maps. Includes descendant cgroups (Only available with cgroups v1).' + name: container.memory.total_rss + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + unit: By + - description: Number of bytes of anonymous transparent hugepages in this cgroup and descendant cgroups (Only available with cgroups v1). + name: container.memory.total_rss_huge + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + unit: By + - description: The amount of memory that cannot be reclaimed. Includes descendant cgroups (Only available with cgroups v1). + name: container.memory.total_unevictable + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + unit: By + - description: Number of bytes of file/anon cache that are queued for syncing to disk in this cgroup and descendants (Only available with cgroups v1). + name: container.memory.total_writeback + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + unit: By + - description: The amount of memory that cannot be reclaimed. + name: container.memory.unevictable + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + unit: By + - description: Memory limit of the container. + name: container.memory.usage.limit + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "10449559552" + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + unit: By + - description: Maximum memory usage. + name: container.memory.usage.max + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "3932160" + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + unit: By + - description: Memory usage of the container. This excludes the cache. + name: container.memory.usage.total + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "724992" + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + unit: By + - description: Number of bytes of file/anon cache that are queued for syncing to disk in this cgroup (Only available with cgroups v1). + name: container.memory.writeback + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + unit: By + - description: Bytes received by the container. + name: container.network.io.usage.rx_bytes + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "1532" + attributes: + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + isMonotonic: true + unit: By + - description: Incoming packets dropped. + name: container.network.io.usage.rx_dropped + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + isMonotonic: true + unit: '{packets}' + - description: Received errors. + name: container.network.io.usage.rx_errors + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + isMonotonic: true + unit: '{errors}' + - description: Packets received. + name: container.network.io.usage.rx_packets + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "18" + attributes: + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + isMonotonic: true + unit: '{packets}' + - description: Bytes sent. + name: container.network.io.usage.tx_bytes + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + isMonotonic: true + unit: By + - description: Outgoing packets dropped. + name: container.network.io.usage.tx_dropped + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + isMonotonic: true + unit: '{packets}' + - description: Sent errors. + name: container.network.io.usage.tx_errors + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + isMonotonic: true + unit: '{errors}' + - description: Packets sent. + name: container.network.io.usage.tx_packets + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + attributes: + - key: interface + value: + stringValue: eth0 + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + isMonotonic: true + unit: '{packets}' + - description: Number of pids in the container's cgroup. + name: container.pids.count + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "1" + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + unit: '{pids}' + - description: Time elapsed since container start time. + gauge: + dataPoints: + - asDouble: 3.06813860885448e+07 + startTimeUnixNano: "1687762436337809000" + timeUnixNano: "1687762436345613000" + name: container.uptime + unit: s + scope: + name: otelcol/dockerstatsreceiver + version: latest diff --git a/receiver/dockerstatsreceiver/testdata/mock/single_container_with_optional_resource_attributes/stats.json b/receiver/dockerstatsreceiver/testdata/mock/single_container_with_optional_resource_attributes/stats.json new file mode 100644 index 000000000000..61a10904c65f --- /dev/null +++ b/receiver/dockerstatsreceiver/testdata/mock/single_container_with_optional_resource_attributes/stats.json @@ -0,0 +1,182 @@ +{ + "blkio_stats": { + "io_merged_recursive": [], + "io_queue_recursive": [], + "io_service_bytes_recursive": [ + { + "major": 254, + "minor": 0, + "op": "Read", + "value": 2502656 + }, + { + "major": 254, + "minor": 0, + "op": "Write", + "value": 0 + }, + { + "major": 254, + "minor": 0, + "op": "Sync", + "value": 2502656 + }, + { + "major": 254, + "minor": 0, + "op": "Async", + "value": 0 + }, + { + "major": 254, + "minor": 0, + "op": "Discard", + "value": 0 + }, + { + "major": 254, + "minor": 0, + "op": "Total", + "value": 2502656 + } + ], + "io_service_time_recursive": [], + "io_serviced_recursive": [ + { + "major": 254, + "minor": 0, + "op": "Read", + "value": 99 + }, + { + "major": 254, + "minor": 0, + "op": "Write", + "value": 0 + }, + { + "major": 254, + "minor": 0, + "op": "Sync", + "value": 99 + }, + { + "major": 254, + "minor": 0, + "op": "Async", + "value": 0 + }, + { + "major": 254, + "minor": 0, + "op": "Discard", + "value": 0 + }, + { + "major": 254, + "minor": 0, + "op": "Total", + "value": 99 + } + ], + "io_time_recursive": [], + "io_wait_time_recursive": [], + "sectors_recursive": [] + }, + "cpu_stats": { + "cpu_usage": { + "percpu_usage": [ + 1415045, + 0, + 262690, + 762532, + 78532, + 28108575, + 8800811, + 4191833 + ], + "total_usage": 43620018, + "usage_in_kernelmode": 10000000, + "usage_in_usermode": 10000000 + }, + "online_cpus": 8, + "system_cpu_usage": 120830550000000, + "throttling_data": { + "periods": 0, + "throttled_periods": 0, + "throttled_time": 0 + } + }, + "id": "73364842ef014441cac89fed05df19463b1230db25a31252cdf82e754f1ec581", + "memory_stats": { + "limit": 10449559552, + "max_usage": 3932160, + "stats": { + "active_anon": 0, + "active_file": 270336, + "cache": 2433024, + "dirty": 0, + "hierarchical_memory_limit": 9223372036854772000, + "hierarchical_memsw_limit": 9223372036854772000, + "inactive_anon": 0, + "inactive_file": 2162688, + "mapped_file": 1486848, + "pgfault": 990, + "pgmajfault": 0, + "pgpgin": 1287, + "pgpgout": 667, + "rss": 0, + "rss_huge": 0, + "total_active_anon": 0, + "total_active_file": 270336, + "total_cache": 2433024, + "total_dirty": 0, + "total_inactive_anon": 0, + "total_inactive_file": 2162688, + "total_mapped_file": 1486848, + "total_pgfault": 990, + "total_pgmajfault": 0, + "total_pgpgin": 1287, + "total_pgpgout": 667, + "total_rss": 0, + "total_rss_huge": 0, + "total_unevictable": 0, + "total_writeback": 0, + "unevictable": 0, + "writeback": 0 + }, + "usage": 2887680 + }, + "name": "/bold_sinoussi", + "networks": { + "eth0": { + "rx_bytes": 1532, + "rx_dropped": 0, + "rx_errors": 0, + "rx_packets": 18, + "tx_bytes": 0, + "tx_dropped": 0, + "tx_errors": 0, + "tx_packets": 0 + } + }, + "num_procs": 0, + "pids_stats": { + "current": 1 + }, + "precpu_stats": { + "cpu_usage": { + "total_usage": 0, + "usage_in_kernelmode": 0, + "usage_in_usermode": 0 + }, + "throttling_data": { + "periods": 0, + "throttled_periods": 0, + "throttled_time": 0 + } + }, + "preread": "0001-01-01T00:00:00Z", + "read": "2022-07-06T04:27:03.0439251Z", + "storage_stats": {} +} \ No newline at end of file diff --git a/receiver/dockerstatsreceiver/testdata/mock/two_containers/expected_metrics.yaml b/receiver/dockerstatsreceiver/testdata/mock/two_containers/expected_metrics.yaml index 8eb9fc57306b..94f7415657c7 100644 --- a/receiver/dockerstatsreceiver/testdata/mock/two_containers/expected_metrics.yaml +++ b/receiver/dockerstatsreceiver/testdata/mock/two_containers/expected_metrics.yaml @@ -41,8 +41,8 @@ resourceMetrics: - key: operation value: stringValue: async - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" - asInt: "0" attributes: - key: device_major @@ -54,8 +54,8 @@ resourceMetrics: - key: operation value: stringValue: discard - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" - asInt: "73728" attributes: - key: device_major @@ -67,8 +67,8 @@ resourceMetrics: - key: operation value: stringValue: read - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" - asInt: "73728" attributes: - key: device_major @@ -80,8 +80,8 @@ resourceMetrics: - key: operation value: stringValue: sync - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" - asInt: "73728" attributes: - key: device_major @@ -93,8 +93,8 @@ resourceMetrics: - key: operation value: stringValue: total - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" - asInt: "0" attributes: - key: device_major @@ -106,8 +106,8 @@ resourceMetrics: - key: operation value: stringValue: write - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: By - description: Number of IOs (bio) issued to the disk by the group and descendant groups (Only available with cgroups v1). @@ -126,8 +126,8 @@ resourceMetrics: - key: operation value: stringValue: async - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" - asInt: "0" attributes: - key: device_major @@ -139,8 +139,8 @@ resourceMetrics: - key: operation value: stringValue: discard - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" - asInt: "1" attributes: - key: device_major @@ -152,8 +152,8 @@ resourceMetrics: - key: operation value: stringValue: read - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" - asInt: "1" attributes: - key: device_major @@ -165,8 +165,8 @@ resourceMetrics: - key: operation value: stringValue: sync - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" - asInt: "1" attributes: - key: device_major @@ -178,8 +178,8 @@ resourceMetrics: - key: operation value: stringValue: total - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" - asInt: "0" attributes: - key: device_major @@ -191,16 +191,16 @@ resourceMetrics: - key: operation value: stringValue: write - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: '{operations}' - description: 'Deprecated: use `container.cpu.utilization` metric instead. Percent of CPU used by the container.' gauge: dataPoints: - asDouble: 0 - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" name: container.cpu.percent unit: "1" - description: Number of periods with throttling active. @@ -209,8 +209,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: '{periods}' - description: Number of periods when the container hits its throttling limit. @@ -219,8 +219,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: '{periods}' - description: Aggregate time the container was throttled. @@ -229,8 +229,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: ns - description: Time spent by tasks of the cgroup in kernel mode (Linux). Time spent by all container processes in kernel mode (Windows). @@ -239,8 +239,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "10000000" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: ns - description: Per-core CPU usage by the container (Only available with cgroups v1). @@ -253,8 +253,8 @@ resourceMetrics: - key: core value: stringValue: cpu0 - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: ns - description: System CPU usage, as reported by docker. @@ -263,8 +263,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "14930240000000" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: ns - description: Total CPU time consumed. @@ -273,8 +273,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "31093384" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: ns - description: Time spent by tasks of the cgroup in user mode (Linux). Time spent by all container processes in user mode (Windows). @@ -283,8 +283,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "10000000" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: ns - description: The amount of anonymous memory that has been identified as active by the kernel. @@ -293,8 +293,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4096" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: Cache memory that has been identified as active by the kernel. name: container.memory.active_file @@ -302,8 +302,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "73728" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: The amount of memory used by the processes of this control group that can be associated precisely with a block on a block device (Only available with cgroups v1). name: container.memory.cache @@ -311,8 +311,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "73728" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: Bytes that are waiting to get written back to the disk, from this cgroup (Only available with cgroups v1). name: container.memory.dirty @@ -320,8 +320,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: The maximum amount of physical memory that can be used by the processes of this control group (Only available with cgroups v1). name: container.memory.hierarchical_memory_limit @@ -329,8 +329,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "9223372036854772000" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: The maximum amount of RAM + swap that can be used by the processes of this control group (Only available with cgroups v1). name: container.memory.hierarchical_memsw_limit @@ -338,8 +338,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "9223372036854772000" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: The amount of anonymous memory that has been identified as inactive by the kernel. name: container.memory.inactive_anon @@ -347,8 +347,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "106496" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: Cache memory that has been identified as inactive by the kernel. name: container.memory.inactive_file @@ -356,8 +356,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: Indicates the amount of memory mapped by the processes in the control group (Only available with cgroups v1). name: container.memory.mapped_file @@ -365,15 +365,15 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: Percentage of memory used. gauge: dataPoints: - asDouble: 0.02053846320949035 - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" name: container.memory.percent unit: "1" - description: Indicate the number of times that a process of the cgroup triggered a page fault. @@ -382,8 +382,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2417" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: '{faults}' - description: Indicate the number of times that a process of the cgroup triggered a major fault. @@ -392,8 +392,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: '{faults}' - description: Number of pages read from disk by the cgroup (Only available with cgroups v1). @@ -402,8 +402,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1980" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: '{operations}' - description: Number of pages written to disk by the cgroup (Only available with cgroups v1). @@ -412,8 +412,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1935" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: '{operations}' - description: 'The amount of memory that doesn’t correspond to anything on disk: stacks, heaps, and anonymous memory maps (Only available with cgroups v1).' @@ -422,8 +422,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "110592" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: Number of bytes of anonymous transparent hugepages in this cgroup (Only available with cgroups v1). name: container.memory.rss_huge @@ -431,8 +431,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: The amount of anonymous memory that has been identified as active by the kernel. Includes descendant cgroups (Only available with cgroups v1). name: container.memory.total_active_anon @@ -440,8 +440,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4096" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: Cache memory that has been identified as active by the kernel. Includes descendant cgroups (Only available with cgroups v1). name: container.memory.total_active_file @@ -449,8 +449,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "73728" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: Total amount of memory used by the processes of this cgroup (and descendants) that can be associated with a block on a block device. Also accounts for memory used by tmpfs (Only available with cgroups v1). name: container.memory.total_cache @@ -458,8 +458,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "73728" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: Bytes that are waiting to get written back to the disk, from this cgroup and descendants (Only available with cgroups v1). name: container.memory.total_dirty @@ -467,8 +467,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: The amount of anonymous memory that has been identified as inactive by the kernel. Includes descendant cgroups (Only available with cgroups v1). name: container.memory.total_inactive_anon @@ -476,8 +476,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "106496" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: Cache memory that has been identified as inactive by the kernel. Includes descendant cgroups (Only available with cgroups v1). name: container.memory.total_inactive_file @@ -485,8 +485,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: Indicates the amount of memory mapped by the processes in the control group and descendant groups (Only available with cgroups v1). name: container.memory.total_mapped_file @@ -494,8 +494,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: Indicate the number of times that a process of the cgroup (or descendant cgroups) triggered a page fault (Only available with cgroups v1). name: container.memory.total_pgfault @@ -503,8 +503,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2417" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: '{faults}' - description: Indicate the number of times that a process of the cgroup (or descendant cgroups) triggered a major fault (Only available with cgroups v1). @@ -513,8 +513,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: '{faults}' - description: Number of pages read from disk by the cgroup and descendant groups (Only available with cgroups v1). @@ -523,8 +523,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1980" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: '{operations}' - description: Number of pages written to disk by the cgroup and descendant groups (Only available with cgroups v1). @@ -533,8 +533,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1935" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: '{operations}' - description: 'The amount of memory that doesn’t correspond to anything on disk: stacks, heaps, and anonymous memory maps. Includes descendant cgroups (Only available with cgroups v1).' @@ -543,8 +543,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "110592" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: Number of bytes of anonymous transparent hugepages in this cgroup and descendant cgroups (Only available with cgroups v1). name: container.memory.total_rss_huge @@ -552,8 +552,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: The amount of memory that cannot be reclaimed. Includes descendant cgroups (Only available with cgroups v1). name: container.memory.total_unevictable @@ -561,8 +561,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: Number of bytes of file/anon cache that are queued for syncing to disk in this cgroup and descendants (Only available with cgroups v1). name: container.memory.total_writeback @@ -570,8 +570,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: The amount of memory that cannot be reclaimed. name: container.memory.unevictable @@ -579,8 +579,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: Memory limit of the container. name: container.memory.usage.limit @@ -588,8 +588,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2074079232" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: Maximum memory usage. name: container.memory.usage.max @@ -597,8 +597,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "6172672" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: Memory usage of the container. This excludes the cache. name: container.memory.usage.total @@ -606,8 +606,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "425984" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: Number of bytes of file/anon cache that are queued for syncing to disk in this cgroup (Only available with cgroups v1). name: container.memory.writeback @@ -615,8 +615,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: Bytes received by the container. name: container.network.io.usage.rx_bytes @@ -628,8 +628,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: By - description: Incoming packets dropped. @@ -642,8 +642,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: '{packets}' - description: Received errors. @@ -656,8 +656,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: '{errors}' - description: Packets received. @@ -670,8 +670,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: '{packets}' - description: Bytes sent. @@ -684,8 +684,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: By - description: Outgoing packets dropped. @@ -698,8 +698,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: '{packets}' - description: Sent errors. @@ -712,8 +712,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: '{errors}' - description: Packets sent. @@ -726,8 +726,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: '{packets}' - description: Number of pids in the container's cgroup. @@ -736,15 +736,15 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: '{pids}' - description: Time elapsed since container start time. gauge: dataPoints: - - asDouble: 2.906595253770684e+07 - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + - asDouble: 3.017587092456784e+07 + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" name: container.uptime unit: s scope: @@ -792,8 +792,8 @@ resourceMetrics: - key: operation value: stringValue: async - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" - asInt: "0" attributes: - key: device_major @@ -805,8 +805,8 @@ resourceMetrics: - key: operation value: stringValue: discard - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" - asInt: "1187840" attributes: - key: device_major @@ -818,8 +818,8 @@ resourceMetrics: - key: operation value: stringValue: read - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" - asInt: "1187840" attributes: - key: device_major @@ -831,8 +831,8 @@ resourceMetrics: - key: operation value: stringValue: sync - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" - asInt: "1187840" attributes: - key: device_major @@ -844,8 +844,8 @@ resourceMetrics: - key: operation value: stringValue: total - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" - asInt: "0" attributes: - key: device_major @@ -857,8 +857,8 @@ resourceMetrics: - key: operation value: stringValue: write - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: By - description: Number of IOs (bio) issued to the disk by the group and descendant groups (Only available with cgroups v1). @@ -877,8 +877,8 @@ resourceMetrics: - key: operation value: stringValue: async - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" - asInt: "0" attributes: - key: device_major @@ -890,8 +890,8 @@ resourceMetrics: - key: operation value: stringValue: discard - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" - asInt: "19" attributes: - key: device_major @@ -903,8 +903,8 @@ resourceMetrics: - key: operation value: stringValue: read - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" - asInt: "19" attributes: - key: device_major @@ -916,8 +916,8 @@ resourceMetrics: - key: operation value: stringValue: sync - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" - asInt: "19" attributes: - key: device_major @@ -929,8 +929,8 @@ resourceMetrics: - key: operation value: stringValue: total - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" - asInt: "0" attributes: - key: device_major @@ -942,16 +942,16 @@ resourceMetrics: - key: operation value: stringValue: write - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: '{operations}' - description: 'Deprecated: use `container.cpu.utilization` metric instead. Percent of CPU used by the container.' gauge: dataPoints: - asDouble: 0 - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" name: container.cpu.percent unit: "1" - description: Number of periods with throttling active. @@ -960,8 +960,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: '{periods}' - description: Number of periods when the container hits its throttling limit. @@ -970,8 +970,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: '{periods}' - description: Aggregate time the container was throttled. @@ -980,8 +980,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: ns - description: Time spent by tasks of the cgroup in kernel mode (Linux). Time spent by all container processes in kernel mode (Windows). @@ -990,8 +990,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "20000000" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: ns - description: Per-core CPU usage by the container (Only available with cgroups v1). @@ -1004,8 +1004,8 @@ resourceMetrics: - key: core value: stringValue: cpu0 - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: ns - description: System CPU usage, as reported by docker. @@ -1014,8 +1014,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "14834790000000" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: ns - description: Total CPU time consumed. @@ -1024,8 +1024,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "34117917" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: ns - description: Time spent by tasks of the cgroup in user mode (Linux). Time spent by all container processes in user mode (Windows). @@ -1034,8 +1034,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "10000000" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: ns - description: The amount of anonymous memory that has been identified as active by the kernel. @@ -1044,8 +1044,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4096" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: Cache memory that has been identified as active by the kernel. name: container.memory.active_file @@ -1053,8 +1053,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "393216" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: The amount of memory used by the processes of this control group that can be associated precisely with a block on a block device (Only available with cgroups v1). name: container.memory.cache @@ -1062,8 +1062,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "921600" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: Bytes that are waiting to get written back to the disk, from this cgroup (Only available with cgroups v1). name: container.memory.dirty @@ -1071,8 +1071,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: The maximum amount of physical memory that can be used by the processes of this control group (Only available with cgroups v1). name: container.memory.hierarchical_memory_limit @@ -1080,8 +1080,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "9223372036854772000" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: The maximum amount of RAM + swap that can be used by the processes of this control group (Only available with cgroups v1). name: container.memory.hierarchical_memsw_limit @@ -1089,8 +1089,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "9223372036854772000" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: The amount of anonymous memory that has been identified as inactive by the kernel. name: container.memory.inactive_anon @@ -1098,8 +1098,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "147456" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: Cache memory that has been identified as inactive by the kernel. name: container.memory.inactive_file @@ -1107,8 +1107,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "528384" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: Indicates the amount of memory mapped by the processes in the control group (Only available with cgroups v1). name: container.memory.mapped_file @@ -1116,15 +1116,15 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "843776" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: Percentage of memory used. gauge: dataPoints: - asDouble: 0.037324707178785346 - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" name: container.memory.percent unit: "1" - description: Indicate the number of times that a process of the cgroup triggered a page fault. @@ -1133,8 +1133,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2469" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: '{faults}' - description: Indicate the number of times that a process of the cgroup triggered a major fault. @@ -1143,8 +1143,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "8" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: '{faults}' - description: Number of pages read from disk by the cgroup (Only available with cgroups v1). @@ -1153,8 +1153,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2288" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: '{operations}' - description: Number of pages written to disk by the cgroup (Only available with cgroups v1). @@ -1163,8 +1163,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2026" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: '{operations}' - description: 'The amount of memory that doesn’t correspond to anything on disk: stacks, heaps, and anonymous memory maps (Only available with cgroups v1).' @@ -1173,8 +1173,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "151552" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: Number of bytes of anonymous transparent hugepages in this cgroup (Only available with cgroups v1). name: container.memory.rss_huge @@ -1182,8 +1182,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: The amount of anonymous memory that has been identified as active by the kernel. Includes descendant cgroups (Only available with cgroups v1). name: container.memory.total_active_anon @@ -1191,8 +1191,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4096" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: Cache memory that has been identified as active by the kernel. Includes descendant cgroups (Only available with cgroups v1). name: container.memory.total_active_file @@ -1200,8 +1200,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "393216" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: Total amount of memory used by the processes of this cgroup (and descendants) that can be associated with a block on a block device. Also accounts for memory used by tmpfs (Only available with cgroups v1). name: container.memory.total_cache @@ -1209,8 +1209,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "921600" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: Bytes that are waiting to get written back to the disk, from this cgroup and descendants (Only available with cgroups v1). name: container.memory.total_dirty @@ -1218,8 +1218,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: The amount of anonymous memory that has been identified as inactive by the kernel. Includes descendant cgroups (Only available with cgroups v1). name: container.memory.total_inactive_anon @@ -1227,8 +1227,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "147456" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: Cache memory that has been identified as inactive by the kernel. Includes descendant cgroups (Only available with cgroups v1). name: container.memory.total_inactive_file @@ -1236,8 +1236,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "528384" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: Indicates the amount of memory mapped by the processes in the control group and descendant groups (Only available with cgroups v1). name: container.memory.total_mapped_file @@ -1245,8 +1245,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "843776" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: Indicate the number of times that a process of the cgroup (or descendant cgroups) triggered a page fault (Only available with cgroups v1). name: container.memory.total_pgfault @@ -1254,8 +1254,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2469" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: '{faults}' - description: Indicate the number of times that a process of the cgroup (or descendant cgroups) triggered a major fault (Only available with cgroups v1). @@ -1264,8 +1264,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "8" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: '{faults}' - description: Number of pages read from disk by the cgroup and descendant groups (Only available with cgroups v1). @@ -1274,8 +1274,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2288" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: '{operations}' - description: Number of pages written to disk by the cgroup and descendant groups (Only available with cgroups v1). @@ -1284,8 +1284,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2026" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: '{operations}' - description: 'The amount of memory that doesn’t correspond to anything on disk: stacks, heaps, and anonymous memory maps. Includes descendant cgroups (Only available with cgroups v1).' @@ -1294,8 +1294,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "151552" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: Number of bytes of anonymous transparent hugepages in this cgroup and descendant cgroups (Only available with cgroups v1). name: container.memory.total_rss_huge @@ -1303,8 +1303,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: The amount of memory that cannot be reclaimed. Includes descendant cgroups (Only available with cgroups v1). name: container.memory.total_unevictable @@ -1312,8 +1312,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: Number of bytes of file/anon cache that are queued for syncing to disk in this cgroup and descendants (Only available with cgroups v1). name: container.memory.total_writeback @@ -1321,8 +1321,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: The amount of memory that cannot be reclaimed. name: container.memory.unevictable @@ -1330,8 +1330,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: Memory limit of the container. name: container.memory.usage.limit @@ -1339,8 +1339,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2074079232" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: Maximum memory usage. name: container.memory.usage.max @@ -1348,8 +1348,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "6201344" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: Memory usage of the container. This excludes the cache. name: container.memory.usage.total @@ -1357,8 +1357,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "774144" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: Number of bytes of file/anon cache that are queued for syncing to disk in this cgroup (Only available with cgroups v1). name: container.memory.writeback @@ -1366,8 +1366,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: By - description: Bytes received by the container. name: container.network.io.usage.rx_bytes @@ -1379,8 +1379,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: By - description: Incoming packets dropped. @@ -1393,8 +1393,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: '{packets}' - description: Received errors. @@ -1407,8 +1407,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: '{errors}' - description: Packets received. @@ -1421,8 +1421,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: '{packets}' - description: Bytes sent. @@ -1435,8 +1435,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: By - description: Outgoing packets dropped. @@ -1449,8 +1449,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: '{packets}' - description: Sent errors. @@ -1463,8 +1463,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: '{errors}' - description: Packets sent. @@ -1477,8 +1477,8 @@ resourceMetrics: - key: interface value: stringValue: eth0 - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" isMonotonic: true unit: '{packets}' - description: Number of pids in the container's cgroup. @@ -1487,15 +1487,15 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1" - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" unit: '{pids}' - description: Time elapsed since container start time. gauge: dataPoints: - - asDouble: 2.906589656309223e+07 - startTimeUnixNano: "1686652517745787000" - timeUnixNano: "1686652517750632000" + - asDouble: 3.0175814949953232e+07 + startTimeUnixNano: "1687762436124732000" + timeUnixNano: "1687762436137493000" name: container.uptime unit: s scope: