From d27cb9ce072f8aad40293ec3319896c636fca989 Mon Sep 17 00:00:00 2001 From: mackjmr Date: Tue, 20 Jun 2023 10:19:31 +0200 Subject: [PATCH 1/6] postgresqlreceiver: Add missing units in metadata.yaml Metric unit is required, see: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/cmd/mdatagen/metadata-schema.yaml#L72-L73. This PR adds the unit to metrics where this is missing: - postgresql.bgwriter.maxwritten - postgresql.table.count --- receiver/postgresqlreceiver/documentation.md | 4 +- .../internal/metadata/generated_metrics.go | 4 +- .../metadata/generated_metrics_test.go | 4 +- receiver/postgresqlreceiver/metadata.yaml | 2 + .../testdata/integration/expected_all_db.yaml | 981 +++++++++--------- .../integration/expected_multi_db.yaml | 954 ++++++++--------- .../integration/expected_single_db.yaml | 541 +++++----- .../testdata/scraper/multiple/expected.yaml | 567 +++++----- .../multiple/expected_with_resource.yaml | 567 +++++----- .../testdata/scraper/otel/expected.yaml | 237 ++--- .../scraper/otel/expected_with_resource.yaml | 237 ++--- 11 files changed, 2064 insertions(+), 2034 deletions(-) diff --git a/receiver/postgresqlreceiver/documentation.md b/receiver/postgresqlreceiver/documentation.md index 7af3366b08b9..8fb633bec078 100644 --- a/receiver/postgresqlreceiver/documentation.md +++ b/receiver/postgresqlreceiver/documentation.md @@ -82,7 +82,7 @@ Number of times the background writer stopped a cleaning scan because it had wri | Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic | | ---- | ----------- | ---------- | ----------------------- | --------- | -| | Sum | Int | Cumulative | true | +| {stoppages} | Sum | Int | Cumulative | true | ### postgresql.blocks_read @@ -226,7 +226,7 @@ Number of user tables in a database. | Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic | | ---- | ----------- | ---------- | ----------------------- | --------- | -| | Sum | Int | Cumulative | false | +| {tables} | Sum | Int | Cumulative | false | ### postgresql.table.size diff --git a/receiver/postgresqlreceiver/internal/metadata/generated_metrics.go b/receiver/postgresqlreceiver/internal/metadata/generated_metrics.go index 2d9e26b92491..0a12b7e2b740 100644 --- a/receiver/postgresqlreceiver/internal/metadata/generated_metrics.go +++ b/receiver/postgresqlreceiver/internal/metadata/generated_metrics.go @@ -510,7 +510,7 @@ type metricPostgresqlBgwriterMaxwritten struct { func (m *metricPostgresqlBgwriterMaxwritten) init() { m.data.SetName("postgresql.bgwriter.maxwritten") m.data.SetDescription("Number of times the background writer stopped a cleaning scan because it had written too many buffers.") - m.data.SetUnit("") + m.data.SetUnit("{stoppages}") m.data.SetEmptySum() m.data.Sum().SetIsMonotonic(true) m.data.Sum().SetAggregationTemporality(pmetric.AggregationTemporalityCumulative) @@ -1136,7 +1136,7 @@ type metricPostgresqlTableCount struct { func (m *metricPostgresqlTableCount) init() { m.data.SetName("postgresql.table.count") m.data.SetDescription("Number of user tables in a database.") - m.data.SetUnit("") + m.data.SetUnit("{tables}") m.data.SetEmptySum() m.data.Sum().SetIsMonotonic(false) m.data.Sum().SetAggregationTemporality(pmetric.AggregationTemporalityCumulative) diff --git a/receiver/postgresqlreceiver/internal/metadata/generated_metrics_test.go b/receiver/postgresqlreceiver/internal/metadata/generated_metrics_test.go index ede19bfbb5bc..1d51d33174d3 100644 --- a/receiver/postgresqlreceiver/internal/metadata/generated_metrics_test.go +++ b/receiver/postgresqlreceiver/internal/metadata/generated_metrics_test.go @@ -276,7 +276,7 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, pmetric.MetricTypeSum, ms.At(i).Type()) assert.Equal(t, 1, ms.At(i).Sum().DataPoints().Len()) assert.Equal(t, "Number of times the background writer stopped a cleaning scan because it had written too many buffers.", ms.At(i).Description()) - assert.Equal(t, "", ms.At(i).Unit()) + assert.Equal(t, "{stoppages}", ms.At(i).Unit()) assert.Equal(t, true, ms.At(i).Sum().IsMonotonic()) assert.Equal(t, pmetric.AggregationTemporalityCumulative, ms.At(i).Sum().AggregationTemporality()) dp := ms.At(i).Sum().DataPoints().At(0) @@ -477,7 +477,7 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, pmetric.MetricTypeSum, ms.At(i).Type()) assert.Equal(t, 1, ms.At(i).Sum().DataPoints().Len()) assert.Equal(t, "Number of user tables in a database.", ms.At(i).Description()) - assert.Equal(t, "", ms.At(i).Unit()) + assert.Equal(t, "{tables}", ms.At(i).Unit()) assert.Equal(t, false, ms.At(i).Sum().IsMonotonic()) assert.Equal(t, pmetric.AggregationTemporalityCumulative, ms.At(i).Sum().AggregationTemporality()) dp := ms.At(i).Sum().DataPoints().At(0) diff --git a/receiver/postgresqlreceiver/metadata.yaml b/receiver/postgresqlreceiver/metadata.yaml index bc8b24bb64de..df3984c6b8d6 100644 --- a/receiver/postgresqlreceiver/metadata.yaml +++ b/receiver/postgresqlreceiver/metadata.yaml @@ -126,6 +126,7 @@ metrics: aggregation: cumulative monotonic: true value_type: int + unit: "{stoppages}" postgresql.blocks_read: enabled: true description: The number of blocks read. @@ -235,6 +236,7 @@ metrics: aggregation: cumulative monotonic: false value_type: int + unit: "{tables}" postgresql.table.size: attributes: [] description: Disk space used by a table. diff --git a/receiver/postgresqlreceiver/testdata/integration/expected_all_db.yaml b/receiver/postgresqlreceiver/testdata/integration/expected_all_db.yaml index b11febce1a73..9056fb63dc4e 100644 --- a/receiver/postgresqlreceiver/testdata/integration/expected_all_db.yaml +++ b/receiver/postgresqlreceiver/testdata/integration/expected_all_db.yaml @@ -1,4 +1,221 @@ resourceMetrics: + - resource: + attributes: [] + scopeMetrics: + - metrics: + - description: Number of buffers allocated. + name: postgresql.bgwriter.buffers.allocated + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "572" + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" + isMonotonic: true + unit: '{buffers}' + - description: Number of buffers written. + name: postgresql.bgwriter.buffers.writes + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "5" + attributes: + - key: source + value: + stringValue: backend + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" + - asInt: "0" + attributes: + - key: source + value: + stringValue: backend_fsync + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" + - asInt: "0" + attributes: + - key: source + value: + stringValue: bgwriter + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" + - asInt: "60" + attributes: + - key: source + value: + stringValue: checkpoints + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" + isMonotonic: true + unit: '{buffers}' + - description: The number of checkpoints performed. + name: postgresql.bgwriter.checkpoint.count + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "4" + attributes: + - key: type + value: + stringValue: requested + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" + - asInt: "0" + attributes: + - key: type + value: + stringValue: scheduled + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" + isMonotonic: true + unit: '{checkpoints}' + - description: Total time spent writing and syncing files to disk by checkpoints. + name: postgresql.bgwriter.duration + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 37 + attributes: + - key: type + value: + stringValue: sync + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" + - asDouble: 13 + attributes: + - key: type + value: + stringValue: write + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" + isMonotonic: true + unit: ms + - description: Number of times the background writer stopped a cleaning scan because it had written too many buffers. + name: postgresql.bgwriter.maxwritten + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" + isMonotonic: true + unit: '{stoppages}' + - description: Configured maximum number of client connections allowed + gauge: + dataPoints: + - asInt: "100" + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" + name: postgresql.connection.max + unit: '{connections}' + - description: Number of user databases. + name: postgresql.database.count + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "3" + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" + unit: '{databases}' + scope: + name: otelcol/postgresqlreceiver + version: latest + - resource: + attributes: + - key: postgresql.database.name + value: + stringValue: otel + scopeMetrics: + - metrics: + - description: The number of commits. + name: postgresql.commits + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "6" + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" + isMonotonic: true + unit: "1" + - description: The database disk usage. + name: postgresql.db_size + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "7193092" + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" + unit: By + - description: The number of rollbacks. + name: postgresql.rollbacks + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" + isMonotonic: true + unit: "1" + - description: Number of user tables in a database. + name: postgresql.table.count + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "2" + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" + unit: '{tables}' + scope: + name: otelcol/postgresqlreceiver + version: latest + - resource: + attributes: + - key: postgresql.database.name + value: + stringValue: otel2 + scopeMetrics: + - metrics: + - description: The number of commits. + name: postgresql.commits + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "7" + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" + isMonotonic: true + unit: "1" + - description: The database disk usage. + name: postgresql.db_size + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "7234052" + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" + unit: By + - description: The number of rollbacks. + name: postgresql.rollbacks + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" + isMonotonic: true + unit: "1" + - description: Number of user tables in a database. + name: postgresql.table.count + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "2" + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" + unit: '{tables}' + scope: + name: otelcol/postgresqlreceiver + version: latest - resource: attributes: - key: postgresql.database.name @@ -12,17 +229,17 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" unit: "1" - description: The number of commits. name: postgresql.commits sum: aggregationTemporality: 2 dataPoints: - - asInt: "51" - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + - asInt: "8" + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -30,18 +247,18 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "7223832" - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + - asInt: "7248408" + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks sum: aggregationTemporality: 2 dataPoints: - - asInt: "5" - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + - asInt: "0" + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -50,8 +267,9 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" + unit: '{tables}' scope: name: otelcol/postgresqlreceiver version: latest @@ -62,7 +280,7 @@ resourceMetrics: stringValue: otel - key: postgresql.table.name value: - stringValue: public.table2 + stringValue: public.table1 scopeMetrics: - metrics: - description: The number of blocks read. @@ -74,58 +292,58 @@ resourceMetrics: attributes: - key: source value: - stringValue: heap_read - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: heap_hit + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" - asInt: "0" attributes: - key: source value: - stringValue: heap_hit - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: heap_read + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" - asInt: "0" attributes: - key: source value: - stringValue: idx_read - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: idx_hit + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" - asInt: "0" attributes: - key: source value: - stringValue: idx_hit - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: idx_read + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" - asInt: "0" attributes: - key: source value: - stringValue: toast_hit - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: tidx_hit + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" - asInt: "0" attributes: - key: source value: - stringValue: toast_hit - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: tidx_read + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" - asInt: "0" attributes: - key: source value: - stringValue: tidx_read - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: toast_hit + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" - asInt: "0" attributes: - key: source value: - stringValue: tidx_hit - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: toast_hit + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -137,30 +355,30 @@ resourceMetrics: attributes: - key: operation value: - stringValue: ins - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: del + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" - asInt: "0" attributes: - key: operation value: - stringValue: del - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: hot_upd + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" - asInt: "0" attributes: - key: operation value: - stringValue: upd - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: ins + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" - asInt: "0" attributes: - key: operation value: - stringValue: hot_upd - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: upd + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -173,15 +391,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -189,8 +407,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -198,8 +416,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" isMonotonic: true unit: '{vacuums}' scope: @@ -212,7 +430,7 @@ resourceMetrics: stringValue: otel - key: postgresql.table.name value: - stringValue: public.table1 + stringValue: public.table2 scopeMetrics: - metrics: - description: The number of blocks read. @@ -224,58 +442,58 @@ resourceMetrics: attributes: - key: source value: - stringValue: heap_read - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: heap_hit + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" - asInt: "0" attributes: - key: source value: - stringValue: heap_hit - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: heap_read + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" - asInt: "0" attributes: - key: source value: - stringValue: idx_read - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: idx_hit + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" - asInt: "0" attributes: - key: source value: - stringValue: idx_hit - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: idx_read + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" - asInt: "0" attributes: - key: source value: - stringValue: toast_hit - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: tidx_hit + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" - asInt: "0" attributes: - key: source value: - stringValue: toast_hit - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: tidx_read + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" - asInt: "0" attributes: - key: source value: - stringValue: tidx_read - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: toast_hit + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" - asInt: "0" attributes: - key: source value: - stringValue: tidx_hit - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: toast_hit + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -287,30 +505,30 @@ resourceMetrics: attributes: - key: operation value: - stringValue: ins - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: del + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" - asInt: "0" attributes: - key: operation value: - stringValue: del - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: hot_upd + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" - asInt: "0" attributes: - key: operation value: - stringValue: upd - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: ins + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" - asInt: "0" attributes: - key: operation value: - stringValue: hot_upd - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: upd + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -323,150 +541,35 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" unit: "1" - description: Disk space used by a table. - name: postgresql.table.size - sum: - aggregationTemporality: 2 - dataPoints: - - asInt: "0" - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - unit: By - - description: Number of times a table has manually been vacuumed. - name: postgresql.table.vacuum.count - sum: - aggregationTemporality: 2 - dataPoints: - - asInt: "0" - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - isMonotonic: true - unit: '{vacuums}' - scope: - name: otelcol/postgresqlreceiver - version: latest - - resource: - attributes: - - key: postgresql.database.name - value: - stringValue: otel - scopeMetrics: - - metrics: - - description: The number of commits. - name: postgresql.commits - sum: - aggregationTemporality: 2 - dataPoints: - - asInt: "26" - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - isMonotonic: true - unit: "1" - - description: The database disk usage. - name: postgresql.db_size - sum: - aggregationTemporality: 2 - dataPoints: - - asInt: "7281176" - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - unit: By - - description: The number of rollbacks. - name: postgresql.rollbacks - sum: - aggregationTemporality: 2 - dataPoints: - - asInt: "0" - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - isMonotonic: true - unit: "1" - - description: Number of user tables in a database. - name: postgresql.table.count - sum: - aggregationTemporality: 2 - dataPoints: - - asInt: "2" - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - scope: - name: otelcol/postgresqlreceiver - version: latest - - resource: - attributes: - - key: postgresql.database.name - value: - stringValue: otel - - key: postgresql.table.name - value: - stringValue: table1 - - key: postgresql.index.name - value: - stringValue: table1_pkey - scopeMetrics: - - metrics: - - description: The number of index scans on a table. - name: postgresql.index.scans - sum: - aggregationTemporality: 2 - dataPoints: - - asInt: "0" - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - isMonotonic: true - unit: '{scans}' - - description: The size of the index on disk. - gauge: + name: postgresql.table.size + sum: + aggregationTemporality: 2 dataPoints: - - asInt: "8192" - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - name: postgresql.index.size + - asInt: "0" + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" unit: By - scope: - name: otelcol/postgresqlreceiver - version: latest - - resource: - attributes: - - key: postgresql.database.name - value: - stringValue: otel - - key: postgresql.table.name - value: - stringValue: table2 - - key: postgresql.index.name - value: - stringValue: table2_pkey - scopeMetrics: - - metrics: - - description: The number of index scans on a table. - name: postgresql.index.scans + - description: Number of times a table has manually been vacuumed. + name: postgresql.table.vacuum.count sum: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" isMonotonic: true - unit: '{scans}' - - description: The size of the index on disk. - gauge: - dataPoints: - - asInt: "8192" - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - name: postgresql.index.size - unit: By + unit: '{vacuums}' scope: name: otelcol/postgresqlreceiver version: latest @@ -489,58 +592,58 @@ resourceMetrics: attributes: - key: source value: - stringValue: heap_read - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: heap_hit + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" - asInt: "0" attributes: - key: source value: - stringValue: heap_hit - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: heap_read + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" - asInt: "0" attributes: - key: source value: - stringValue: idx_read - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: idx_hit + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" - asInt: "0" attributes: - key: source value: - stringValue: idx_hit - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: idx_read + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" - asInt: "0" attributes: - key: source value: - stringValue: toast_hit - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: tidx_hit + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" - asInt: "0" attributes: - key: source value: - stringValue: toast_hit - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: tidx_read + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" - asInt: "0" attributes: - key: source value: - stringValue: tidx_read - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: toast_hit + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" - asInt: "0" attributes: - key: source value: - stringValue: tidx_hit - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: toast_hit + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -552,30 +655,30 @@ resourceMetrics: attributes: - key: operation value: - stringValue: ins - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: del + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" - asInt: "0" attributes: - key: operation value: - stringValue: del - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: hot_upd + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" - asInt: "0" attributes: - key: operation value: - stringValue: upd - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: ins + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" - asInt: "0" attributes: - key: operation value: - stringValue: hot_upd - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: upd + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -588,15 +691,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -604,8 +707,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -613,8 +716,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" isMonotonic: true unit: '{vacuums}' scope: @@ -639,58 +742,58 @@ resourceMetrics: attributes: - key: source value: - stringValue: heap_read - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: heap_hit + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" - asInt: "1" attributes: - key: source value: - stringValue: heap_hit - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - - asInt: "4" + stringValue: heap_read + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" + - asInt: "2" attributes: - key: source value: - stringValue: idx_read - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - - asInt: "2" + stringValue: idx_hit + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" + - asInt: "4" attributes: - key: source value: - stringValue: idx_hit - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: idx_read + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" - asInt: "0" attributes: - key: source value: - stringValue: toast_hit - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: tidx_hit + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" - asInt: "0" attributes: - key: source value: - stringValue: toast_hit - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: tidx_read + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" - asInt: "0" attributes: - key: source value: - stringValue: tidx_read - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: toast_hit + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" - asInt: "0" attributes: - key: source value: - stringValue: tidx_hit - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: toast_hit + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -698,34 +801,34 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "1" + - asInt: "0" attributes: - key: operation value: - stringValue: ins - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: del + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" - asInt: "0" attributes: - key: operation value: - stringValue: del - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - - asInt: "0" + stringValue: hot_upd + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" + - asInt: "1" attributes: - key: operation value: - stringValue: upd - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: ins + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" - asInt: "0" attributes: - key: operation value: - stringValue: hot_upd - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: upd + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -738,15 +841,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" - asInt: "1" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -754,8 +857,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "8192" - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -763,8 +866,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" isMonotonic: true unit: '{vacuums}' scope: @@ -774,46 +877,33 @@ resourceMetrics: attributes: - key: postgresql.database.name value: - stringValue: otel2 + stringValue: otel + - key: postgresql.index.name + value: + stringValue: table1_pkey + - key: postgresql.table.name + value: + stringValue: table1 scopeMetrics: - metrics: - - description: The number of commits. - name: postgresql.commits - sum: - aggregationTemporality: 2 - dataPoints: - - asInt: "17" - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - isMonotonic: true - unit: "1" - - description: The database disk usage. - name: postgresql.db_size - sum: - aggregationTemporality: 2 - dataPoints: - - asInt: "7322136" - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - unit: By - - description: The number of rollbacks. - name: postgresql.rollbacks + - description: The number of index scans on a table. + name: postgresql.index.scans sum: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" isMonotonic: true - unit: "1" - - description: Number of user tables in a database. - name: postgresql.table.count - sum: - aggregationTemporality: 2 + unit: '{scans}' + - description: The size of the index on disk. + gauge: dataPoints: - - asInt: "2" - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + - asInt: "8192" + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" + name: postgresql.index.size + unit: By scope: name: otelcol/postgresqlreceiver version: latest @@ -821,13 +911,13 @@ resourceMetrics: attributes: - key: postgresql.database.name value: - stringValue: otel2 - - key: postgresql.table.name - value: - stringValue: test1 + stringValue: otel - key: postgresql.index.name value: - stringValue: test1_pkey + stringValue: table2_pkey + - key: postgresql.table.name + value: + stringValue: table2 scopeMetrics: - metrics: - description: The number of index scans on a table. @@ -836,16 +926,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" name: postgresql.index.size unit: By scope: @@ -856,12 +946,12 @@ resourceMetrics: - key: postgresql.database.name value: stringValue: otel2 + - key: postgresql.index.name + value: + stringValue: otel2index - key: postgresql.table.name value: stringValue: test2 - - key: postgresql.index.name - value: - stringValue: test2_pkey scopeMetrics: - metrics: - description: The number of index scans on a table. @@ -870,16 +960,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "16384" - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" name: postgresql.index.size unit: By scope: @@ -890,12 +980,12 @@ resourceMetrics: - key: postgresql.database.name value: stringValue: otel2 - - key: postgresql.table.name - value: - stringValue: test1 - key: postgresql.index.name value: stringValue: otelindex + - key: postgresql.table.name + value: + stringValue: test1 scopeMetrics: - metrics: - description: The number of index scans on a table. @@ -904,16 +994,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" name: postgresql.index.size unit: By scope: @@ -924,12 +1014,12 @@ resourceMetrics: - key: postgresql.database.name value: stringValue: otel2 - - key: postgresql.table.name - value: - stringValue: test2 - key: postgresql.index.name value: - stringValue: otel2index + stringValue: test1_pkey + - key: postgresql.table.name + value: + stringValue: test1 scopeMetrics: - metrics: - description: The number of index scans on a table. @@ -938,137 +1028,52 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - - asInt: "16384" - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + - asInt: "8192" + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" name: postgresql.index.size unit: By scope: name: otelcol/postgresqlreceiver version: latest - - resource: {} + - resource: + attributes: + - key: postgresql.database.name + value: + stringValue: otel2 + - key: postgresql.index.name + value: + stringValue: test2_pkey + - key: postgresql.table.name + value: + stringValue: test2 scopeMetrics: - metrics: - - description: Number of buffers allocated. - name: postgresql.bgwriter.buffers.allocated - sum: - aggregationTemporality: 2 - dataPoints: - - asInt: "774" - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - isMonotonic: true - unit: '{buffers}' - - description: Number of buffers written. - name: postgresql.bgwriter.buffers.writes - sum: - aggregationTemporality: 2 - dataPoints: - - asInt: "0" - attributes: - - key: source - value: - stringValue: bgwriter - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - - asInt: "5" - attributes: - - key: source - value: - stringValue: backend - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - - asInt: "60" - attributes: - - key: source - value: - stringValue: checkpoints - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - - asInt: "0" - attributes: - - key: source - value: - stringValue: backend_fsync - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - isMonotonic: true - unit: '{buffers}' - - description: The number of checkpoints performed. - name: postgresql.bgwriter.checkpoint.count - sum: - aggregationTemporality: 2 - dataPoints: - - asInt: "4" - attributes: - - key: type - value: - stringValue: requested - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - - asInt: "0" - attributes: - - key: type - value: - stringValue: scheduled - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - isMonotonic: true - unit: '{checkpoints}' - - description: Total time spent writing and syncing files to disk by checkpoints. - name: postgresql.bgwriter.duration - sum: - aggregationTemporality: 2 - dataPoints: - - asDouble: 16 - attributes: - - key: type - value: - stringValue: sync - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - - asDouble: 10 - attributes: - - key: type - value: - stringValue: write - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - isMonotonic: true - unit: ms - - description: Number of times the background writer stopped a cleaning scan because it had written too many buffers. - name: postgresql.bgwriter.maxwritten + - description: The number of index scans on a table. + name: postgresql.index.scans sum: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" isMonotonic: true - - description: Configured maximum number of client connections allowed + unit: '{scans}' + - description: The size of the index on disk. gauge: dataPoints: - - asInt: "100" - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - name: postgresql.connection.max - unit: '{connections}' - - description: Number of user databases. - name: postgresql.database.count - sum: - aggregationTemporality: 2 - dataPoints: - - asInt: "3" - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - unit: '{databases}' + - asInt: "16384" + startTimeUnixNano: "1687248883542777000" + timeUnixNano: "1687248884556866000" + name: postgresql.index.size + unit: By scope: name: otelcol/postgresqlreceiver version: latest diff --git a/receiver/postgresqlreceiver/testdata/integration/expected_multi_db.yaml b/receiver/postgresqlreceiver/testdata/integration/expected_multi_db.yaml index 9860a2f7ec18..b7d97cec2531 100644 --- a/receiver/postgresqlreceiver/testdata/integration/expected_multi_db.yaml +++ b/receiver/postgresqlreceiver/testdata/integration/expected_multi_db.yaml @@ -1,4 +1,221 @@ resourceMetrics: + - resource: + attributes: [] + scopeMetrics: + - metrics: + - description: Number of buffers allocated. + name: postgresql.bgwriter.buffers.allocated + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "579" + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" + isMonotonic: true + unit: '{buffers}' + - description: Number of buffers written. + name: postgresql.bgwriter.buffers.writes + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "5" + attributes: + - key: source + value: + stringValue: backend + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" + - asInt: "0" + attributes: + - key: source + value: + stringValue: backend_fsync + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" + - asInt: "0" + attributes: + - key: source + value: + stringValue: bgwriter + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" + - asInt: "60" + attributes: + - key: source + value: + stringValue: checkpoints + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" + isMonotonic: true + unit: '{buffers}' + - description: The number of checkpoints performed. + name: postgresql.bgwriter.checkpoint.count + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "4" + attributes: + - key: type + value: + stringValue: requested + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" + - asInt: "0" + attributes: + - key: type + value: + stringValue: scheduled + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" + isMonotonic: true + unit: '{checkpoints}' + - description: Total time spent writing and syncing files to disk by checkpoints. + name: postgresql.bgwriter.duration + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 36 + attributes: + - key: type + value: + stringValue: sync + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" + - asDouble: 21 + attributes: + - key: type + value: + stringValue: write + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" + isMonotonic: true + unit: ms + - description: Number of times the background writer stopped a cleaning scan because it had written too many buffers. + name: postgresql.bgwriter.maxwritten + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" + isMonotonic: true + unit: '{stoppages}' + - description: Configured maximum number of client connections allowed + gauge: + dataPoints: + - asInt: "100" + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" + name: postgresql.connection.max + unit: '{connections}' + - description: Number of user databases. + name: postgresql.database.count + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "2" + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" + unit: '{databases}' + scope: + name: otelcol/postgresqlreceiver + version: latest + - resource: + attributes: + - key: postgresql.database.name + value: + stringValue: otel + scopeMetrics: + - metrics: + - description: The number of commits. + name: postgresql.commits + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "6" + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" + isMonotonic: true + unit: "1" + - description: The database disk usage. + name: postgresql.db_size + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "7160324" + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" + unit: By + - description: The number of rollbacks. + name: postgresql.rollbacks + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" + isMonotonic: true + unit: "1" + - description: Number of user tables in a database. + name: postgresql.table.count + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "2" + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" + unit: '{tables}' + scope: + name: otelcol/postgresqlreceiver + version: latest + - resource: + attributes: + - key: postgresql.database.name + value: + stringValue: otel2 + scopeMetrics: + - metrics: + - description: The number of commits. + name: postgresql.commits + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "7" + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" + isMonotonic: true + unit: "1" + - description: The database disk usage. + name: postgresql.db_size + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "7201284" + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" + unit: By + - description: The number of rollbacks. + name: postgresql.rollbacks + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" + isMonotonic: true + unit: "1" + - description: Number of user tables in a database. + name: postgresql.table.count + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "2" + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" + unit: '{tables}' + scope: + name: otelcol/postgresqlreceiver + version: latest - resource: attributes: - key: postgresql.database.name @@ -6,7 +223,7 @@ resourceMetrics: stringValue: otel - key: postgresql.table.name value: - stringValue: public.table2 + stringValue: public.table1 scopeMetrics: - metrics: - description: The number of blocks read. @@ -18,58 +235,58 @@ resourceMetrics: attributes: - key: source value: - stringValue: heap_read - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: heap_hit + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" - asInt: "0" attributes: - key: source value: - stringValue: heap_hit - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: heap_read + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" - asInt: "0" attributes: - key: source value: - stringValue: idx_read - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: idx_hit + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" - asInt: "0" attributes: - key: source value: - stringValue: idx_hit - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: idx_read + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" - asInt: "0" attributes: - key: source value: - stringValue: toast_hit - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: tidx_hit + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" - asInt: "0" attributes: - key: source value: - stringValue: toast_hit - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: tidx_read + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" - asInt: "0" attributes: - key: source value: - stringValue: tidx_read - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: toast_hit + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" - asInt: "0" attributes: - key: source value: - stringValue: tidx_hit - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: toast_hit + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -81,30 +298,30 @@ resourceMetrics: attributes: - key: operation value: - stringValue: ins - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: del + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" - asInt: "0" attributes: - key: operation value: - stringValue: del - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: hot_upd + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" - asInt: "0" attributes: - key: operation value: - stringValue: upd - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: ins + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" - asInt: "0" attributes: - key: operation value: - stringValue: hot_upd - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: upd + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -117,15 +334,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -133,8 +350,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -142,8 +359,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" isMonotonic: true unit: '{vacuums}' scope: @@ -156,7 +373,7 @@ resourceMetrics: stringValue: otel - key: postgresql.table.name value: - stringValue: public.table1 + stringValue: public.table2 scopeMetrics: - metrics: - description: The number of blocks read. @@ -168,58 +385,58 @@ resourceMetrics: attributes: - key: source value: - stringValue: heap_read - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: heap_hit + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" - asInt: "0" attributes: - key: source value: - stringValue: heap_hit - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: heap_read + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" - asInt: "0" attributes: - key: source value: - stringValue: idx_read - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: idx_hit + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" - asInt: "0" attributes: - key: source value: - stringValue: idx_hit - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: idx_read + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" - asInt: "0" attributes: - key: source value: - stringValue: toast_hit - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: tidx_hit + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" - asInt: "0" attributes: - key: source value: - stringValue: toast_hit - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: tidx_read + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" - asInt: "0" attributes: - key: source value: - stringValue: tidx_read - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: toast_hit + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" - asInt: "0" attributes: - key: source value: - stringValue: tidx_hit - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: toast_hit + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -231,30 +448,30 @@ resourceMetrics: attributes: - key: operation value: - stringValue: ins - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: del + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" - asInt: "0" attributes: - key: operation value: - stringValue: del - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: hot_upd + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" - asInt: "0" attributes: - key: operation value: - stringValue: upd - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: ins + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" - asInt: "0" attributes: - key: operation value: - stringValue: hot_upd - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: upd + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -267,150 +484,35 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" unit: "1" - description: Disk space used by a table. - name: postgresql.table.size - sum: - aggregationTemporality: 2 - dataPoints: - - asInt: "0" - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" - unit: By - - description: Number of times a table has manually been vacuumed. - name: postgresql.table.vacuum.count - sum: - aggregationTemporality: 2 - dataPoints: - - asInt: "0" - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" - isMonotonic: true - unit: '{vacuums}' - scope: - name: otelcol/postgresqlreceiver - version: latest - - resource: - attributes: - - key: postgresql.database.name - value: - stringValue: otel - scopeMetrics: - - metrics: - - description: The number of commits. - name: postgresql.commits - sum: - aggregationTemporality: 2 - dataPoints: - - asInt: "14" - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" - isMonotonic: true - unit: "1" - - description: The database disk usage. - name: postgresql.db_size - sum: - aggregationTemporality: 2 - dataPoints: - - asInt: "7281176" - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" - unit: By - - description: The number of rollbacks. - name: postgresql.rollbacks - sum: - aggregationTemporality: 2 - dataPoints: - - asInt: "0" - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" - isMonotonic: true - unit: "1" - - description: Number of user tables in a database. - name: postgresql.table.count - sum: - aggregationTemporality: 2 - dataPoints: - - asInt: "2" - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" - scope: - name: otelcol/postgresqlreceiver - version: latest - - resource: - attributes: - - key: postgresql.database.name - value: - stringValue: otel - - key: postgresql.table.name - value: - stringValue: table1 - - key: postgresql.index.name - value: - stringValue: table1_pkey - scopeMetrics: - - metrics: - - description: The number of index scans on a table. - name: postgresql.index.scans - sum: - aggregationTemporality: 2 - dataPoints: - - asInt: "0" - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" - isMonotonic: true - unit: '{scans}' - - description: The size of the index on disk. - gauge: + name: postgresql.table.size + sum: + aggregationTemporality: 2 dataPoints: - - asInt: "8192" - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" - name: postgresql.index.size + - asInt: "0" + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" unit: By - scope: - name: otelcol/postgresqlreceiver - version: latest - - resource: - attributes: - - key: postgresql.database.name - value: - stringValue: otel - - key: postgresql.table.name - value: - stringValue: table2 - - key: postgresql.index.name - value: - stringValue: table2_pkey - scopeMetrics: - - metrics: - - description: The number of index scans on a table. - name: postgresql.index.scans + - description: Number of times a table has manually been vacuumed. + name: postgresql.table.vacuum.count sum: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" isMonotonic: true - unit: '{scans}' - - description: The size of the index on disk. - gauge: - dataPoints: - - asInt: "8192" - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" - name: postgresql.index.size - unit: By + unit: '{vacuums}' scope: name: otelcol/postgresqlreceiver version: latest @@ -433,58 +535,58 @@ resourceMetrics: attributes: - key: source value: - stringValue: heap_read - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: heap_hit + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" - asInt: "0" attributes: - key: source value: - stringValue: heap_hit - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: heap_read + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" - asInt: "0" attributes: - key: source value: - stringValue: idx_read - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: idx_hit + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" - asInt: "0" attributes: - key: source value: - stringValue: idx_hit - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: idx_read + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" - asInt: "0" attributes: - key: source value: - stringValue: toast_hit - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: tidx_hit + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" - asInt: "0" attributes: - key: source value: - stringValue: toast_hit - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: tidx_read + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" - asInt: "0" attributes: - key: source value: - stringValue: tidx_read - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: toast_hit + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" - asInt: "0" attributes: - key: source value: - stringValue: tidx_hit - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: toast_hit + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -496,30 +598,30 @@ resourceMetrics: attributes: - key: operation value: - stringValue: ins - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: del + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" - asInt: "0" attributes: - key: operation value: - stringValue: del - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: hot_upd + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" - asInt: "0" attributes: - key: operation value: - stringValue: upd - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: ins + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" - asInt: "0" attributes: - key: operation value: - stringValue: hot_upd - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: upd + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -532,15 +634,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -548,8 +650,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -557,8 +659,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" isMonotonic: true unit: '{vacuums}' scope: @@ -583,58 +685,58 @@ resourceMetrics: attributes: - key: source value: - stringValue: heap_read - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: heap_hit + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" - asInt: "1" attributes: - key: source value: - stringValue: heap_hit - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" - - asInt: "4" + stringValue: heap_read + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" + - asInt: "2" attributes: - key: source value: - stringValue: idx_read - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" - - asInt: "2" + stringValue: idx_hit + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" + - asInt: "4" attributes: - key: source value: - stringValue: idx_hit - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: idx_read + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" - asInt: "0" attributes: - key: source value: - stringValue: toast_hit - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: tidx_hit + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" - asInt: "0" attributes: - key: source value: - stringValue: toast_hit - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: tidx_read + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" - asInt: "0" attributes: - key: source value: - stringValue: tidx_read - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: toast_hit + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" - asInt: "0" attributes: - key: source value: - stringValue: tidx_hit - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: toast_hit + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -642,34 +744,34 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "1" + - asInt: "0" attributes: - key: operation value: - stringValue: ins - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: del + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" - asInt: "0" attributes: - key: operation value: - stringValue: del - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" - - asInt: "0" + stringValue: hot_upd + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" + - asInt: "1" attributes: - key: operation value: - stringValue: upd - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: ins + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" - asInt: "0" attributes: - key: operation value: - stringValue: hot_upd - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: upd + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -682,15 +784,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" - asInt: "1" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -698,8 +800,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "8192" - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -707,8 +809,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" isMonotonic: true unit: '{vacuums}' scope: @@ -718,46 +820,33 @@ resourceMetrics: attributes: - key: postgresql.database.name value: - stringValue: otel2 + stringValue: otel + - key: postgresql.index.name + value: + stringValue: table1_pkey + - key: postgresql.table.name + value: + stringValue: table1 scopeMetrics: - metrics: - - description: The number of commits. - name: postgresql.commits - sum: - aggregationTemporality: 2 - dataPoints: - - asInt: "9" - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" - isMonotonic: true - unit: "1" - - description: The database disk usage. - name: postgresql.db_size - sum: - aggregationTemporality: 2 - dataPoints: - - asInt: "7322136" - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" - unit: By - - description: The number of rollbacks. - name: postgresql.rollbacks + - description: The number of index scans on a table. + name: postgresql.index.scans sum: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" isMonotonic: true - unit: "1" - - description: Number of user tables in a database. - name: postgresql.table.count - sum: - aggregationTemporality: 2 + unit: '{scans}' + - description: The size of the index on disk. + gauge: dataPoints: - - asInt: "2" - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + - asInt: "8192" + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" + name: postgresql.index.size + unit: By scope: name: otelcol/postgresqlreceiver version: latest @@ -765,13 +854,13 @@ resourceMetrics: attributes: - key: postgresql.database.name value: - stringValue: otel2 - - key: postgresql.table.name - value: - stringValue: test1 + stringValue: otel - key: postgresql.index.name value: - stringValue: test1_pkey + stringValue: table2_pkey + - key: postgresql.table.name + value: + stringValue: table2 scopeMetrics: - metrics: - description: The number of index scans on a table. @@ -780,16 +869,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" name: postgresql.index.size unit: By scope: @@ -800,12 +889,12 @@ resourceMetrics: - key: postgresql.database.name value: stringValue: otel2 + - key: postgresql.index.name + value: + stringValue: otel2index - key: postgresql.table.name value: stringValue: test2 - - key: postgresql.index.name - value: - stringValue: test2_pkey scopeMetrics: - metrics: - description: The number of index scans on a table. @@ -814,16 +903,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "16384" - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" name: postgresql.index.size unit: By scope: @@ -834,12 +923,12 @@ resourceMetrics: - key: postgresql.database.name value: stringValue: otel2 - - key: postgresql.table.name - value: - stringValue: test1 - key: postgresql.index.name value: stringValue: otelindex + - key: postgresql.table.name + value: + stringValue: test1 scopeMetrics: - metrics: - description: The number of index scans on a table. @@ -848,16 +937,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" name: postgresql.index.size unit: By scope: @@ -868,12 +957,12 @@ resourceMetrics: - key: postgresql.database.name value: stringValue: otel2 - - key: postgresql.table.name - value: - stringValue: test2 - key: postgresql.index.name value: - stringValue: otel2index + stringValue: test1_pkey + - key: postgresql.table.name + value: + stringValue: test1 scopeMetrics: - metrics: - description: The number of index scans on a table. @@ -882,137 +971,52 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - - asInt: "16384" - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + - asInt: "8192" + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" name: postgresql.index.size unit: By scope: name: otelcol/postgresqlreceiver version: latest - - resource: {} + - resource: + attributes: + - key: postgresql.database.name + value: + stringValue: otel2 + - key: postgresql.index.name + value: + stringValue: test2_pkey + - key: postgresql.table.name + value: + stringValue: test2 scopeMetrics: - metrics: - - description: Number of buffers allocated. - name: postgresql.bgwriter.buffers.allocated - sum: - aggregationTemporality: 2 - dataPoints: - - asInt: "665" - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" - isMonotonic: true - unit: '{buffers}' - - description: Number of buffers written. - name: postgresql.bgwriter.buffers.writes - sum: - aggregationTemporality: 2 - dataPoints: - - asInt: "0" - attributes: - - key: source - value: - stringValue: bgwriter - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" - - asInt: "5" - attributes: - - key: source - value: - stringValue: backend - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" - - asInt: "60" - attributes: - - key: source - value: - stringValue: checkpoints - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" - - asInt: "0" - attributes: - - key: source - value: - stringValue: backend_fsync - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" - isMonotonic: true - unit: '{buffers}' - - description: The number of checkpoints performed. - name: postgresql.bgwriter.checkpoint.count - sum: - aggregationTemporality: 2 - dataPoints: - - asInt: "4" - attributes: - - key: type - value: - stringValue: requested - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" - - asInt: "0" - attributes: - - key: type - value: - stringValue: scheduled - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" - isMonotonic: true - unit: '{checkpoints}' - - description: Total time spent writing and syncing files to disk by checkpoints. - name: postgresql.bgwriter.duration - sum: - aggregationTemporality: 2 - dataPoints: - - asDouble: 16 - attributes: - - key: type - value: - stringValue: sync - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" - - asDouble: 10 - attributes: - - key: type - value: - stringValue: write - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" - isMonotonic: true - unit: ms - - description: Number of times the background writer stopped a cleaning scan because it had written too many buffers. - name: postgresql.bgwriter.maxwritten + - description: The number of index scans on a table. + name: postgresql.index.scans sum: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" isMonotonic: true - - description: Configured maximum number of client connections allowed + unit: '{scans}' + - description: The size of the index on disk. gauge: dataPoints: - - asInt: "100" - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" - name: postgresql.connection.max - unit: '{connections}' - - description: Number of user databases. - name: postgresql.database.count - sum: - aggregationTemporality: 2 - dataPoints: - - asInt: "2" - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" - unit: '{databases}' + - asInt: "16384" + startTimeUnixNano: "1687248873123889000" + timeUnixNano: "1687248874124323000" + name: postgresql.index.size + unit: By scope: name: otelcol/postgresqlreceiver version: latest diff --git a/receiver/postgresqlreceiver/testdata/integration/expected_single_db.yaml b/receiver/postgresqlreceiver/testdata/integration/expected_single_db.yaml index f567faf2ca6d..473a3679bb83 100644 --- a/receiver/postgresqlreceiver/testdata/integration/expected_single_db.yaml +++ b/receiver/postgresqlreceiver/testdata/integration/expected_single_db.yaml @@ -1,4 +1,173 @@ resourceMetrics: + - resource: + attributes: [] + scopeMetrics: + - metrics: + - description: Number of buffers allocated. + name: postgresql.bgwriter.buffers.allocated + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "420" + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" + isMonotonic: true + unit: '{buffers}' + - description: Number of buffers written. + name: postgresql.bgwriter.buffers.writes + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "5" + attributes: + - key: source + value: + stringValue: backend + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" + - asInt: "0" + attributes: + - key: source + value: + stringValue: backend_fsync + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" + - asInt: "0" + attributes: + - key: source + value: + stringValue: bgwriter + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" + - asInt: "60" + attributes: + - key: source + value: + stringValue: checkpoints + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" + isMonotonic: true + unit: '{buffers}' + - description: The number of checkpoints performed. + name: postgresql.bgwriter.checkpoint.count + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "4" + attributes: + - key: type + value: + stringValue: requested + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" + - asInt: "0" + attributes: + - key: type + value: + stringValue: scheduled + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" + isMonotonic: true + unit: '{checkpoints}' + - description: Total time spent writing and syncing files to disk by checkpoints. + name: postgresql.bgwriter.duration + sum: + aggregationTemporality: 2 + dataPoints: + - asDouble: 22 + attributes: + - key: type + value: + stringValue: sync + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" + - asDouble: 13 + attributes: + - key: type + value: + stringValue: write + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" + isMonotonic: true + unit: ms + - description: Number of times the background writer stopped a cleaning scan because it had written too many buffers. + name: postgresql.bgwriter.maxwritten + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" + isMonotonic: true + unit: '{stoppages}' + - description: Configured maximum number of client connections allowed + gauge: + dataPoints: + - asInt: "100" + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" + name: postgresql.connection.max + unit: '{connections}' + - description: Number of user databases. + name: postgresql.database.count + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "1" + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" + unit: '{databases}' + scope: + name: otelcol/postgresqlreceiver + version: latest + - resource: + attributes: + - key: postgresql.database.name + value: + stringValue: otel + scopeMetrics: + - metrics: + - description: The number of commits. + name: postgresql.commits + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "6" + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" + isMonotonic: true + unit: "1" + - description: The database disk usage. + name: postgresql.db_size + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "7160324" + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" + unit: By + - description: The number of rollbacks. + name: postgresql.rollbacks + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "0" + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" + isMonotonic: true + unit: "1" + - description: Number of user tables in a database. + name: postgresql.table.count + sum: + aggregationTemporality: 2 + dataPoints: + - asInt: "2" + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" + unit: '{tables}' + scope: + name: otelcol/postgresqlreceiver + version: latest - resource: attributes: - key: postgresql.database.name @@ -6,7 +175,7 @@ resourceMetrics: stringValue: otel - key: postgresql.table.name value: - stringValue: public.table2 + stringValue: public.table1 scopeMetrics: - metrics: - description: The number of blocks read. @@ -18,58 +187,58 @@ resourceMetrics: attributes: - key: source value: - stringValue: heap_read - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" + stringValue: heap_hit + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" - asInt: "0" attributes: - key: source value: - stringValue: heap_hit - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" + stringValue: heap_read + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" - asInt: "0" attributes: - key: source value: - stringValue: idx_read - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" + stringValue: idx_hit + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" - asInt: "0" attributes: - key: source value: - stringValue: idx_hit - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" + stringValue: idx_read + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" - asInt: "0" attributes: - key: source value: - stringValue: toast_hit - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" + stringValue: tidx_hit + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" - asInt: "0" attributes: - key: source value: - stringValue: toast_hit - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" + stringValue: tidx_read + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" - asInt: "0" attributes: - key: source value: - stringValue: tidx_read - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" + stringValue: toast_hit + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" - asInt: "0" attributes: - key: source value: - stringValue: tidx_hit - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" + stringValue: toast_hit + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -81,30 +250,30 @@ resourceMetrics: attributes: - key: operation value: - stringValue: ins - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" + stringValue: del + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" - asInt: "0" attributes: - key: operation value: - stringValue: del - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" + stringValue: hot_upd + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" - asInt: "0" attributes: - key: operation value: - stringValue: upd - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" + stringValue: ins + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" - asInt: "0" attributes: - key: operation value: - stringValue: hot_upd - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" + stringValue: upd + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -117,15 +286,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -133,8 +302,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -142,8 +311,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" isMonotonic: true unit: '{vacuums}' scope: @@ -156,7 +325,7 @@ resourceMetrics: stringValue: otel - key: postgresql.table.name value: - stringValue: public.table1 + stringValue: public.table2 scopeMetrics: - metrics: - description: The number of blocks read. @@ -168,58 +337,58 @@ resourceMetrics: attributes: - key: source value: - stringValue: heap_read - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" + stringValue: heap_hit + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" - asInt: "0" attributes: - key: source value: - stringValue: heap_hit - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" + stringValue: heap_read + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" - asInt: "0" attributes: - key: source value: - stringValue: idx_read - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" + stringValue: idx_hit + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" - asInt: "0" attributes: - key: source value: - stringValue: idx_hit - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" + stringValue: idx_read + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" - asInt: "0" attributes: - key: source value: - stringValue: toast_hit - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" + stringValue: tidx_hit + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" - asInt: "0" attributes: - key: source value: - stringValue: toast_hit - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" + stringValue: tidx_read + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" - asInt: "0" attributes: - key: source value: - stringValue: tidx_read - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" + stringValue: toast_hit + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" - asInt: "0" attributes: - key: source value: - stringValue: tidx_hit - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" + stringValue: toast_hit + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -231,30 +400,30 @@ resourceMetrics: attributes: - key: operation value: - stringValue: ins - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" + stringValue: del + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" - asInt: "0" attributes: - key: operation value: - stringValue: del - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" + stringValue: hot_upd + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" - asInt: "0" attributes: - key: operation value: - stringValue: upd - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" + stringValue: ins + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" - asInt: "0" attributes: - key: operation value: - stringValue: hot_upd - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" + stringValue: upd + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -267,15 +436,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -283,8 +452,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -292,8 +461,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" isMonotonic: true unit: '{vacuums}' scope: @@ -304,59 +473,12 @@ resourceMetrics: - key: postgresql.database.name value: stringValue: otel - scopeMetrics: - - metrics: - - description: The number of commits. - name: postgresql.commits - sum: - aggregationTemporality: 2 - dataPoints: - - asInt: "6" - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" - isMonotonic: true - unit: "1" - - description: The database disk usage. - name: postgresql.db_size - sum: - aggregationTemporality: 2 - dataPoints: - - asInt: "7168516" - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" - unit: By - - description: The number of rollbacks. - name: postgresql.rollbacks - sum: - aggregationTemporality: 2 - dataPoints: - - asInt: "0" - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" - isMonotonic: true - unit: "1" - - description: Number of user tables in a database. - name: postgresql.table.count - sum: - aggregationTemporality: 2 - dataPoints: - - asInt: "2" - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" - scope: - name: otelcol/postgresqlreceiver - version: latest - - resource: - attributes: - - key: postgresql.database.name + - key: postgresql.index.name value: - stringValue: otel + stringValue: table1_pkey - key: postgresql.table.name value: stringValue: table1 - - key: postgresql.index.name - value: - stringValue: table1_pkey scopeMetrics: - metrics: - description: The number of index scans on a table. @@ -365,16 +487,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" name: postgresql.index.size unit: By scope: @@ -385,12 +507,12 @@ resourceMetrics: - key: postgresql.database.name value: stringValue: otel - - key: postgresql.table.name - value: - stringValue: table2 - key: postgresql.index.name value: stringValue: table2_pkey + - key: postgresql.table.name + value: + stringValue: table2 scopeMetrics: - metrics: - description: The number of index scans on a table. @@ -399,137 +521,18 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" + startTimeUnixNano: "1687248862677157000" + timeUnixNano: "1687248863677984000" name: postgresql.index.size unit: By scope: name: otelcol/postgresqlreceiver version: latest - - resource: {} - scopeMetrics: - - metrics: - - description: Number of buffers allocated. - name: postgresql.bgwriter.buffers.allocated - sum: - aggregationTemporality: 2 - dataPoints: - - asInt: "289" - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" - isMonotonic: true - unit: '{buffers}' - - description: Number of buffers written. - name: postgresql.bgwriter.buffers.writes - sum: - aggregationTemporality: 2 - dataPoints: - - asInt: "0" - attributes: - - key: source - value: - stringValue: bgwriter - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" - - asInt: "5" - attributes: - - key: source - value: - stringValue: backend - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" - - asInt: "60" - attributes: - - key: source - value: - stringValue: checkpoints - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" - - asInt: "0" - attributes: - - key: source - value: - stringValue: backend_fsync - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" - isMonotonic: true - unit: '{buffers}' - - description: The number of checkpoints performed. - name: postgresql.bgwriter.checkpoint.count - sum: - aggregationTemporality: 2 - dataPoints: - - asInt: "4" - attributes: - - key: type - value: - stringValue: requested - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" - - asInt: "0" - attributes: - - key: type - value: - stringValue: scheduled - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" - isMonotonic: true - unit: '{checkpoints}' - - description: Total time spent writing and syncing files to disk by checkpoints. - name: postgresql.bgwriter.duration - sum: - aggregationTemporality: 2 - dataPoints: - - asDouble: 16 - attributes: - - key: type - value: - stringValue: sync - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" - - asDouble: 10 - attributes: - - key: type - value: - stringValue: write - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" - isMonotonic: true - unit: ms - - description: Number of times the background writer stopped a cleaning scan because it had written too many buffers. - name: postgresql.bgwriter.maxwritten - sum: - aggregationTemporality: 2 - dataPoints: - - asInt: "0" - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" - isMonotonic: true - - description: Configured maximum number of client connections allowed - gauge: - dataPoints: - - asInt: "100" - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" - name: postgresql.connection.max - unit: '{connections}' - - description: Number of user databases. - name: postgresql.database.count - sum: - aggregationTemporality: 2 - dataPoints: - - asInt: "1" - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" - unit: '{databases}' - scope: - name: otelcol/postgresqlreceiver - version: latest diff --git a/receiver/postgresqlreceiver/testdata/scraper/multiple/expected.yaml b/receiver/postgresqlreceiver/testdata/scraper/multiple/expected.yaml index 66ac42ca7059..789a16ef79ab 100644 --- a/receiver/postgresqlreceiver/testdata/scraper/multiple/expected.yaml +++ b/receiver/postgresqlreceiver/testdata/scraper/multiple/expected.yaml @@ -1,5 +1,6 @@ resourceMetrics: - - resource: {} + - resource: + attributes: [] scopeMetrics: - metrics: - description: Number of buffers allocated. @@ -8,8 +9,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "10" - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" isMonotonic: true unit: '{buffers}' - description: Number of buffers written. @@ -22,29 +23,29 @@ resourceMetrics: - key: source value: stringValue: backend - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "8" attributes: - key: source value: stringValue: backend_fsync - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "5" attributes: - key: source value: stringValue: bgwriter - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "9" attributes: - key: source value: stringValue: checkpoints - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" isMonotonic: true unit: '{buffers}' - description: The number of checkpoints performed. @@ -57,15 +58,15 @@ resourceMetrics: - key: type value: stringValue: requested - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "2" attributes: - key: type value: stringValue: scheduled - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" isMonotonic: true unit: '{checkpoints}' - description: Total time spent writing and syncing files to disk by checkpoints. @@ -78,15 +79,15 @@ resourceMetrics: - key: type value: stringValue: sync - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asDouble: 3.12 attributes: - key: type value: stringValue: write - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" isMonotonic: true unit: ms - description: Number of times the background writer stopped a cleaning scan because it had written too many buffers. @@ -95,15 +96,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "11" - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" isMonotonic: true + unit: '{stoppages}' - description: Configured maximum number of client connections allowed gauge: dataPoints: - asInt: "100" - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" name: postgresql.connection.max unit: '{connections}' - description: Number of user databases. @@ -112,8 +114,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" unit: '{databases}' - description: The amount of data delayed in replication. gauge: @@ -123,16 +125,16 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" name: postgresql.replication.data_delay unit: By - description: Age of the oldest WAL file. gauge: dataPoints: - asInt: "3600" - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" name: postgresql.wal.age unit: s - description: Time between flushing recent WAL locally and receiving notification that the standby server has completed an operation with it. @@ -146,8 +148,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "700" attributes: - key: operation @@ -156,8 +158,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "800" attributes: - key: operation @@ -166,8 +168,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" name: postgresql.wal.lag unit: s scope: @@ -186,8 +188,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4" - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" unit: "1" - description: The number of commits. name: postgresql.commits @@ -195,8 +197,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -205,8 +207,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "5" - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -214,8 +216,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -224,8 +226,9 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" + unit: '{tables}' scope: name: otelcol/postgresqlreceiver version: latest @@ -242,8 +245,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" unit: "1" - description: The number of commits. name: postgresql.commits @@ -251,8 +254,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1" - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -261,8 +264,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4" - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -270,8 +273,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -280,8 +283,9 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" + unit: '{tables}' scope: name: otelcol/postgresqlreceiver version: latest @@ -298,8 +302,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "5" - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" unit: "1" - description: The number of commits. name: postgresql.commits @@ -307,8 +311,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -317,8 +321,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "6" - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -326,8 +330,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4" - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -336,8 +340,9 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" + unit: '{tables}' scope: name: otelcol/postgresqlreceiver version: latest @@ -361,57 +366,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "20" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "23" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "22" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "27" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "26" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "25" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "24" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -424,29 +429,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "43" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "40" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "41" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -459,15 +464,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "8" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -475,8 +480,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "44" - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -484,8 +489,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "45" - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" isMonotonic: true unit: '{vacuums}' scope: @@ -511,57 +516,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "28" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "31" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "30" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "35" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "34" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "33" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "32" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -574,29 +579,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "47" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "44" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "45" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -609,15 +614,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "10" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -625,8 +630,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "48" - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -634,8 +639,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "49" - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" isMonotonic: true unit: '{vacuums}' scope: @@ -661,57 +666,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "19" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "22" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "21" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "26" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "25" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "24" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "23" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -724,29 +729,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "42" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "39" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "40" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -759,15 +764,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "7" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -775,8 +780,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "43" - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -784,8 +789,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "44" - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" isMonotonic: true unit: '{vacuums}' scope: @@ -811,57 +816,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "27" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "30" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "29" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "34" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "33" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "32" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "31" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -874,29 +879,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "46" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "43" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "44" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -909,15 +914,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "9" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -925,8 +930,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "47" - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -934,8 +939,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "48" - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" isMonotonic: true unit: '{vacuums}' scope: @@ -961,57 +966,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "21" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "24" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "23" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "28" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "27" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "26" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "25" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -1024,29 +1029,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "44" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "41" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "42" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -1059,15 +1064,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "9" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -1075,8 +1080,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "45" - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -1084,8 +1089,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "46" - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" isMonotonic: true unit: '{vacuums}' scope: @@ -1111,57 +1116,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "29" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "32" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "31" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "36" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "35" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "34" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "33" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -1174,29 +1179,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "48" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "45" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "46" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -1209,15 +1214,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" - asInt: "11" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -1225,8 +1230,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "49" - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -1234,8 +1239,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "50" - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" isMonotonic: true unit: '{vacuums}' scope: @@ -1260,16 +1265,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "36" - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "37" - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" name: postgresql.index.size unit: By scope: @@ -1294,16 +1299,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "38" - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "39" - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" name: postgresql.index.size unit: By scope: @@ -1328,16 +1333,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "35" - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "36" - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" name: postgresql.index.size unit: By scope: @@ -1362,16 +1367,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "37" - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "38" - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" name: postgresql.index.size unit: By scope: @@ -1396,16 +1401,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "37" - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "38" - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" name: postgresql.index.size unit: By scope: @@ -1430,16 +1435,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "39" - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "40" - startTimeUnixNano: "1684786281207476000" - timeUnixNano: "1684786281207521000" + startTimeUnixNano: "1687249064198594000" + timeUnixNano: "1687249064198700000" name: postgresql.index.size unit: By scope: diff --git a/receiver/postgresqlreceiver/testdata/scraper/multiple/expected_with_resource.yaml b/receiver/postgresqlreceiver/testdata/scraper/multiple/expected_with_resource.yaml index 195d50fca9a2..8f57e1ebaa81 100644 --- a/receiver/postgresqlreceiver/testdata/scraper/multiple/expected_with_resource.yaml +++ b/receiver/postgresqlreceiver/testdata/scraper/multiple/expected_with_resource.yaml @@ -1,5 +1,6 @@ resourceMetrics: - - resource: {} + - resource: + attributes: [] scopeMetrics: - metrics: - description: Number of buffers allocated. @@ -8,8 +9,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "10" - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" isMonotonic: true unit: '{buffers}' - description: Number of buffers written. @@ -22,29 +23,29 @@ resourceMetrics: - key: source value: stringValue: backend - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "8" attributes: - key: source value: stringValue: backend_fsync - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "5" attributes: - key: source value: stringValue: bgwriter - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "9" attributes: - key: source value: stringValue: checkpoints - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" isMonotonic: true unit: '{buffers}' - description: The number of checkpoints performed. @@ -57,15 +58,15 @@ resourceMetrics: - key: type value: stringValue: requested - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "2" attributes: - key: type value: stringValue: scheduled - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" isMonotonic: true unit: '{checkpoints}' - description: Total time spent writing and syncing files to disk by checkpoints. @@ -78,15 +79,15 @@ resourceMetrics: - key: type value: stringValue: sync - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asDouble: 3.12 attributes: - key: type value: stringValue: write - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" isMonotonic: true unit: ms - description: Number of times the background writer stopped a cleaning scan because it had written too many buffers. @@ -95,15 +96,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "11" - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" isMonotonic: true + unit: '{stoppages}' - description: Configured maximum number of client connections allowed gauge: dataPoints: - asInt: "100" - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" name: postgresql.connection.max unit: '{connections}' - description: Number of user databases. @@ -112,8 +114,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" unit: '{databases}' - description: The amount of data delayed in replication. gauge: @@ -123,16 +125,16 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" name: postgresql.replication.data_delay unit: By - description: Age of the oldest WAL file. gauge: dataPoints: - asInt: "3600" - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" name: postgresql.wal.age unit: s - description: Time between flushing recent WAL locally and receiving notification that the standby server has completed an operation with it. @@ -146,8 +148,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "700" attributes: - key: operation @@ -156,8 +158,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "800" attributes: - key: operation @@ -166,8 +168,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" name: postgresql.wal.lag unit: s scope: @@ -186,8 +188,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4" - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" unit: "1" - description: The number of commits. name: postgresql.commits @@ -195,8 +197,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -205,8 +207,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "5" - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -214,8 +216,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -224,8 +226,9 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" + unit: '{tables}' scope: name: otelcol/postgresqlreceiver version: latest @@ -242,8 +245,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" unit: "1" - description: The number of commits. name: postgresql.commits @@ -251,8 +254,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1" - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -261,8 +264,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4" - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -270,8 +273,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -280,8 +283,9 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" + unit: '{tables}' scope: name: otelcol/postgresqlreceiver version: latest @@ -298,8 +302,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "5" - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" unit: "1" - description: The number of commits. name: postgresql.commits @@ -307,8 +311,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -317,8 +321,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "6" - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -326,8 +330,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4" - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -336,8 +340,9 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" + unit: '{tables}' scope: name: otelcol/postgresqlreceiver version: latest @@ -361,57 +366,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "20" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "23" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "22" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "27" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "26" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "25" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "24" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -424,29 +429,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "43" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "40" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "41" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -459,15 +464,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "8" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -475,8 +480,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "44" - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -484,8 +489,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "45" - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" isMonotonic: true unit: '{vacuums}' scope: @@ -511,57 +516,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "28" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "31" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "30" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "35" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "34" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "33" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "32" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -574,29 +579,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "47" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "44" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "45" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -609,15 +614,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "10" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -625,8 +630,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "48" - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -634,8 +639,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "49" - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" isMonotonic: true unit: '{vacuums}' scope: @@ -661,57 +666,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "19" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "22" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "21" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "26" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "25" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "24" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "23" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -724,29 +729,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "42" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "39" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "40" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -759,15 +764,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "7" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -775,8 +780,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "43" - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -784,8 +789,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "44" - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" isMonotonic: true unit: '{vacuums}' scope: @@ -811,57 +816,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "27" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "30" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "29" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "34" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "33" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "32" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "31" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -874,29 +879,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "46" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "43" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "44" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -909,15 +914,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "9" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -925,8 +930,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "47" - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -934,8 +939,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "48" - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" isMonotonic: true unit: '{vacuums}' scope: @@ -961,57 +966,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "21" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "24" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "23" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "28" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "27" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "26" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "25" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -1024,29 +1029,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "44" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "41" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "42" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -1059,15 +1064,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "9" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -1075,8 +1080,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "45" - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -1084,8 +1089,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "46" - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" isMonotonic: true unit: '{vacuums}' scope: @@ -1111,57 +1116,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "29" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "32" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "31" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "36" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "35" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "34" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "33" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -1174,29 +1179,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "48" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "45" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "46" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -1209,15 +1214,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" - asInt: "11" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -1225,8 +1230,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "49" - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -1234,8 +1239,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "50" - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" isMonotonic: true unit: '{vacuums}' scope: @@ -1260,16 +1265,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "36" - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "37" - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" name: postgresql.index.size unit: By scope: @@ -1294,16 +1299,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "38" - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "39" - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" name: postgresql.index.size unit: By scope: @@ -1328,16 +1333,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "35" - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "36" - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" name: postgresql.index.size unit: By scope: @@ -1362,16 +1367,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "37" - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "38" - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" name: postgresql.index.size unit: By scope: @@ -1396,16 +1401,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "37" - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "38" - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" name: postgresql.index.size unit: By scope: @@ -1430,16 +1435,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "39" - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "40" - startTimeUnixNano: "1660755376404913000" - timeUnixNano: "1660755376405089000" + startTimeUnixNano: "1687249070489337000" + timeUnixNano: "1687249070489477000" name: postgresql.index.size unit: By scope: diff --git a/receiver/postgresqlreceiver/testdata/scraper/otel/expected.yaml b/receiver/postgresqlreceiver/testdata/scraper/otel/expected.yaml index fd6e123801b7..73fd61a9b966 100644 --- a/receiver/postgresqlreceiver/testdata/scraper/otel/expected.yaml +++ b/receiver/postgresqlreceiver/testdata/scraper/otel/expected.yaml @@ -1,5 +1,6 @@ resourceMetrics: - - resource: {} + - resource: + attributes: [] scopeMetrics: - metrics: - description: Number of buffers allocated. @@ -8,8 +9,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "10" - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" isMonotonic: true unit: '{buffers}' - description: Number of buffers written. @@ -22,29 +23,29 @@ resourceMetrics: - key: source value: stringValue: backend - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" - asInt: "8" attributes: - key: source value: stringValue: backend_fsync - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" - asInt: "5" attributes: - key: source value: stringValue: bgwriter - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" - asInt: "9" attributes: - key: source value: stringValue: checkpoints - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" isMonotonic: true unit: '{buffers}' - description: The number of checkpoints performed. @@ -57,15 +58,15 @@ resourceMetrics: - key: type value: stringValue: requested - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" - asInt: "2" attributes: - key: type value: stringValue: scheduled - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" isMonotonic: true unit: '{checkpoints}' - description: Total time spent writing and syncing files to disk by checkpoints. @@ -78,15 +79,15 @@ resourceMetrics: - key: type value: stringValue: sync - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" - asDouble: 3.12 attributes: - key: type value: stringValue: write - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" isMonotonic: true unit: ms - description: Number of times the background writer stopped a cleaning scan because it had written too many buffers. @@ -95,15 +96,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "11" - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" isMonotonic: true + unit: '{stoppages}' - description: Configured maximum number of client connections allowed gauge: dataPoints: - asInt: "100" - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" name: postgresql.connection.max unit: '{connections}' - description: Number of user databases. @@ -112,8 +114,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1" - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" unit: '{databases}' - description: The amount of data delayed in replication. gauge: @@ -123,16 +125,16 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" name: postgresql.replication.data_delay unit: By - description: Age of the oldest WAL file. gauge: dataPoints: - asInt: "3600" - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" name: postgresql.wal.age unit: s - description: Time between flushing recent WAL locally and receiving notification that the standby server has completed an operation with it. @@ -146,8 +148,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" - asInt: "700" attributes: - key: operation @@ -156,8 +158,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" - asInt: "800" attributes: - key: operation @@ -166,8 +168,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" name: postgresql.wal.lag unit: s scope: @@ -186,8 +188,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" unit: "1" - description: The number of commits. name: postgresql.commits @@ -195,8 +197,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1" - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -205,8 +207,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4" - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -214,8 +216,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -224,8 +226,9 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" + unit: '{tables}' scope: name: otelcol/postgresqlreceiver version: latest @@ -249,57 +252,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" - asInt: "19" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" - asInt: "22" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" - asInt: "21" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" - asInt: "26" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" - asInt: "25" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" - asInt: "24" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" - asInt: "23" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -312,29 +315,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" - asInt: "42" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" - asInt: "39" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" - asInt: "40" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -347,15 +350,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" - asInt: "7" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -363,8 +366,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "43" - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -372,8 +375,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "44" - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" isMonotonic: true unit: '{vacuums}' scope: @@ -399,57 +402,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" - asInt: "27" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" - asInt: "30" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" - asInt: "29" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" - asInt: "34" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" - asInt: "33" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" - asInt: "32" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" - asInt: "31" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -462,29 +465,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" - asInt: "46" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" - asInt: "43" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" - asInt: "44" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -497,15 +500,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" - asInt: "9" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -513,8 +516,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "47" - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -522,8 +525,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "48" - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" isMonotonic: true unit: '{vacuums}' scope: @@ -548,16 +551,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "35" - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "36" - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" name: postgresql.index.size unit: By scope: @@ -582,16 +585,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "37" - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "38" - startTimeUnixNano: "1684786281201767000" - timeUnixNano: "1684786281201820000" + startTimeUnixNano: "1687249087481826000" + timeUnixNano: "1687249087481990000" name: postgresql.index.size unit: By scope: diff --git a/receiver/postgresqlreceiver/testdata/scraper/otel/expected_with_resource.yaml b/receiver/postgresqlreceiver/testdata/scraper/otel/expected_with_resource.yaml index 5457e8beeb56..361bc67fc2cd 100644 --- a/receiver/postgresqlreceiver/testdata/scraper/otel/expected_with_resource.yaml +++ b/receiver/postgresqlreceiver/testdata/scraper/otel/expected_with_resource.yaml @@ -1,5 +1,6 @@ resourceMetrics: - - resource: {} + - resource: + attributes: [] scopeMetrics: - metrics: - description: Number of buffers allocated. @@ -8,8 +9,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "10" - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" isMonotonic: true unit: '{buffers}' - description: Number of buffers written. @@ -22,29 +23,29 @@ resourceMetrics: - key: source value: stringValue: backend - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" - asInt: "8" attributes: - key: source value: stringValue: backend_fsync - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" - asInt: "5" attributes: - key: source value: stringValue: bgwriter - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" - asInt: "9" attributes: - key: source value: stringValue: checkpoints - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" isMonotonic: true unit: '{buffers}' - description: The number of checkpoints performed. @@ -57,15 +58,15 @@ resourceMetrics: - key: type value: stringValue: requested - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" - asInt: "2" attributes: - key: type value: stringValue: scheduled - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" isMonotonic: true unit: '{checkpoints}' - description: Total time spent writing and syncing files to disk by checkpoints. @@ -78,15 +79,15 @@ resourceMetrics: - key: type value: stringValue: sync - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" - asDouble: 3.12 attributes: - key: type value: stringValue: write - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" isMonotonic: true unit: ms - description: Number of times the background writer stopped a cleaning scan because it had written too many buffers. @@ -95,15 +96,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "11" - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" isMonotonic: true + unit: '{stoppages}' - description: Configured maximum number of client connections allowed gauge: dataPoints: - asInt: "100" - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" name: postgresql.connection.max unit: '{connections}' - description: Number of user databases. @@ -112,8 +114,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1" - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" unit: '{databases}' - description: The amount of data delayed in replication. gauge: @@ -123,16 +125,16 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" name: postgresql.replication.data_delay unit: By - description: Age of the oldest WAL file. gauge: dataPoints: - asInt: "3600" - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" name: postgresql.wal.age unit: s - description: Time between flushing recent WAL locally and receiving notification that the standby server has completed an operation with it. @@ -146,8 +148,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" - asInt: "700" attributes: - key: operation @@ -156,8 +158,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" - asInt: "800" attributes: - key: operation @@ -166,8 +168,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" name: postgresql.wal.lag unit: s scope: @@ -186,8 +188,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" unit: "1" - description: The number of commits. name: postgresql.commits @@ -195,8 +197,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1" - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -205,8 +207,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4" - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -214,8 +216,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -224,8 +226,9 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" + unit: '{tables}' scope: name: otelcol/postgresqlreceiver version: latest @@ -249,57 +252,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" - asInt: "19" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" - asInt: "22" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" - asInt: "21" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" - asInt: "26" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" - asInt: "25" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" - asInt: "24" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" - asInt: "23" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -312,29 +315,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" - asInt: "42" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" - asInt: "39" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" - asInt: "40" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -347,15 +350,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" - asInt: "7" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -363,8 +366,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "43" - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -372,8 +375,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "44" - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" isMonotonic: true unit: '{vacuums}' scope: @@ -399,57 +402,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" - asInt: "27" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" - asInt: "30" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" - asInt: "29" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" - asInt: "34" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" - asInt: "33" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" - asInt: "32" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" - asInt: "31" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -462,29 +465,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" - asInt: "46" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" - asInt: "43" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" - asInt: "44" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -497,15 +500,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" - asInt: "9" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -513,8 +516,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "47" - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -522,8 +525,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "48" - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" isMonotonic: true unit: '{vacuums}' scope: @@ -548,16 +551,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "35" - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "36" - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" name: postgresql.index.size unit: By scope: @@ -582,16 +585,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "37" - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "38" - startTimeUnixNano: "1660755387092164000" - timeUnixNano: "1660755387092521000" + startTimeUnixNano: "1687249075351944000" + timeUnixNano: "1687249075352047000" name: postgresql.index.size unit: By scope: From 0c1b1886da2080effd82a3c97a73efc3182ad373 Mon Sep 17 00:00:00 2001 From: mackjmr Date: Tue, 20 Jun 2023 10:26:57 +0200 Subject: [PATCH 2/6] add changelog --- .chloggen/add-units-postgresqlreceiver.yaml | 24 +++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 .chloggen/add-units-postgresqlreceiver.yaml diff --git a/.chloggen/add-units-postgresqlreceiver.yaml b/.chloggen/add-units-postgresqlreceiver.yaml new file mode 100755 index 000000000000..a2d4890faba6 --- /dev/null +++ b/.chloggen/add-units-postgresqlreceiver.yaml @@ -0,0 +1,24 @@ +# Use this changelog template to create an entry for release notes. +# If your change doesn't affect end users, such as a test fix or a tooling change, +# you should instead start your pull request title with [chore] or use the "Skip Changelog" label. + +# 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: postgresqlreceiver + +# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). +note: Adds unit to metrics where this was missing. + +# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists. +issues: [23571] + +# (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: | + Affected metrics can be found below. + - postgresql.bgwriter.maxwritten + - postgresql.table.count + From a9e6f03560d594faedef7d03abc5918f0ff2ac50 Mon Sep 17 00:00:00 2001 From: mackjmr Date: Wed, 21 Jun 2023 11:11:42 +0200 Subject: [PATCH 3/6] Remove pluralization of {tables}x --- receiver/postgresqlreceiver/documentation.md | 2 +- .../internal/metadata/generated_metrics.go | 2 +- .../metadata/generated_metrics_test.go | 2 +- receiver/postgresqlreceiver/metadata.yaml | 2 +- .../testdata/integration/expected_all_db.yaml | 416 ++++++------- .../integration/expected_multi_db.yaml | 398 ++++++------ .../integration/expected_single_db.yaml | 218 +++---- .../testdata/scraper/multiple/expected.yaml | 566 +++++++++--------- .../multiple/expected_with_resource.yaml | 566 +++++++++--------- .../testdata/scraper/otel/expected.yaml | 234 ++++---- .../scraper/otel/expected_with_resource.yaml | 234 ++++---- 11 files changed, 1320 insertions(+), 1320 deletions(-) diff --git a/receiver/postgresqlreceiver/documentation.md b/receiver/postgresqlreceiver/documentation.md index 8fb633bec078..c11b6ace4d20 100644 --- a/receiver/postgresqlreceiver/documentation.md +++ b/receiver/postgresqlreceiver/documentation.md @@ -226,7 +226,7 @@ Number of user tables in a database. | Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic | | ---- | ----------- | ---------- | ----------------------- | --------- | -| {tables} | Sum | Int | Cumulative | false | +| {table} | Sum | Int | Cumulative | false | ### postgresql.table.size diff --git a/receiver/postgresqlreceiver/internal/metadata/generated_metrics.go b/receiver/postgresqlreceiver/internal/metadata/generated_metrics.go index 0a12b7e2b740..adcf11647f15 100644 --- a/receiver/postgresqlreceiver/internal/metadata/generated_metrics.go +++ b/receiver/postgresqlreceiver/internal/metadata/generated_metrics.go @@ -1136,7 +1136,7 @@ type metricPostgresqlTableCount struct { func (m *metricPostgresqlTableCount) init() { m.data.SetName("postgresql.table.count") m.data.SetDescription("Number of user tables in a database.") - m.data.SetUnit("{tables}") + m.data.SetUnit("{table}") m.data.SetEmptySum() m.data.Sum().SetIsMonotonic(false) m.data.Sum().SetAggregationTemporality(pmetric.AggregationTemporalityCumulative) diff --git a/receiver/postgresqlreceiver/internal/metadata/generated_metrics_test.go b/receiver/postgresqlreceiver/internal/metadata/generated_metrics_test.go index 1d51d33174d3..95277e81427b 100644 --- a/receiver/postgresqlreceiver/internal/metadata/generated_metrics_test.go +++ b/receiver/postgresqlreceiver/internal/metadata/generated_metrics_test.go @@ -477,7 +477,7 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, pmetric.MetricTypeSum, ms.At(i).Type()) assert.Equal(t, 1, ms.At(i).Sum().DataPoints().Len()) assert.Equal(t, "Number of user tables in a database.", ms.At(i).Description()) - assert.Equal(t, "{tables}", ms.At(i).Unit()) + assert.Equal(t, "{table}", ms.At(i).Unit()) assert.Equal(t, false, ms.At(i).Sum().IsMonotonic()) assert.Equal(t, pmetric.AggregationTemporalityCumulative, ms.At(i).Sum().AggregationTemporality()) dp := ms.At(i).Sum().DataPoints().At(0) diff --git a/receiver/postgresqlreceiver/metadata.yaml b/receiver/postgresqlreceiver/metadata.yaml index df3984c6b8d6..31dd43796648 100644 --- a/receiver/postgresqlreceiver/metadata.yaml +++ b/receiver/postgresqlreceiver/metadata.yaml @@ -236,7 +236,7 @@ metrics: aggregation: cumulative monotonic: false value_type: int - unit: "{tables}" + unit: "{table}" postgresql.table.size: attributes: [] description: Disk space used by a table. diff --git a/receiver/postgresqlreceiver/testdata/integration/expected_all_db.yaml b/receiver/postgresqlreceiver/testdata/integration/expected_all_db.yaml index 9056fb63dc4e..16553528485e 100644 --- a/receiver/postgresqlreceiver/testdata/integration/expected_all_db.yaml +++ b/receiver/postgresqlreceiver/testdata/integration/expected_all_db.yaml @@ -8,9 +8,9 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "572" - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + - asInt: "289" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" isMonotonic: true unit: '{buffers}' - description: Number of buffers written. @@ -23,29 +23,29 @@ resourceMetrics: - key: source value: stringValue: backend - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "0" attributes: - key: source value: stringValue: backend_fsync - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "0" attributes: - key: source value: stringValue: bgwriter - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "60" attributes: - key: source value: stringValue: checkpoints - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" isMonotonic: true unit: '{buffers}' - description: The number of checkpoints performed. @@ -58,15 +58,15 @@ resourceMetrics: - key: type value: stringValue: requested - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "0" attributes: - key: type value: stringValue: scheduled - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" isMonotonic: true unit: '{checkpoints}' - description: Total time spent writing and syncing files to disk by checkpoints. @@ -79,15 +79,15 @@ resourceMetrics: - key: type value: stringValue: sync - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" - - asDouble: 13 + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" + - asDouble: 15 attributes: - key: type value: stringValue: write - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" isMonotonic: true unit: ms - description: Number of times the background writer stopped a cleaning scan because it had written too many buffers. @@ -96,16 +96,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" isMonotonic: true unit: '{stoppages}' - description: Configured maximum number of client connections allowed gauge: dataPoints: - asInt: "100" - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" name: postgresql.connection.max unit: '{connections}' - description: Number of user databases. @@ -114,8 +114,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" unit: '{databases}' scope: name: otelcol/postgresqlreceiver @@ -133,8 +133,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "6" - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -143,8 +143,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "7193092" - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -152,8 +152,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -162,9 +162,9 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" - unit: '{tables}' + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" + unit: '{table}' scope: name: otelcol/postgresqlreceiver version: latest @@ -181,8 +181,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "7" - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -191,8 +191,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "7234052" - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -200,8 +200,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -210,9 +210,9 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" - unit: '{tables}' + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" + unit: '{table}' scope: name: otelcol/postgresqlreceiver version: latest @@ -228,9 +228,9 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "3" - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + - asInt: "1" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" unit: "1" - description: The number of commits. name: postgresql.commits @@ -238,8 +238,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "8" - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -248,8 +248,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "7248408" - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -257,8 +257,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -267,9 +267,9 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" - unit: '{tables}' + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" + unit: '{table}' scope: name: otelcol/postgresqlreceiver version: latest @@ -293,57 +293,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "0" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -356,29 +356,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -391,15 +391,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -407,8 +407,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -416,8 +416,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" isMonotonic: true unit: '{vacuums}' scope: @@ -443,57 +443,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "0" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -506,29 +506,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -541,15 +541,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -557,8 +557,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -566,8 +566,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" isMonotonic: true unit: '{vacuums}' scope: @@ -593,57 +593,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "0" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -656,29 +656,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -691,15 +691,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -707,8 +707,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -716,8 +716,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" isMonotonic: true unit: '{vacuums}' scope: @@ -743,57 +743,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "1" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "2" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "4" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -806,29 +806,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "1" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -841,15 +841,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" - asInt: "1" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -857,8 +857,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "8192" - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -866,8 +866,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" isMonotonic: true unit: '{vacuums}' scope: @@ -892,16 +892,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" name: postgresql.index.size unit: By scope: @@ -926,16 +926,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" name: postgresql.index.size unit: By scope: @@ -960,16 +960,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "16384" - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" name: postgresql.index.size unit: By scope: @@ -994,16 +994,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" name: postgresql.index.size unit: By scope: @@ -1028,16 +1028,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" name: postgresql.index.size unit: By scope: @@ -1062,16 +1062,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "16384" - startTimeUnixNano: "1687248883542777000" - timeUnixNano: "1687248884556866000" + startTimeUnixNano: "1687338621474126000" + timeUnixNano: "1687338622486543000" name: postgresql.index.size unit: By scope: diff --git a/receiver/postgresqlreceiver/testdata/integration/expected_multi_db.yaml b/receiver/postgresqlreceiver/testdata/integration/expected_multi_db.yaml index b7d97cec2531..689014870be2 100644 --- a/receiver/postgresqlreceiver/testdata/integration/expected_multi_db.yaml +++ b/receiver/postgresqlreceiver/testdata/integration/expected_multi_db.yaml @@ -8,9 +8,9 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "579" - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + - asInt: "289" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" isMonotonic: true unit: '{buffers}' - description: Number of buffers written. @@ -23,29 +23,29 @@ resourceMetrics: - key: source value: stringValue: backend - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "0" attributes: - key: source value: stringValue: backend_fsync - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "0" attributes: - key: source value: stringValue: bgwriter - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "60" attributes: - key: source value: stringValue: checkpoints - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" isMonotonic: true unit: '{buffers}' - description: The number of checkpoints performed. @@ -58,15 +58,15 @@ resourceMetrics: - key: type value: stringValue: requested - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "0" attributes: - key: type value: stringValue: scheduled - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" isMonotonic: true unit: '{checkpoints}' - description: Total time spent writing and syncing files to disk by checkpoints. @@ -74,20 +74,20 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asDouble: 36 + - asDouble: 17 attributes: - key: type value: stringValue: sync - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" - - asDouble: 21 + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" + - asDouble: 14 attributes: - key: type value: stringValue: write - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" isMonotonic: true unit: ms - description: Number of times the background writer stopped a cleaning scan because it had written too many buffers. @@ -96,16 +96,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" isMonotonic: true unit: '{stoppages}' - description: Configured maximum number of client connections allowed gauge: dataPoints: - asInt: "100" - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" name: postgresql.connection.max unit: '{connections}' - description: Number of user databases. @@ -114,8 +114,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" unit: '{databases}' scope: name: otelcol/postgresqlreceiver @@ -133,8 +133,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "6" - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -142,9 +142,9 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "7160324" - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + - asInt: "7184900" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -152,8 +152,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -162,9 +162,9 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" - unit: '{tables}' + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" + unit: '{table}' scope: name: otelcol/postgresqlreceiver version: latest @@ -181,8 +181,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "7" - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -190,9 +190,9 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "7201284" - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + - asInt: "7225860" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -200,8 +200,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -210,9 +210,9 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" - unit: '{tables}' + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" + unit: '{table}' scope: name: otelcol/postgresqlreceiver version: latest @@ -236,57 +236,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "0" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -299,29 +299,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -334,15 +334,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -350,8 +350,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -359,8 +359,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" isMonotonic: true unit: '{vacuums}' scope: @@ -386,57 +386,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "0" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -449,29 +449,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -484,15 +484,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -500,8 +500,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -509,8 +509,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" isMonotonic: true unit: '{vacuums}' scope: @@ -536,57 +536,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "0" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -599,29 +599,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -634,15 +634,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -650,8 +650,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -659,8 +659,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" isMonotonic: true unit: '{vacuums}' scope: @@ -686,57 +686,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "1" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "2" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "4" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -749,29 +749,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "1" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -784,15 +784,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" - asInt: "1" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -800,8 +800,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "8192" - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -809,8 +809,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" isMonotonic: true unit: '{vacuums}' scope: @@ -835,16 +835,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" name: postgresql.index.size unit: By scope: @@ -869,16 +869,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" name: postgresql.index.size unit: By scope: @@ -903,16 +903,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "16384" - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" name: postgresql.index.size unit: By scope: @@ -937,16 +937,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" name: postgresql.index.size unit: By scope: @@ -971,16 +971,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" name: postgresql.index.size unit: By scope: @@ -1005,16 +1005,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "16384" - startTimeUnixNano: "1687248873123889000" - timeUnixNano: "1687248874124323000" + startTimeUnixNano: "1687338611400357000" + timeUnixNano: "1687338612400834000" name: postgresql.index.size unit: By scope: diff --git a/receiver/postgresqlreceiver/testdata/integration/expected_single_db.yaml b/receiver/postgresqlreceiver/testdata/integration/expected_single_db.yaml index 473a3679bb83..bb148392986a 100644 --- a/receiver/postgresqlreceiver/testdata/integration/expected_single_db.yaml +++ b/receiver/postgresqlreceiver/testdata/integration/expected_single_db.yaml @@ -8,9 +8,9 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "420" - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + - asInt: "289" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" isMonotonic: true unit: '{buffers}' - description: Number of buffers written. @@ -23,29 +23,29 @@ resourceMetrics: - key: source value: stringValue: backend - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" - asInt: "0" attributes: - key: source value: stringValue: backend_fsync - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" - asInt: "0" attributes: - key: source value: stringValue: bgwriter - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" - asInt: "60" attributes: - key: source value: stringValue: checkpoints - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" isMonotonic: true unit: '{buffers}' - description: The number of checkpoints performed. @@ -58,15 +58,15 @@ resourceMetrics: - key: type value: stringValue: requested - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" - asInt: "0" attributes: - key: type value: stringValue: scheduled - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" isMonotonic: true unit: '{checkpoints}' - description: Total time spent writing and syncing files to disk by checkpoints. @@ -74,20 +74,20 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asDouble: 22 + - asDouble: 21 attributes: - key: type value: stringValue: sync - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" - - asDouble: 13 + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" + - asDouble: 12 attributes: - key: type value: stringValue: write - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" isMonotonic: true unit: ms - description: Number of times the background writer stopped a cleaning scan because it had written too many buffers. @@ -96,16 +96,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" isMonotonic: true unit: '{stoppages}' - description: Configured maximum number of client connections allowed gauge: dataPoints: - asInt: "100" - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" name: postgresql.connection.max unit: '{connections}' - description: Number of user databases. @@ -114,8 +114,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1" - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" unit: '{databases}' scope: name: otelcol/postgresqlreceiver @@ -133,8 +133,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "6" - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -142,9 +142,9 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "7160324" - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + - asInt: "7176708" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -152,8 +152,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -162,9 +162,9 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" - unit: '{tables}' + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" + unit: '{table}' scope: name: otelcol/postgresqlreceiver version: latest @@ -188,57 +188,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" - asInt: "0" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -251,29 +251,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -286,15 +286,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -302,8 +302,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -311,8 +311,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" isMonotonic: true unit: '{vacuums}' scope: @@ -338,57 +338,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" - asInt: "0" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -401,29 +401,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -436,15 +436,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -452,8 +452,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -461,8 +461,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" isMonotonic: true unit: '{vacuums}' scope: @@ -487,16 +487,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" name: postgresql.index.size unit: By scope: @@ -521,16 +521,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687248862677157000" - timeUnixNano: "1687248863677984000" + startTimeUnixNano: "1687338598043446000" + timeUnixNano: "1687338599044014000" name: postgresql.index.size unit: By scope: diff --git a/receiver/postgresqlreceiver/testdata/scraper/multiple/expected.yaml b/receiver/postgresqlreceiver/testdata/scraper/multiple/expected.yaml index 789a16ef79ab..d73ba428874c 100644 --- a/receiver/postgresqlreceiver/testdata/scraper/multiple/expected.yaml +++ b/receiver/postgresqlreceiver/testdata/scraper/multiple/expected.yaml @@ -9,8 +9,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "10" - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" isMonotonic: true unit: '{buffers}' - description: Number of buffers written. @@ -23,29 +23,29 @@ resourceMetrics: - key: source value: stringValue: backend - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "8" attributes: - key: source value: stringValue: backend_fsync - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "5" attributes: - key: source value: stringValue: bgwriter - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "9" attributes: - key: source value: stringValue: checkpoints - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" isMonotonic: true unit: '{buffers}' - description: The number of checkpoints performed. @@ -58,15 +58,15 @@ resourceMetrics: - key: type value: stringValue: requested - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "2" attributes: - key: type value: stringValue: scheduled - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" isMonotonic: true unit: '{checkpoints}' - description: Total time spent writing and syncing files to disk by checkpoints. @@ -79,15 +79,15 @@ resourceMetrics: - key: type value: stringValue: sync - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asDouble: 3.12 attributes: - key: type value: stringValue: write - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" isMonotonic: true unit: ms - description: Number of times the background writer stopped a cleaning scan because it had written too many buffers. @@ -96,16 +96,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "11" - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" isMonotonic: true unit: '{stoppages}' - description: Configured maximum number of client connections allowed gauge: dataPoints: - asInt: "100" - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" name: postgresql.connection.max unit: '{connections}' - description: Number of user databases. @@ -114,8 +114,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" unit: '{databases}' - description: The amount of data delayed in replication. gauge: @@ -125,16 +125,16 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" name: postgresql.replication.data_delay unit: By - description: Age of the oldest WAL file. gauge: dataPoints: - asInt: "3600" - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" name: postgresql.wal.age unit: s - description: Time between flushing recent WAL locally and receiving notification that the standby server has completed an operation with it. @@ -148,8 +148,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "700" attributes: - key: operation @@ -158,8 +158,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "800" attributes: - key: operation @@ -168,8 +168,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" name: postgresql.wal.lag unit: s scope: @@ -188,8 +188,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4" - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" unit: "1" - description: The number of commits. name: postgresql.commits @@ -197,8 +197,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -207,8 +207,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "5" - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -216,8 +216,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -226,9 +226,9 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" - unit: '{tables}' + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" + unit: '{table}' scope: name: otelcol/postgresqlreceiver version: latest @@ -245,8 +245,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" unit: "1" - description: The number of commits. name: postgresql.commits @@ -254,8 +254,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1" - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -264,8 +264,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4" - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -273,8 +273,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -283,9 +283,9 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" - unit: '{tables}' + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" + unit: '{table}' scope: name: otelcol/postgresqlreceiver version: latest @@ -302,8 +302,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "5" - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" unit: "1" - description: The number of commits. name: postgresql.commits @@ -311,8 +311,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -321,8 +321,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "6" - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -330,8 +330,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4" - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -340,9 +340,9 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" - unit: '{tables}' + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" + unit: '{table}' scope: name: otelcol/postgresqlreceiver version: latest @@ -366,57 +366,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "20" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "23" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "22" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "27" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "26" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "25" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "24" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -429,29 +429,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "43" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "40" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "41" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -464,15 +464,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "8" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -480,8 +480,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "44" - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -489,8 +489,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "45" - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" isMonotonic: true unit: '{vacuums}' scope: @@ -516,57 +516,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "28" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "31" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "30" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "35" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "34" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "33" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "32" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -579,29 +579,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "47" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "44" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "45" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -614,15 +614,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "10" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -630,8 +630,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "48" - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -639,8 +639,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "49" - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" isMonotonic: true unit: '{vacuums}' scope: @@ -666,57 +666,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "19" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "22" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "21" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "26" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "25" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "24" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "23" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -729,29 +729,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "42" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "39" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "40" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -764,15 +764,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "7" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -780,8 +780,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "43" - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -789,8 +789,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "44" - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" isMonotonic: true unit: '{vacuums}' scope: @@ -816,57 +816,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "27" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "30" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "29" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "34" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "33" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "32" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "31" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -879,29 +879,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "46" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "43" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "44" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -914,15 +914,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "9" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -930,8 +930,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "47" - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -939,8 +939,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "48" - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" isMonotonic: true unit: '{vacuums}' scope: @@ -966,57 +966,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "21" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "24" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "23" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "28" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "27" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "26" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "25" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -1029,29 +1029,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "44" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "41" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "42" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -1064,15 +1064,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "9" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -1080,8 +1080,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "45" - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -1089,8 +1089,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "46" - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" isMonotonic: true unit: '{vacuums}' scope: @@ -1116,57 +1116,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "29" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "32" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "31" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "36" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "35" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "34" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "33" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -1179,29 +1179,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "48" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "45" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "46" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -1214,15 +1214,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" - asInt: "11" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -1230,8 +1230,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "49" - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -1239,8 +1239,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "50" - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" isMonotonic: true unit: '{vacuums}' scope: @@ -1265,16 +1265,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "36" - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "37" - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" name: postgresql.index.size unit: By scope: @@ -1299,16 +1299,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "38" - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "39" - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" name: postgresql.index.size unit: By scope: @@ -1333,16 +1333,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "35" - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "36" - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" name: postgresql.index.size unit: By scope: @@ -1367,16 +1367,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "37" - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "38" - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" name: postgresql.index.size unit: By scope: @@ -1401,16 +1401,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "37" - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "38" - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" name: postgresql.index.size unit: By scope: @@ -1435,16 +1435,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "39" - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "40" - startTimeUnixNano: "1687249064198594000" - timeUnixNano: "1687249064198700000" + startTimeUnixNano: "1687338569830702000" + timeUnixNano: "1687338569830820000" name: postgresql.index.size unit: By scope: diff --git a/receiver/postgresqlreceiver/testdata/scraper/multiple/expected_with_resource.yaml b/receiver/postgresqlreceiver/testdata/scraper/multiple/expected_with_resource.yaml index 8f57e1ebaa81..03fbbbd97c51 100644 --- a/receiver/postgresqlreceiver/testdata/scraper/multiple/expected_with_resource.yaml +++ b/receiver/postgresqlreceiver/testdata/scraper/multiple/expected_with_resource.yaml @@ -9,8 +9,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "10" - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" isMonotonic: true unit: '{buffers}' - description: Number of buffers written. @@ -23,29 +23,29 @@ resourceMetrics: - key: source value: stringValue: backend - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "8" attributes: - key: source value: stringValue: backend_fsync - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "5" attributes: - key: source value: stringValue: bgwriter - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "9" attributes: - key: source value: stringValue: checkpoints - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" isMonotonic: true unit: '{buffers}' - description: The number of checkpoints performed. @@ -58,15 +58,15 @@ resourceMetrics: - key: type value: stringValue: requested - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "2" attributes: - key: type value: stringValue: scheduled - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" isMonotonic: true unit: '{checkpoints}' - description: Total time spent writing and syncing files to disk by checkpoints. @@ -79,15 +79,15 @@ resourceMetrics: - key: type value: stringValue: sync - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asDouble: 3.12 attributes: - key: type value: stringValue: write - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" isMonotonic: true unit: ms - description: Number of times the background writer stopped a cleaning scan because it had written too many buffers. @@ -96,16 +96,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "11" - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" isMonotonic: true unit: '{stoppages}' - description: Configured maximum number of client connections allowed gauge: dataPoints: - asInt: "100" - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" name: postgresql.connection.max unit: '{connections}' - description: Number of user databases. @@ -114,8 +114,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" unit: '{databases}' - description: The amount of data delayed in replication. gauge: @@ -125,16 +125,16 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" name: postgresql.replication.data_delay unit: By - description: Age of the oldest WAL file. gauge: dataPoints: - asInt: "3600" - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" name: postgresql.wal.age unit: s - description: Time between flushing recent WAL locally and receiving notification that the standby server has completed an operation with it. @@ -148,8 +148,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "700" attributes: - key: operation @@ -158,8 +158,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "800" attributes: - key: operation @@ -168,8 +168,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" name: postgresql.wal.lag unit: s scope: @@ -188,8 +188,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4" - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" unit: "1" - description: The number of commits. name: postgresql.commits @@ -197,8 +197,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -207,8 +207,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "5" - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -216,8 +216,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -226,9 +226,9 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" - unit: '{tables}' + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" + unit: '{table}' scope: name: otelcol/postgresqlreceiver version: latest @@ -245,8 +245,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" unit: "1" - description: The number of commits. name: postgresql.commits @@ -254,8 +254,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1" - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -264,8 +264,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4" - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -273,8 +273,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -283,9 +283,9 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" - unit: '{tables}' + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" + unit: '{table}' scope: name: otelcol/postgresqlreceiver version: latest @@ -302,8 +302,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "5" - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" unit: "1" - description: The number of commits. name: postgresql.commits @@ -311,8 +311,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -321,8 +321,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "6" - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -330,8 +330,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4" - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -340,9 +340,9 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" - unit: '{tables}' + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" + unit: '{table}' scope: name: otelcol/postgresqlreceiver version: latest @@ -366,57 +366,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "20" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "23" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "22" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "27" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "26" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "25" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "24" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -429,29 +429,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "43" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "40" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "41" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -464,15 +464,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "8" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -480,8 +480,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "44" - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -489,8 +489,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "45" - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" isMonotonic: true unit: '{vacuums}' scope: @@ -516,57 +516,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "28" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "31" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "30" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "35" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "34" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "33" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "32" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -579,29 +579,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "47" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "44" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "45" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -614,15 +614,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "10" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -630,8 +630,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "48" - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -639,8 +639,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "49" - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" isMonotonic: true unit: '{vacuums}' scope: @@ -666,57 +666,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "19" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "22" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "21" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "26" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "25" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "24" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "23" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -729,29 +729,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "42" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "39" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "40" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -764,15 +764,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "7" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -780,8 +780,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "43" - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -789,8 +789,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "44" - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" isMonotonic: true unit: '{vacuums}' scope: @@ -816,57 +816,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "27" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "30" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "29" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "34" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "33" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "32" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "31" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -879,29 +879,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "46" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "43" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "44" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -914,15 +914,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "9" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -930,8 +930,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "47" - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -939,8 +939,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "48" - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" isMonotonic: true unit: '{vacuums}' scope: @@ -966,57 +966,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "21" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "24" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "23" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "28" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "27" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "26" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "25" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -1029,29 +1029,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "44" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "41" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "42" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -1064,15 +1064,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "9" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -1080,8 +1080,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "45" - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -1089,8 +1089,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "46" - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" isMonotonic: true unit: '{vacuums}' scope: @@ -1116,57 +1116,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "29" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "32" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "31" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "36" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "35" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "34" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "33" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -1179,29 +1179,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "48" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "45" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "46" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -1214,15 +1214,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" - asInt: "11" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -1230,8 +1230,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "49" - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -1239,8 +1239,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "50" - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" isMonotonic: true unit: '{vacuums}' scope: @@ -1265,16 +1265,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "36" - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "37" - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" name: postgresql.index.size unit: By scope: @@ -1299,16 +1299,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "38" - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "39" - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" name: postgresql.index.size unit: By scope: @@ -1333,16 +1333,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "35" - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "36" - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" name: postgresql.index.size unit: By scope: @@ -1367,16 +1367,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "37" - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "38" - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" name: postgresql.index.size unit: By scope: @@ -1401,16 +1401,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "37" - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "38" - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" name: postgresql.index.size unit: By scope: @@ -1435,16 +1435,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "39" - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "40" - startTimeUnixNano: "1687249070489337000" - timeUnixNano: "1687249070489477000" + startTimeUnixNano: "1687338574042477000" + timeUnixNano: "1687338574042591000" name: postgresql.index.size unit: By scope: diff --git a/receiver/postgresqlreceiver/testdata/scraper/otel/expected.yaml b/receiver/postgresqlreceiver/testdata/scraper/otel/expected.yaml index 73fd61a9b966..914848a7d62e 100644 --- a/receiver/postgresqlreceiver/testdata/scraper/otel/expected.yaml +++ b/receiver/postgresqlreceiver/testdata/scraper/otel/expected.yaml @@ -9,8 +9,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "10" - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" isMonotonic: true unit: '{buffers}' - description: Number of buffers written. @@ -23,29 +23,29 @@ resourceMetrics: - key: source value: stringValue: backend - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" - asInt: "8" attributes: - key: source value: stringValue: backend_fsync - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" - asInt: "5" attributes: - key: source value: stringValue: bgwriter - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" - asInt: "9" attributes: - key: source value: stringValue: checkpoints - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" isMonotonic: true unit: '{buffers}' - description: The number of checkpoints performed. @@ -58,15 +58,15 @@ resourceMetrics: - key: type value: stringValue: requested - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" - asInt: "2" attributes: - key: type value: stringValue: scheduled - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" isMonotonic: true unit: '{checkpoints}' - description: Total time spent writing and syncing files to disk by checkpoints. @@ -79,15 +79,15 @@ resourceMetrics: - key: type value: stringValue: sync - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" - asDouble: 3.12 attributes: - key: type value: stringValue: write - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" isMonotonic: true unit: ms - description: Number of times the background writer stopped a cleaning scan because it had written too many buffers. @@ -96,16 +96,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "11" - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" isMonotonic: true unit: '{stoppages}' - description: Configured maximum number of client connections allowed gauge: dataPoints: - asInt: "100" - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" name: postgresql.connection.max unit: '{connections}' - description: Number of user databases. @@ -114,8 +114,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1" - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" unit: '{databases}' - description: The amount of data delayed in replication. gauge: @@ -125,16 +125,16 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" name: postgresql.replication.data_delay unit: By - description: Age of the oldest WAL file. gauge: dataPoints: - asInt: "3600" - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" name: postgresql.wal.age unit: s - description: Time between flushing recent WAL locally and receiving notification that the standby server has completed an operation with it. @@ -148,8 +148,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" - asInt: "700" attributes: - key: operation @@ -158,8 +158,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" - asInt: "800" attributes: - key: operation @@ -168,8 +168,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" name: postgresql.wal.lag unit: s scope: @@ -188,8 +188,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" unit: "1" - description: The number of commits. name: postgresql.commits @@ -197,8 +197,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1" - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -207,8 +207,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4" - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -216,8 +216,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -226,9 +226,9 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" - unit: '{tables}' + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" + unit: '{table}' scope: name: otelcol/postgresqlreceiver version: latest @@ -252,57 +252,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" - asInt: "19" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" - asInt: "22" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" - asInt: "21" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" - asInt: "26" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" - asInt: "25" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" - asInt: "24" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" - asInt: "23" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -315,29 +315,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" - asInt: "42" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" - asInt: "39" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" - asInt: "40" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -350,15 +350,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" - asInt: "7" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -366,8 +366,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "43" - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -375,8 +375,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "44" - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" isMonotonic: true unit: '{vacuums}' scope: @@ -402,57 +402,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" - asInt: "27" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" - asInt: "30" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" - asInt: "29" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" - asInt: "34" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" - asInt: "33" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" - asInt: "32" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" - asInt: "31" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -465,29 +465,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" - asInt: "46" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" - asInt: "43" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" - asInt: "44" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -500,15 +500,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" - asInt: "9" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -516,8 +516,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "47" - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -525,8 +525,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "48" - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" isMonotonic: true unit: '{vacuums}' scope: @@ -551,16 +551,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "35" - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "36" - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" name: postgresql.index.size unit: By scope: @@ -585,16 +585,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "37" - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "38" - startTimeUnixNano: "1687249087481826000" - timeUnixNano: "1687249087481990000" + startTimeUnixNano: "1687338566309036000" + timeUnixNano: "1687338566309152000" name: postgresql.index.size unit: By scope: diff --git a/receiver/postgresqlreceiver/testdata/scraper/otel/expected_with_resource.yaml b/receiver/postgresqlreceiver/testdata/scraper/otel/expected_with_resource.yaml index 361bc67fc2cd..e782b4184ab4 100644 --- a/receiver/postgresqlreceiver/testdata/scraper/otel/expected_with_resource.yaml +++ b/receiver/postgresqlreceiver/testdata/scraper/otel/expected_with_resource.yaml @@ -9,8 +9,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "10" - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" isMonotonic: true unit: '{buffers}' - description: Number of buffers written. @@ -23,29 +23,29 @@ resourceMetrics: - key: source value: stringValue: backend - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" - asInt: "8" attributes: - key: source value: stringValue: backend_fsync - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" - asInt: "5" attributes: - key: source value: stringValue: bgwriter - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" - asInt: "9" attributes: - key: source value: stringValue: checkpoints - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" isMonotonic: true unit: '{buffers}' - description: The number of checkpoints performed. @@ -58,15 +58,15 @@ resourceMetrics: - key: type value: stringValue: requested - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" - asInt: "2" attributes: - key: type value: stringValue: scheduled - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" isMonotonic: true unit: '{checkpoints}' - description: Total time spent writing and syncing files to disk by checkpoints. @@ -79,15 +79,15 @@ resourceMetrics: - key: type value: stringValue: sync - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" - asDouble: 3.12 attributes: - key: type value: stringValue: write - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" isMonotonic: true unit: ms - description: Number of times the background writer stopped a cleaning scan because it had written too many buffers. @@ -96,16 +96,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "11" - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" isMonotonic: true unit: '{stoppages}' - description: Configured maximum number of client connections allowed gauge: dataPoints: - asInt: "100" - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" name: postgresql.connection.max unit: '{connections}' - description: Number of user databases. @@ -114,8 +114,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1" - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" unit: '{databases}' - description: The amount of data delayed in replication. gauge: @@ -125,16 +125,16 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" name: postgresql.replication.data_delay unit: By - description: Age of the oldest WAL file. gauge: dataPoints: - asInt: "3600" - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" name: postgresql.wal.age unit: s - description: Time between flushing recent WAL locally and receiving notification that the standby server has completed an operation with it. @@ -148,8 +148,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" - asInt: "700" attributes: - key: operation @@ -158,8 +158,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" - asInt: "800" attributes: - key: operation @@ -168,8 +168,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" name: postgresql.wal.lag unit: s scope: @@ -188,8 +188,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" unit: "1" - description: The number of commits. name: postgresql.commits @@ -197,8 +197,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1" - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -207,8 +207,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4" - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -216,8 +216,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -226,9 +226,9 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" - unit: '{tables}' + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" + unit: '{table}' scope: name: otelcol/postgresqlreceiver version: latest @@ -252,57 +252,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" - asInt: "19" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" - asInt: "22" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" - asInt: "21" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" - asInt: "26" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" - asInt: "25" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" - asInt: "24" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" - asInt: "23" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -315,29 +315,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" - asInt: "42" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" - asInt: "39" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" - asInt: "40" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -350,15 +350,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" - asInt: "7" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -366,8 +366,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "43" - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -375,8 +375,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "44" - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" isMonotonic: true unit: '{vacuums}' scope: @@ -402,57 +402,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" - asInt: "27" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" - asInt: "30" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" - asInt: "29" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" - asInt: "34" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" - asInt: "33" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" - asInt: "32" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" - asInt: "31" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -465,29 +465,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" - asInt: "46" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" - asInt: "43" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" - asInt: "44" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -500,15 +500,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" - asInt: "9" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -516,8 +516,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "47" - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -525,8 +525,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "48" - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" isMonotonic: true unit: '{vacuums}' scope: @@ -551,16 +551,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "35" - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "36" - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" name: postgresql.index.size unit: By scope: @@ -585,16 +585,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "37" - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "38" - startTimeUnixNano: "1687249075351944000" - timeUnixNano: "1687249075352047000" + startTimeUnixNano: "1687338576393925000" + timeUnixNano: "1687338576394031000" name: postgresql.index.size unit: By scope: From 86f63f7aa63e2ed74f1e1be2dc667b0dfb12d572 Mon Sep 17 00:00:00 2001 From: mackjmr Date: Mon, 26 Jun 2023 12:08:05 +0200 Subject: [PATCH 4/6] run golden.WriteMetrics --- .../testdata/integration/expected_all_db.yaml | 627 ++++++------------ .../integration/expected_multi_db.yaml | 501 ++++++-------- .../integration/expected_single_db.yaml | 291 ++++---- .../testdata/scraper/multiple/expected.yaml | 563 ++++++++-------- .../multiple/expected_with_resource.yaml | 563 ++++++++-------- .../testdata/scraper/otel/expected.yaml | 233 +++---- .../scraper/otel/expected_with_resource.yaml | 233 +++---- 7 files changed, 1333 insertions(+), 1678 deletions(-) diff --git a/receiver/postgresqlreceiver/testdata/integration/expected_all_db.yaml b/receiver/postgresqlreceiver/testdata/integration/expected_all_db.yaml index c20c2833da25..6e87a232f486 100644 --- a/receiver/postgresqlreceiver/testdata/integration/expected_all_db.yaml +++ b/receiver/postgresqlreceiver/testdata/integration/expected_all_db.yaml @@ -1,4 +1,4 @@ -resourceMetrics: +testdata/integration/expected_all_db.yamlresourceMetrics: - resource: attributes: [] scopeMetrics: @@ -8,9 +8,9 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "289" - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + - asInt: "634" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" isMonotonic: true unit: '{buffers}' - description: Number of buffers written. @@ -23,29 +23,29 @@ resourceMetrics: - key: source value: stringValue: backend - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "0" attributes: - key: source value: stringValue: backend_fsync - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "0" attributes: - key: source value: stringValue: bgwriter - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "60" attributes: - key: source value: stringValue: checkpoints - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" isMonotonic: true unit: '{buffers}' - description: The number of checkpoints performed. @@ -58,15 +58,15 @@ resourceMetrics: - key: type value: stringValue: requested - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "0" attributes: - key: type value: stringValue: scheduled - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" isMonotonic: true unit: '{checkpoints}' - description: Total time spent writing and syncing files to disk by checkpoints. @@ -74,20 +74,20 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asDouble: 37 + - asDouble: 18 attributes: - key: type value: stringValue: sync - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" - - asDouble: 15 + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" + - asDouble: 11 attributes: - key: type value: stringValue: write - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" isMonotonic: true unit: ms - description: Number of times the background writer stopped a cleaning scan because it had written too many buffers. @@ -96,16 +96,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" isMonotonic: true unit: '{stoppages}' - description: Configured maximum number of client connections allowed gauge: dataPoints: - asInt: "100" - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" name: postgresql.connection.max unit: '{connections}' - description: Number of user databases. @@ -114,8 +114,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" unit: '{databases}' scope: name: otelcol/postgresqlreceiver @@ -133,8 +133,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "6" - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -142,9 +142,9 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "7193092" - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + - asInt: "7184900" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -152,8 +152,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -162,8 +162,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" unit: '{table}' scope: name: otelcol/postgresqlreceiver @@ -181,8 +181,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "7" - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -190,9 +190,9 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "7234052" - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + - asInt: "7225860" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -200,8 +200,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -210,8 +210,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" unit: '{table}' scope: name: otelcol/postgresqlreceiver @@ -228,9 +228,9 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "1" - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + - asInt: "3" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" unit: "1" - description: The number of commits. name: postgresql.commits @@ -238,8 +238,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "8" - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -247,9 +247,9 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "7248408" - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + - asInt: "7240216" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -257,8 +257,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -267,158 +267,9 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - scope: - name: otelcol/postgresqlreceiver - version: latest - - resource: - attributes: - - key: postgresql.database.name - value: - stringValue: otel - - key: postgresql.table.name - value: - stringValue: public.table2 - scopeMetrics: - - metrics: - - description: The number of blocks read. - name: postgresql.blocks_read - sum: - aggregationTemporality: 2 - dataPoints: - - asInt: "0" - attributes: - - key: source - value: - stringValue: heap_read - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - - asInt: "0" - attributes: - - key: source - value: - stringValue: heap_hit - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - - asInt: "0" - attributes: - - key: source - value: - stringValue: idx_read - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - - asInt: "0" - attributes: - - key: source - value: - stringValue: idx_hit - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - - asInt: "0" - attributes: - - key: source - value: - stringValue: toast_hit - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - - asInt: "0" - attributes: - - key: source - value: - stringValue: toast_read - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - - asInt: "0" - attributes: - - key: source - value: - stringValue: tidx_read - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - - asInt: "0" - attributes: - - key: source - value: - stringValue: tidx_hit - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - isMonotonic: true - unit: "1" - - description: The number of db row operations. - name: postgresql.operations - sum: - aggregationTemporality: 2 - dataPoints: - - asInt: "0" - attributes: - - key: operation - value: - stringValue: ins - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - - asInt: "0" - attributes: - - key: operation - value: - stringValue: del - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - - asInt: "0" - attributes: - - key: operation - value: - stringValue: upd - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - - asInt: "0" - attributes: - - key: operation - value: - stringValue: hot_upd - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - isMonotonic: true - unit: "1" - - description: The number of rows in the database. - name: postgresql.rows - sum: - aggregationTemporality: 2 - dataPoints: - - asInt: "0" - attributes: - - key: state - value: - stringValue: dead - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - - asInt: "0" - attributes: - - key: state - value: - stringValue: live - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - unit: "1" - - description: Disk space used by a table. - name: postgresql.table.size - sum: - aggregationTemporality: 2 - dataPoints: - - asInt: "0" - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - unit: By - - description: Number of times a table has manually been vacuumed. - name: postgresql.table.vacuum.count - sum: - aggregationTemporality: 2 - dataPoints: - - asInt: "0" - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - isMonotonic: true - unit: '{vacuums}' + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" + unit: '{table}' scope: name: otelcol/postgresqlreceiver version: latest @@ -442,71 +293,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" - - asInt: "0" - attributes: - - key: source - value: - stringValue: toast_hit - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "0" attributes: - key: source value: - stringValue: toast_read - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - - asInt: "0" - attributes: - - key: source - value: - stringValue: tidx_read - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: idx_read + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "0" attributes: - key: source value: - stringValue: toast_hit - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + stringValue: toast_read + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -519,29 +356,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -554,15 +391,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -570,8 +407,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -579,8 +416,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" isMonotonic: true unit: '{vacuums}' scope: @@ -606,57 +443,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "0" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "0" attributes: - key: source value: - stringValue: toast_hit - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + stringValue: toast_read + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -669,29 +506,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -704,15 +541,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -720,8 +557,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -729,8 +566,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" isMonotonic: true unit: '{vacuums}' scope: @@ -756,71 +593,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" - - asInt: "0" - attributes: - - key: source - value: - stringValue: toast_hit - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "0" attributes: - key: source value: - stringValue: toast_read - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - - asInt: "0" - attributes: - - key: source - value: - stringValue: tidx_read - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: idx_read + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "0" attributes: - key: source value: - stringValue: toast_hit - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + stringValue: toast_read + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -833,29 +656,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -868,15 +691,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -884,8 +707,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -893,8 +716,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" isMonotonic: true unit: '{vacuums}' scope: @@ -920,71 +743,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "1" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "2" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "4" attributes: - key: source value: - stringValue: toast_hit - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - - asInt: "0" - attributes: - - key: source - value: - stringValue: toast_read - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" - - asInt: "0" - attributes: - - key: source - value: - stringValue: tidx_read - startTimeUnixNano: "1662565933924183000" - timeUnixNano: "1662565943934293000" + stringValue: idx_read + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "0" attributes: - key: source value: - stringValue: toast_hit - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + stringValue: toast_read + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -997,29 +806,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "1" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -1032,15 +841,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" - asInt: "1" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -1048,8 +857,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "8192" - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -1057,8 +866,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" isMonotonic: true unit: '{vacuums}' scope: @@ -1083,16 +892,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" name: postgresql.index.size unit: By scope: @@ -1117,16 +926,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" name: postgresql.index.size unit: By scope: @@ -1151,16 +960,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "16384" - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" name: postgresql.index.size unit: By scope: @@ -1185,16 +994,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" name: postgresql.index.size unit: By scope: @@ -1219,16 +1028,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" name: postgresql.index.size unit: By scope: @@ -1253,16 +1062,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "16384" - startTimeUnixNano: "1687338621474126000" - timeUnixNano: "1687338622486543000" + startTimeUnixNano: "1687774026086263000" + timeUnixNano: "1687774027116326000" name: postgresql.index.size unit: By scope: diff --git a/receiver/postgresqlreceiver/testdata/integration/expected_multi_db.yaml b/receiver/postgresqlreceiver/testdata/integration/expected_multi_db.yaml index f155037f70f0..539cc6b82b0a 100644 --- a/receiver/postgresqlreceiver/testdata/integration/expected_multi_db.yaml +++ b/receiver/postgresqlreceiver/testdata/integration/expected_multi_db.yaml @@ -8,9 +8,9 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "289" - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + - asInt: "579" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" isMonotonic: true unit: '{buffers}' - description: Number of buffers written. @@ -23,29 +23,29 @@ resourceMetrics: - key: source value: stringValue: backend - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "0" attributes: - key: source value: stringValue: backend_fsync - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "0" attributes: - key: source value: stringValue: bgwriter - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "60" attributes: - key: source value: stringValue: checkpoints - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" isMonotonic: true unit: '{buffers}' - description: The number of checkpoints performed. @@ -58,15 +58,15 @@ resourceMetrics: - key: type value: stringValue: requested - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "0" attributes: - key: type value: stringValue: scheduled - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" isMonotonic: true unit: '{checkpoints}' - description: Total time spent writing and syncing files to disk by checkpoints. @@ -74,20 +74,20 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asDouble: 17 + - asDouble: 18 attributes: - key: type value: stringValue: sync - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" - - asDouble: 14 + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" + - asDouble: 9 attributes: - key: type value: stringValue: write - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" isMonotonic: true unit: ms - description: Number of times the background writer stopped a cleaning scan because it had written too many buffers. @@ -96,16 +96,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" isMonotonic: true unit: '{stoppages}' - description: Configured maximum number of client connections allowed gauge: dataPoints: - asInt: "100" - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" name: postgresql.connection.max unit: '{connections}' - description: Number of user databases. @@ -114,8 +114,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" unit: '{databases}' scope: name: otelcol/postgresqlreceiver @@ -132,62 +132,9 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "0" - attributes: - - key: source - value: - stringValue: heap_read - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" - - asInt: "0" - attributes: - - key: source - value: - stringValue: heap_hit - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" - - asInt: "0" - attributes: - - key: source - value: - stringValue: idx_read - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" - - asInt: "0" - attributes: - - key: source - value: - stringValue: idx_hit - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" - - asInt: "0" - attributes: - - key: source - value: - stringValue: toast_hit - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" - - asInt: "0" - attributes: - - key: source - value: - stringValue: toast_read - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" - - asInt: "0" - attributes: - - key: source - value: - stringValue: tidx_read - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" - - asInt: "0" - attributes: - - key: source - value: - stringValue: tidx_hit - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + - asInt: "6" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -196,8 +143,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "7184900" - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -205,8 +152,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -215,8 +162,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" unit: '{table}' scope: name: otelcol/postgresqlreceiver @@ -234,8 +181,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "7" - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -244,8 +191,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "7225860" - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -253,8 +200,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -263,8 +210,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" unit: '{table}' scope: name: otelcol/postgresqlreceiver @@ -289,71 +236,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" - - asInt: "0" - attributes: - - key: source - value: - stringValue: toast_hit - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "0" attributes: - key: source value: - stringValue: toast_read - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" - - asInt: "0" - attributes: - - key: source - value: - stringValue: tidx_read - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: idx_read + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "0" attributes: - key: source value: - stringValue: toast_hit - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + stringValue: toast_read + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -366,29 +299,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -401,15 +334,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -417,8 +350,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -426,8 +359,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" isMonotonic: true unit: '{vacuums}' scope: @@ -453,57 +386,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "0" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "0" attributes: - key: source value: - stringValue: toast_hit - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + stringValue: toast_read + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -516,29 +449,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -551,15 +484,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -567,8 +500,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -576,8 +509,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" isMonotonic: true unit: '{vacuums}' scope: @@ -603,71 +536,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" - - asInt: "0" - attributes: - - key: source - value: - stringValue: toast_hit - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" - - asInt: "0" - attributes: - - key: source - value: - stringValue: toast_read - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "0" attributes: - key: source value: - stringValue: tidx_read - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: idx_read + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "0" attributes: - key: source value: - stringValue: toast_hit - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + stringValue: toast_read + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -680,29 +599,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -715,15 +634,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -731,8 +650,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -740,8 +659,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" isMonotonic: true unit: '{vacuums}' scope: @@ -767,71 +686,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "1" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "2" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "4" attributes: - key: source value: - stringValue: toast_hit - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" - - asInt: "0" - attributes: - - key: source - value: - stringValue: toast_read - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" - - asInt: "0" - attributes: - - key: source - value: - stringValue: tidx_read - startTimeUnixNano: "1662565922919465000" - timeUnixNano: "1662565932919535000" + stringValue: idx_read + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "0" attributes: - key: source value: - stringValue: toast_hit - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + stringValue: toast_read + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -844,29 +749,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "1" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -879,15 +784,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" - asInt: "1" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -895,8 +800,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "8192" - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -904,8 +809,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" isMonotonic: true unit: '{vacuums}' scope: @@ -930,16 +835,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" name: postgresql.index.size unit: By scope: @@ -964,16 +869,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" name: postgresql.index.size unit: By scope: @@ -998,16 +903,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "16384" - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" name: postgresql.index.size unit: By scope: @@ -1032,16 +937,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" name: postgresql.index.size unit: By scope: @@ -1066,16 +971,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" name: postgresql.index.size unit: By scope: @@ -1100,16 +1005,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "16384" - startTimeUnixNano: "1687338611400357000" - timeUnixNano: "1687338612400834000" + startTimeUnixNano: "1687774015451214000" + timeUnixNano: "1687774016452066000" name: postgresql.index.size unit: By scope: diff --git a/receiver/postgresqlreceiver/testdata/integration/expected_single_db.yaml b/receiver/postgresqlreceiver/testdata/integration/expected_single_db.yaml index 8bbb22e1dae2..cc899c51ee57 100644 --- a/receiver/postgresqlreceiver/testdata/integration/expected_single_db.yaml +++ b/receiver/postgresqlreceiver/testdata/integration/expected_single_db.yaml @@ -8,9 +8,9 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "289" - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + - asInt: "442" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" isMonotonic: true unit: '{buffers}' - description: Number of buffers written. @@ -23,29 +23,29 @@ resourceMetrics: - key: source value: stringValue: backend - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" - asInt: "0" attributes: - key: source value: stringValue: backend_fsync - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" - asInt: "0" attributes: - key: source value: stringValue: bgwriter - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" - asInt: "60" attributes: - key: source value: stringValue: checkpoints - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" isMonotonic: true unit: '{buffers}' - description: The number of checkpoints performed. @@ -58,15 +58,15 @@ resourceMetrics: - key: type value: stringValue: requested - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" - asInt: "0" attributes: - key: type value: stringValue: scheduled - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" isMonotonic: true unit: '{checkpoints}' - description: Total time spent writing and syncing files to disk by checkpoints. @@ -74,20 +74,20 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asDouble: 21 + - asDouble: 12 attributes: - key: type value: stringValue: sync - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" - - asDouble: 12 + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" + - asDouble: 9 attributes: - key: type value: stringValue: write - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" isMonotonic: true unit: ms - description: Number of times the background writer stopped a cleaning scan because it had written too many buffers. @@ -96,16 +96,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" isMonotonic: true unit: '{stoppages}' - description: Configured maximum number of client connections allowed gauge: dataPoints: - asInt: "100" - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" name: postgresql.connection.max unit: '{connections}' - description: Number of user databases. @@ -114,8 +114,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1" - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" unit: '{databases}' scope: name: otelcol/postgresqlreceiver @@ -132,62 +132,9 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "0" - attributes: - - key: source - value: - stringValue: heap_read - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" - - asInt: "0" - attributes: - - key: source - value: - stringValue: heap_hit - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" - - asInt: "0" - attributes: - - key: source - value: - stringValue: idx_read - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" - - asInt: "0" - attributes: - - key: source - value: - stringValue: idx_hit - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" - - asInt: "0" - attributes: - - key: source - value: - stringValue: toast_hit - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" - - asInt: "0" - attributes: - - key: source - value: - stringValue: toast_read - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" - - asInt: "0" - attributes: - - key: source - value: - stringValue: tidx_read - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" - - asInt: "0" - attributes: - - key: source - value: - stringValue: tidx_hit - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" + - asInt: "6" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -195,9 +142,9 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "7176708" - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + - asInt: "7160324" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -205,8 +152,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -215,8 +162,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" unit: '{table}' scope: name: otelcol/postgresqlreceiver @@ -241,71 +188,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" - asInt: "0" attributes: - key: source value: - stringValue: toast_hit - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" - - asInt: "0" - attributes: - - key: source - value: - stringValue: toast_read - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" - - asInt: "0" - attributes: - - key: source - value: - stringValue: tidx_read - startTimeUnixNano: "1662565911916254000" - timeUnixNano: "1662565921917209000" + stringValue: idx_read + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" - asInt: "0" attributes: - key: source value: - stringValue: toast_hit - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + stringValue: toast_read + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -318,29 +251,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -353,15 +286,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -369,8 +302,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -378,8 +311,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" isMonotonic: true unit: '{vacuums}' scope: @@ -405,57 +338,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" - asInt: "0" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" - asInt: "0" attributes: - key: source value: - stringValue: toast_hit - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + stringValue: toast_read + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -468,29 +401,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -503,15 +436,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -519,8 +452,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -528,8 +461,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" isMonotonic: true unit: '{vacuums}' scope: @@ -554,16 +487,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" name: postgresql.index.size unit: By scope: @@ -588,16 +521,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687338598043446000" - timeUnixNano: "1687338599044014000" + startTimeUnixNano: "1687774006105968000" + timeUnixNano: "1687774007106985000" name: postgresql.index.size unit: By scope: diff --git a/receiver/postgresqlreceiver/testdata/scraper/multiple/expected.yaml b/receiver/postgresqlreceiver/testdata/scraper/multiple/expected.yaml index c3df5d734374..a3ed4c510fd8 100644 --- a/receiver/postgresqlreceiver/testdata/scraper/multiple/expected.yaml +++ b/receiver/postgresqlreceiver/testdata/scraper/multiple/expected.yaml @@ -9,8 +9,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "10" - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" isMonotonic: true unit: '{buffers}' - description: Number of buffers written. @@ -23,29 +23,29 @@ resourceMetrics: - key: source value: stringValue: backend - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "8" attributes: - key: source value: stringValue: backend_fsync - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "5" attributes: - key: source value: stringValue: bgwriter - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "9" attributes: - key: source value: stringValue: checkpoints - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" isMonotonic: true unit: '{buffers}' - description: The number of checkpoints performed. @@ -58,15 +58,15 @@ resourceMetrics: - key: type value: stringValue: requested - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "2" attributes: - key: type value: stringValue: scheduled - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" isMonotonic: true unit: '{checkpoints}' - description: Total time spent writing and syncing files to disk by checkpoints. @@ -79,15 +79,15 @@ resourceMetrics: - key: type value: stringValue: sync - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asDouble: 3.12 attributes: - key: type value: stringValue: write - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" isMonotonic: true unit: ms - description: Number of times the background writer stopped a cleaning scan because it had written too many buffers. @@ -96,16 +96,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "11" - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" isMonotonic: true unit: '{stoppages}' - description: Configured maximum number of client connections allowed gauge: dataPoints: - asInt: "100" - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" name: postgresql.connection.max unit: '{connections}' - description: Number of user databases. @@ -114,8 +114,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" unit: '{databases}' - description: The amount of data delayed in replication. gauge: @@ -125,16 +125,16 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" name: postgresql.replication.data_delay unit: By - description: Age of the oldest WAL file. gauge: dataPoints: - asInt: "3600" - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" name: postgresql.wal.age unit: s - description: Time between flushing recent WAL locally and receiving notification that the standby server has completed an operation with it. @@ -148,8 +148,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "700" attributes: - key: operation @@ -158,8 +158,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "800" attributes: - key: operation @@ -168,8 +168,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" name: postgresql.wal.lag unit: s scope: @@ -188,8 +188,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4" - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" unit: "1" - description: The number of commits. name: postgresql.commits @@ -197,8 +197,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -207,8 +207,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "5" - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -216,8 +216,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -226,8 +226,9 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" + unit: '{table}' scope: name: otelcol/postgresqlreceiver version: latest @@ -244,8 +245,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" unit: "1" - description: The number of commits. name: postgresql.commits @@ -253,8 +254,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1" - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -263,8 +264,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4" - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -272,8 +273,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -282,8 +283,9 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" + unit: '{table}' scope: name: otelcol/postgresqlreceiver version: latest @@ -300,8 +302,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "5" - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" unit: "1" - description: The number of commits. name: postgresql.commits @@ -309,8 +311,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -319,8 +321,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "6" - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -328,8 +330,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4" - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -338,8 +340,9 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" + unit: '{table}' scope: name: otelcol/postgresqlreceiver version: latest @@ -363,57 +366,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "20" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "23" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "22" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "27" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "26" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "25" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "24" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -426,29 +429,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "43" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "40" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "41" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -461,15 +464,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "8" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -477,8 +480,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "44" - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -486,8 +489,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "45" - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" isMonotonic: true unit: '{vacuums}' scope: @@ -513,57 +516,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "28" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "31" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "30" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "35" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "34" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "33" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "32" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -576,29 +579,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "47" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "44" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "45" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -611,15 +614,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "10" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -627,8 +630,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "48" - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -636,8 +639,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "49" - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" isMonotonic: true unit: '{vacuums}' scope: @@ -663,57 +666,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "19" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "22" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "21" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "26" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "25" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "24" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "23" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -726,29 +729,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "42" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "39" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "40" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -761,15 +764,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "7" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -777,8 +780,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "43" - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -786,8 +789,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "44" - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" isMonotonic: true unit: '{vacuums}' scope: @@ -813,57 +816,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "27" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "30" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "29" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "34" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "33" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "32" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "31" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -876,29 +879,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "46" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "43" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "44" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -911,15 +914,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "9" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -927,8 +930,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "47" - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -936,8 +939,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "48" - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" isMonotonic: true unit: '{vacuums}' scope: @@ -963,57 +966,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "21" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "24" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "23" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "28" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "27" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "26" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "25" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -1026,29 +1029,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "44" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "41" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "42" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -1061,15 +1064,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "9" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -1077,8 +1080,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "45" - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -1086,8 +1089,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "46" - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" isMonotonic: true unit: '{vacuums}' scope: @@ -1113,57 +1116,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "29" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "32" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "31" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "36" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "35" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "34" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "33" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -1176,29 +1179,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "48" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "45" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "46" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -1211,15 +1214,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" - asInt: "11" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -1227,8 +1230,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "49" - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -1236,8 +1239,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "50" - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" isMonotonic: true unit: '{vacuums}' scope: @@ -1262,16 +1265,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "36" - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "37" - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" name: postgresql.index.size unit: By scope: @@ -1296,16 +1299,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "38" - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "39" - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" name: postgresql.index.size unit: By scope: @@ -1330,16 +1333,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "35" - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "36" - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" name: postgresql.index.size unit: By scope: @@ -1364,16 +1367,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "37" - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "38" - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" name: postgresql.index.size unit: By scope: @@ -1398,16 +1401,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "37" - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "38" - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" name: postgresql.index.size unit: By scope: @@ -1432,16 +1435,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "39" - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "40" - startTimeUnixNano: "1687536677505800000" - timeUnixNano: "1687536677505826000" + startTimeUnixNano: "1687773847678444000" + timeUnixNano: "1687773847678588000" name: postgresql.index.size unit: By scope: diff --git a/receiver/postgresqlreceiver/testdata/scraper/multiple/expected_with_resource.yaml b/receiver/postgresqlreceiver/testdata/scraper/multiple/expected_with_resource.yaml index 696af1148237..009ccc9d3730 100644 --- a/receiver/postgresqlreceiver/testdata/scraper/multiple/expected_with_resource.yaml +++ b/receiver/postgresqlreceiver/testdata/scraper/multiple/expected_with_resource.yaml @@ -9,8 +9,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "10" - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" isMonotonic: true unit: '{buffers}' - description: Number of buffers written. @@ -23,29 +23,29 @@ resourceMetrics: - key: source value: stringValue: backend - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "8" attributes: - key: source value: stringValue: backend_fsync - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "5" attributes: - key: source value: stringValue: bgwriter - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "9" attributes: - key: source value: stringValue: checkpoints - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" isMonotonic: true unit: '{buffers}' - description: The number of checkpoints performed. @@ -58,15 +58,15 @@ resourceMetrics: - key: type value: stringValue: requested - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "2" attributes: - key: type value: stringValue: scheduled - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" isMonotonic: true unit: '{checkpoints}' - description: Total time spent writing and syncing files to disk by checkpoints. @@ -79,15 +79,15 @@ resourceMetrics: - key: type value: stringValue: sync - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asDouble: 3.12 attributes: - key: type value: stringValue: write - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" isMonotonic: true unit: ms - description: Number of times the background writer stopped a cleaning scan because it had written too many buffers. @@ -96,16 +96,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "11" - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" isMonotonic: true unit: '{stoppages}' - description: Configured maximum number of client connections allowed gauge: dataPoints: - asInt: "100" - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" name: postgresql.connection.max unit: '{connections}' - description: Number of user databases. @@ -114,8 +114,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" unit: '{databases}' - description: The amount of data delayed in replication. gauge: @@ -125,16 +125,16 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" name: postgresql.replication.data_delay unit: By - description: Age of the oldest WAL file. gauge: dataPoints: - asInt: "3600" - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" name: postgresql.wal.age unit: s - description: Time between flushing recent WAL locally and receiving notification that the standby server has completed an operation with it. @@ -148,8 +148,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "700" attributes: - key: operation @@ -158,8 +158,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "800" attributes: - key: operation @@ -168,8 +168,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" name: postgresql.wal.lag unit: s scope: @@ -188,8 +188,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4" - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" unit: "1" - description: The number of commits. name: postgresql.commits @@ -197,8 +197,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -207,8 +207,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "5" - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -216,8 +216,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -226,8 +226,9 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" + unit: '{table}' scope: name: otelcol/postgresqlreceiver version: latest @@ -244,8 +245,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" unit: "1" - description: The number of commits. name: postgresql.commits @@ -253,8 +254,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1" - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -263,8 +264,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4" - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -272,8 +273,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -282,8 +283,9 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" + unit: '{table}' scope: name: otelcol/postgresqlreceiver version: latest @@ -300,8 +302,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "5" - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" unit: "1" - description: The number of commits. name: postgresql.commits @@ -309,8 +311,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -319,8 +321,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "6" - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -328,8 +330,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4" - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -338,8 +340,9 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" + unit: '{table}' scope: name: otelcol/postgresqlreceiver version: latest @@ -363,57 +366,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "20" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "23" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "22" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "27" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "26" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "25" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "24" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -426,29 +429,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "43" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "40" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "41" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -461,15 +464,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "8" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -477,8 +480,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "44" - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -486,8 +489,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "45" - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" isMonotonic: true unit: '{vacuums}' scope: @@ -513,57 +516,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "28" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "31" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "30" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "35" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "34" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "33" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "32" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -576,29 +579,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "47" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "44" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "45" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -611,15 +614,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "10" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -627,8 +630,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "48" - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -636,8 +639,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "49" - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" isMonotonic: true unit: '{vacuums}' scope: @@ -663,57 +666,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "19" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "22" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "21" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "26" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "25" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "24" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "23" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -726,29 +729,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "42" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "39" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "40" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -761,15 +764,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "7" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -777,8 +780,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "43" - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -786,8 +789,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "44" - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" isMonotonic: true unit: '{vacuums}' scope: @@ -813,57 +816,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "27" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "30" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "29" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "34" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "33" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "32" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "31" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -876,29 +879,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "46" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "43" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "44" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -911,15 +914,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "9" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -927,8 +930,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "47" - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -936,8 +939,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "48" - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" isMonotonic: true unit: '{vacuums}' scope: @@ -963,57 +966,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "21" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "24" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "23" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "28" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "27" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "26" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "25" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -1026,29 +1029,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "44" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "41" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "42" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -1061,15 +1064,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "9" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -1077,8 +1080,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "45" - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -1086,8 +1089,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "46" - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" isMonotonic: true unit: '{vacuums}' scope: @@ -1113,57 +1116,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "29" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "32" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "31" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "36" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "35" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "34" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "33" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -1176,29 +1179,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "48" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "45" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "46" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -1211,15 +1214,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" - asInt: "11" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -1227,8 +1230,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "49" - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -1236,8 +1239,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "50" - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" isMonotonic: true unit: '{vacuums}' scope: @@ -1262,16 +1265,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "36" - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "37" - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" name: postgresql.index.size unit: By scope: @@ -1296,16 +1299,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "38" - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "39" - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" name: postgresql.index.size unit: By scope: @@ -1330,16 +1333,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "35" - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "36" - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" name: postgresql.index.size unit: By scope: @@ -1364,16 +1367,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "37" - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "38" - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" name: postgresql.index.size unit: By scope: @@ -1398,16 +1401,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "37" - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "38" - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" name: postgresql.index.size unit: By scope: @@ -1432,16 +1435,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "39" - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "40" - startTimeUnixNano: "1687536677517433000" - timeUnixNano: "1687536677517468000" + startTimeUnixNano: "1687773852170317000" + timeUnixNano: "1687773852170449000" name: postgresql.index.size unit: By scope: diff --git a/receiver/postgresqlreceiver/testdata/scraper/otel/expected.yaml b/receiver/postgresqlreceiver/testdata/scraper/otel/expected.yaml index d7dee3d85611..2bb4260e5784 100644 --- a/receiver/postgresqlreceiver/testdata/scraper/otel/expected.yaml +++ b/receiver/postgresqlreceiver/testdata/scraper/otel/expected.yaml @@ -9,8 +9,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "10" - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" isMonotonic: true unit: '{buffers}' - description: Number of buffers written. @@ -23,29 +23,29 @@ resourceMetrics: - key: source value: stringValue: backend - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" - asInt: "8" attributes: - key: source value: stringValue: backend_fsync - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" - asInt: "5" attributes: - key: source value: stringValue: bgwriter - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" - asInt: "9" attributes: - key: source value: stringValue: checkpoints - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" isMonotonic: true unit: '{buffers}' - description: The number of checkpoints performed. @@ -58,15 +58,15 @@ resourceMetrics: - key: type value: stringValue: requested - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" - asInt: "2" attributes: - key: type value: stringValue: scheduled - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" isMonotonic: true unit: '{checkpoints}' - description: Total time spent writing and syncing files to disk by checkpoints. @@ -79,15 +79,15 @@ resourceMetrics: - key: type value: stringValue: sync - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" - asDouble: 3.12 attributes: - key: type value: stringValue: write - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" isMonotonic: true unit: ms - description: Number of times the background writer stopped a cleaning scan because it had written too many buffers. @@ -96,16 +96,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "11" - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" isMonotonic: true unit: '{stoppages}' - description: Configured maximum number of client connections allowed gauge: dataPoints: - asInt: "100" - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" name: postgresql.connection.max unit: '{connections}' - description: Number of user databases. @@ -114,8 +114,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1" - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" unit: '{databases}' - description: The amount of data delayed in replication. gauge: @@ -125,16 +125,16 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" name: postgresql.replication.data_delay unit: By - description: Age of the oldest WAL file. gauge: dataPoints: - asInt: "3600" - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" name: postgresql.wal.age unit: s - description: Time between flushing recent WAL locally and receiving notification that the standby server has completed an operation with it. @@ -148,8 +148,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" - asInt: "700" attributes: - key: operation @@ -158,8 +158,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" - asInt: "800" attributes: - key: operation @@ -168,8 +168,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" name: postgresql.wal.lag unit: s scope: @@ -188,8 +188,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" unit: "1" - description: The number of commits. name: postgresql.commits @@ -197,8 +197,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1" - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -207,8 +207,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4" - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -216,8 +216,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -226,8 +226,9 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" + unit: '{table}' scope: name: otelcol/postgresqlreceiver version: latest @@ -251,57 +252,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" - asInt: "19" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" - asInt: "22" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" - asInt: "21" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" - asInt: "26" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" - asInt: "25" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" - asInt: "24" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" - asInt: "23" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -314,29 +315,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" - asInt: "42" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" - asInt: "39" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" - asInt: "40" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -349,15 +350,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" - asInt: "7" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -365,8 +366,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "43" - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -374,8 +375,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "44" - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" isMonotonic: true unit: '{vacuums}' scope: @@ -401,57 +402,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" - asInt: "27" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" - asInt: "30" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" - asInt: "29" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" - asInt: "34" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" - asInt: "33" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" - asInt: "32" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" - asInt: "31" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -464,29 +465,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" - asInt: "46" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" - asInt: "43" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" - asInt: "44" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -499,15 +500,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" - asInt: "9" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -515,8 +516,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "47" - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -524,8 +525,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "48" - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" isMonotonic: true unit: '{vacuums}' scope: @@ -550,16 +551,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "35" - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "36" - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" name: postgresql.index.size unit: By scope: @@ -584,16 +585,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "37" - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "38" - startTimeUnixNano: "1687536677498986000" - timeUnixNano: "1687536677499123000" + startTimeUnixNano: "1687773842757408000" + timeUnixNano: "1687773842757605000" name: postgresql.index.size unit: By scope: diff --git a/receiver/postgresqlreceiver/testdata/scraper/otel/expected_with_resource.yaml b/receiver/postgresqlreceiver/testdata/scraper/otel/expected_with_resource.yaml index b42e57345e86..c26d584650d1 100644 --- a/receiver/postgresqlreceiver/testdata/scraper/otel/expected_with_resource.yaml +++ b/receiver/postgresqlreceiver/testdata/scraper/otel/expected_with_resource.yaml @@ -9,8 +9,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "10" - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" isMonotonic: true unit: '{buffers}' - description: Number of buffers written. @@ -23,29 +23,29 @@ resourceMetrics: - key: source value: stringValue: backend - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" - asInt: "8" attributes: - key: source value: stringValue: backend_fsync - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" - asInt: "5" attributes: - key: source value: stringValue: bgwriter - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" - asInt: "9" attributes: - key: source value: stringValue: checkpoints - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" isMonotonic: true unit: '{buffers}' - description: The number of checkpoints performed. @@ -58,15 +58,15 @@ resourceMetrics: - key: type value: stringValue: requested - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" - asInt: "2" attributes: - key: type value: stringValue: scheduled - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" isMonotonic: true unit: '{checkpoints}' - description: Total time spent writing and syncing files to disk by checkpoints. @@ -79,15 +79,15 @@ resourceMetrics: - key: type value: stringValue: sync - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" - asDouble: 3.12 attributes: - key: type value: stringValue: write - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" isMonotonic: true unit: ms - description: Number of times the background writer stopped a cleaning scan because it had written too many buffers. @@ -96,16 +96,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "11" - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" isMonotonic: true unit: '{stoppages}' - description: Configured maximum number of client connections allowed gauge: dataPoints: - asInt: "100" - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" name: postgresql.connection.max unit: '{connections}' - description: Number of user databases. @@ -114,8 +114,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1" - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" unit: '{databases}' - description: The amount of data delayed in replication. gauge: @@ -125,16 +125,16 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" name: postgresql.replication.data_delay unit: By - description: Age of the oldest WAL file. gauge: dataPoints: - asInt: "3600" - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" name: postgresql.wal.age unit: s - description: Time between flushing recent WAL locally and receiving notification that the standby server has completed an operation with it. @@ -148,8 +148,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" - asInt: "700" attributes: - key: operation @@ -158,8 +158,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" - asInt: "800" attributes: - key: operation @@ -168,8 +168,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" name: postgresql.wal.lag unit: s scope: @@ -188,8 +188,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" unit: "1" - description: The number of commits. name: postgresql.commits @@ -197,8 +197,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1" - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -207,8 +207,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4" - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -216,8 +216,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -226,8 +226,9 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" + unit: '{table}' scope: name: otelcol/postgresqlreceiver version: latest @@ -251,57 +252,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" - asInt: "19" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" - asInt: "22" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" - asInt: "21" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" - asInt: "26" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" - asInt: "25" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" - asInt: "24" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" - asInt: "23" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -314,29 +315,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" - asInt: "42" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" - asInt: "39" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" - asInt: "40" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -349,15 +350,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" - asInt: "7" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -365,8 +366,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "43" - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -374,8 +375,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "44" - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" isMonotonic: true unit: '{vacuums}' scope: @@ -401,57 +402,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" - asInt: "27" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" - asInt: "30" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" - asInt: "29" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" - asInt: "34" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" - asInt: "33" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" - asInt: "32" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" - asInt: "31" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -464,29 +465,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" - asInt: "46" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" - asInt: "43" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" - asInt: "44" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -499,15 +500,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" - asInt: "9" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -515,8 +516,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "47" - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -524,8 +525,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "48" - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" isMonotonic: true unit: '{vacuums}' scope: @@ -550,16 +551,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "35" - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "36" - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" name: postgresql.index.size unit: By scope: @@ -584,16 +585,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "37" - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "38" - startTimeUnixNano: "1687536677528497000" - timeUnixNano: "1687536677528540000" + startTimeUnixNano: "1687773857234059000" + timeUnixNano: "1687773857234231000" name: postgresql.index.size unit: By scope: From 2eebf670d74ca80a13064b40320b374ca3a071ee Mon Sep 17 00:00:00 2001 From: mackjmr Date: Mon, 26 Jun 2023 13:23:42 +0200 Subject: [PATCH 5/6] re-run golden.WriteMetrics --- .../testdata/integration/expected_all_db.yaml | 414 ++++++------- .../integration/expected_multi_db.yaml | 394 ++++++------ .../integration/expected_single_db.yaml | 216 +++---- .../testdata/scraper/multiple/expected.yaml | 560 +++++++++--------- .../multiple/expected_with_resource.yaml | 560 +++++++++--------- .../testdata/scraper/otel/expected.yaml | 232 ++++---- .../scraper/otel/expected_with_resource.yaml | 232 ++++---- 7 files changed, 1304 insertions(+), 1304 deletions(-) diff --git a/receiver/postgresqlreceiver/testdata/integration/expected_all_db.yaml b/receiver/postgresqlreceiver/testdata/integration/expected_all_db.yaml index 6e87a232f486..16a3516ae1c6 100644 --- a/receiver/postgresqlreceiver/testdata/integration/expected_all_db.yaml +++ b/receiver/postgresqlreceiver/testdata/integration/expected_all_db.yaml @@ -1,4 +1,4 @@ -testdata/integration/expected_all_db.yamlresourceMetrics: +resourceMetrics: - resource: attributes: [] scopeMetrics: @@ -8,9 +8,9 @@ testdata/integration/expected_all_db.yamlresourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "634" - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + - asInt: "466" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" isMonotonic: true unit: '{buffers}' - description: Number of buffers written. @@ -23,29 +23,29 @@ testdata/integration/expected_all_db.yamlresourceMetrics: - key: source value: stringValue: backend - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "0" attributes: - key: source value: stringValue: backend_fsync - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "0" attributes: - key: source value: stringValue: bgwriter - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "60" attributes: - key: source value: stringValue: checkpoints - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" isMonotonic: true unit: '{buffers}' - description: The number of checkpoints performed. @@ -58,15 +58,15 @@ testdata/integration/expected_all_db.yamlresourceMetrics: - key: type value: stringValue: requested - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "0" attributes: - key: type value: stringValue: scheduled - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" isMonotonic: true unit: '{checkpoints}' - description: Total time spent writing and syncing files to disk by checkpoints. @@ -74,20 +74,20 @@ testdata/integration/expected_all_db.yamlresourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asDouble: 18 + - asDouble: 19 attributes: - key: type value: stringValue: sync - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" - - asDouble: 11 + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" + - asDouble: 13 attributes: - key: type value: stringValue: write - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" isMonotonic: true unit: ms - description: Number of times the background writer stopped a cleaning scan because it had written too many buffers. @@ -96,16 +96,16 @@ testdata/integration/expected_all_db.yamlresourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" isMonotonic: true unit: '{stoppages}' - description: Configured maximum number of client connections allowed gauge: dataPoints: - asInt: "100" - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" name: postgresql.connection.max unit: '{connections}' - description: Number of user databases. @@ -114,8 +114,8 @@ testdata/integration/expected_all_db.yamlresourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" unit: '{databases}' scope: name: otelcol/postgresqlreceiver @@ -133,8 +133,8 @@ testdata/integration/expected_all_db.yamlresourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "6" - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -143,8 +143,8 @@ testdata/integration/expected_all_db.yamlresourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "7184900" - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -152,8 +152,8 @@ testdata/integration/expected_all_db.yamlresourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -162,8 +162,8 @@ testdata/integration/expected_all_db.yamlresourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" unit: '{table}' scope: name: otelcol/postgresqlreceiver @@ -181,8 +181,8 @@ testdata/integration/expected_all_db.yamlresourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "7" - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -191,8 +191,8 @@ testdata/integration/expected_all_db.yamlresourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "7225860" - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -200,8 +200,8 @@ testdata/integration/expected_all_db.yamlresourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -210,8 +210,8 @@ testdata/integration/expected_all_db.yamlresourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" unit: '{table}' scope: name: otelcol/postgresqlreceiver @@ -228,9 +228,9 @@ testdata/integration/expected_all_db.yamlresourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "3" - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + - asInt: "1" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" unit: "1" - description: The number of commits. name: postgresql.commits @@ -238,8 +238,8 @@ testdata/integration/expected_all_db.yamlresourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "8" - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -248,8 +248,8 @@ testdata/integration/expected_all_db.yamlresourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "7240216" - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -257,8 +257,8 @@ testdata/integration/expected_all_db.yamlresourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -267,8 +267,8 @@ testdata/integration/expected_all_db.yamlresourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" unit: '{table}' scope: name: otelcol/postgresqlreceiver @@ -293,57 +293,57 @@ testdata/integration/expected_all_db.yamlresourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "0" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "0" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -356,29 +356,29 @@ testdata/integration/expected_all_db.yamlresourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -391,15 +391,15 @@ testdata/integration/expected_all_db.yamlresourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -407,8 +407,8 @@ testdata/integration/expected_all_db.yamlresourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -416,8 +416,8 @@ testdata/integration/expected_all_db.yamlresourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" isMonotonic: true unit: '{vacuums}' scope: @@ -443,57 +443,57 @@ testdata/integration/expected_all_db.yamlresourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "0" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "0" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -506,29 +506,29 @@ testdata/integration/expected_all_db.yamlresourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -541,15 +541,15 @@ testdata/integration/expected_all_db.yamlresourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -557,8 +557,8 @@ testdata/integration/expected_all_db.yamlresourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -566,8 +566,8 @@ testdata/integration/expected_all_db.yamlresourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" isMonotonic: true unit: '{vacuums}' scope: @@ -593,57 +593,57 @@ testdata/integration/expected_all_db.yamlresourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "0" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "0" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -656,29 +656,29 @@ testdata/integration/expected_all_db.yamlresourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -691,15 +691,15 @@ testdata/integration/expected_all_db.yamlresourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -707,8 +707,8 @@ testdata/integration/expected_all_db.yamlresourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -716,8 +716,8 @@ testdata/integration/expected_all_db.yamlresourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" isMonotonic: true unit: '{vacuums}' scope: @@ -743,57 +743,57 @@ testdata/integration/expected_all_db.yamlresourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "1" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "2" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "4" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "0" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -806,29 +806,29 @@ testdata/integration/expected_all_db.yamlresourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "1" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -841,15 +841,15 @@ testdata/integration/expected_all_db.yamlresourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" - asInt: "1" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -857,8 +857,8 @@ testdata/integration/expected_all_db.yamlresourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "8192" - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -866,8 +866,8 @@ testdata/integration/expected_all_db.yamlresourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" isMonotonic: true unit: '{vacuums}' scope: @@ -892,16 +892,16 @@ testdata/integration/expected_all_db.yamlresourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" name: postgresql.index.size unit: By scope: @@ -926,16 +926,16 @@ testdata/integration/expected_all_db.yamlresourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" name: postgresql.index.size unit: By scope: @@ -960,16 +960,16 @@ testdata/integration/expected_all_db.yamlresourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "16384" - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" name: postgresql.index.size unit: By scope: @@ -994,16 +994,16 @@ testdata/integration/expected_all_db.yamlresourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" name: postgresql.index.size unit: By scope: @@ -1028,16 +1028,16 @@ testdata/integration/expected_all_db.yamlresourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" name: postgresql.index.size unit: By scope: @@ -1062,16 +1062,16 @@ testdata/integration/expected_all_db.yamlresourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "16384" - startTimeUnixNano: "1687774026086263000" - timeUnixNano: "1687774027116326000" + startTimeUnixNano: "1687778373569247000" + timeUnixNano: "1687778374585642000" name: postgresql.index.size unit: By scope: diff --git a/receiver/postgresqlreceiver/testdata/integration/expected_multi_db.yaml b/receiver/postgresqlreceiver/testdata/integration/expected_multi_db.yaml index 539cc6b82b0a..caf0bf01c279 100644 --- a/receiver/postgresqlreceiver/testdata/integration/expected_multi_db.yaml +++ b/receiver/postgresqlreceiver/testdata/integration/expected_multi_db.yaml @@ -8,9 +8,9 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "579" - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + - asInt: "581" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" isMonotonic: true unit: '{buffers}' - description: Number of buffers written. @@ -23,29 +23,29 @@ resourceMetrics: - key: source value: stringValue: backend - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "0" attributes: - key: source value: stringValue: backend_fsync - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "0" attributes: - key: source value: stringValue: bgwriter - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "60" attributes: - key: source value: stringValue: checkpoints - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" isMonotonic: true unit: '{buffers}' - description: The number of checkpoints performed. @@ -58,15 +58,15 @@ resourceMetrics: - key: type value: stringValue: requested - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "0" attributes: - key: type value: stringValue: scheduled - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" isMonotonic: true unit: '{checkpoints}' - description: Total time spent writing and syncing files to disk by checkpoints. @@ -74,20 +74,20 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asDouble: 18 + - asDouble: 114 attributes: - key: type value: stringValue: sync - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" - - asDouble: 9 + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" + - asDouble: 27 attributes: - key: type value: stringValue: write - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" isMonotonic: true unit: ms - description: Number of times the background writer stopped a cleaning scan because it had written too many buffers. @@ -96,16 +96,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" isMonotonic: true unit: '{stoppages}' - description: Configured maximum number of client connections allowed gauge: dataPoints: - asInt: "100" - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" name: postgresql.connection.max unit: '{connections}' - description: Number of user databases. @@ -114,8 +114,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" unit: '{databases}' scope: name: otelcol/postgresqlreceiver @@ -133,8 +133,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "6" - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -142,9 +142,9 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "7184900" - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + - asInt: "7176708" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -152,8 +152,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -162,8 +162,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" unit: '{table}' scope: name: otelcol/postgresqlreceiver @@ -181,8 +181,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "7" - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -190,9 +190,9 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "7225860" - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + - asInt: "7217668" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -200,8 +200,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -210,8 +210,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" unit: '{table}' scope: name: otelcol/postgresqlreceiver @@ -236,57 +236,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "0" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "0" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -299,29 +299,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -334,15 +334,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -350,8 +350,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -359,8 +359,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" isMonotonic: true unit: '{vacuums}' scope: @@ -386,57 +386,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "0" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "0" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -449,29 +449,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -484,15 +484,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -500,8 +500,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -509,8 +509,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" isMonotonic: true unit: '{vacuums}' scope: @@ -536,57 +536,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "0" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "0" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -599,29 +599,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -634,15 +634,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -650,8 +650,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -659,8 +659,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" isMonotonic: true unit: '{vacuums}' scope: @@ -686,57 +686,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "1" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "2" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "4" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "0" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -749,29 +749,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "1" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -784,15 +784,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" - asInt: "1" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -800,8 +800,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "8192" - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -809,8 +809,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" isMonotonic: true unit: '{vacuums}' scope: @@ -835,16 +835,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" name: postgresql.index.size unit: By scope: @@ -869,16 +869,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" name: postgresql.index.size unit: By scope: @@ -903,16 +903,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "16384" - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" name: postgresql.index.size unit: By scope: @@ -937,16 +937,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" name: postgresql.index.size unit: By scope: @@ -971,16 +971,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" name: postgresql.index.size unit: By scope: @@ -1005,16 +1005,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "16384" - startTimeUnixNano: "1687774015451214000" - timeUnixNano: "1687774016452066000" + startTimeUnixNano: "1687778362561817000" + timeUnixNano: "1687778363562522000" name: postgresql.index.size unit: By scope: diff --git a/receiver/postgresqlreceiver/testdata/integration/expected_single_db.yaml b/receiver/postgresqlreceiver/testdata/integration/expected_single_db.yaml index cc899c51ee57..bd39420591ff 100644 --- a/receiver/postgresqlreceiver/testdata/integration/expected_single_db.yaml +++ b/receiver/postgresqlreceiver/testdata/integration/expected_single_db.yaml @@ -8,9 +8,9 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "442" - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + - asInt: "289" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" isMonotonic: true unit: '{buffers}' - description: Number of buffers written. @@ -23,29 +23,29 @@ resourceMetrics: - key: source value: stringValue: backend - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" - asInt: "0" attributes: - key: source value: stringValue: backend_fsync - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" - asInt: "0" attributes: - key: source value: stringValue: bgwriter - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" - asInt: "60" attributes: - key: source value: stringValue: checkpoints - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" isMonotonic: true unit: '{buffers}' - description: The number of checkpoints performed. @@ -58,15 +58,15 @@ resourceMetrics: - key: type value: stringValue: requested - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" - asInt: "0" attributes: - key: type value: stringValue: scheduled - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" isMonotonic: true unit: '{checkpoints}' - description: Total time spent writing and syncing files to disk by checkpoints. @@ -74,20 +74,20 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asDouble: 12 + - asDouble: 16 attributes: - key: type value: stringValue: sync - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" - - asDouble: 9 + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" + - asDouble: 11 attributes: - key: type value: stringValue: write - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" isMonotonic: true unit: ms - description: Number of times the background writer stopped a cleaning scan because it had written too many buffers. @@ -96,16 +96,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" isMonotonic: true unit: '{stoppages}' - description: Configured maximum number of client connections allowed gauge: dataPoints: - asInt: "100" - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" name: postgresql.connection.max unit: '{connections}' - description: Number of user databases. @@ -114,8 +114,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1" - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" unit: '{databases}' scope: name: otelcol/postgresqlreceiver @@ -133,8 +133,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "6" - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -142,9 +142,9 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "7160324" - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + - asInt: "7193092" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -152,8 +152,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -162,8 +162,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" unit: '{table}' scope: name: otelcol/postgresqlreceiver @@ -188,57 +188,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" - asInt: "0" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" - asInt: "0" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -251,29 +251,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -286,15 +286,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -302,8 +302,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -311,8 +311,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" isMonotonic: true unit: '{vacuums}' scope: @@ -338,57 +338,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" - asInt: "0" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" - asInt: "0" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -401,29 +401,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -436,15 +436,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -452,8 +452,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -461,8 +461,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" isMonotonic: true unit: '{vacuums}' scope: @@ -487,16 +487,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" name: postgresql.index.size unit: By scope: @@ -521,16 +521,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687774006105968000" - timeUnixNano: "1687774007106985000" + startTimeUnixNano: "1687778349879322000" + timeUnixNano: "1687778350880533000" name: postgresql.index.size unit: By scope: diff --git a/receiver/postgresqlreceiver/testdata/scraper/multiple/expected.yaml b/receiver/postgresqlreceiver/testdata/scraper/multiple/expected.yaml index a3ed4c510fd8..e551991c7a61 100644 --- a/receiver/postgresqlreceiver/testdata/scraper/multiple/expected.yaml +++ b/receiver/postgresqlreceiver/testdata/scraper/multiple/expected.yaml @@ -9,8 +9,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "10" - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" isMonotonic: true unit: '{buffers}' - description: Number of buffers written. @@ -23,29 +23,29 @@ resourceMetrics: - key: source value: stringValue: backend - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "8" attributes: - key: source value: stringValue: backend_fsync - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "5" attributes: - key: source value: stringValue: bgwriter - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "9" attributes: - key: source value: stringValue: checkpoints - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" isMonotonic: true unit: '{buffers}' - description: The number of checkpoints performed. @@ -58,15 +58,15 @@ resourceMetrics: - key: type value: stringValue: requested - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "2" attributes: - key: type value: stringValue: scheduled - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" isMonotonic: true unit: '{checkpoints}' - description: Total time spent writing and syncing files to disk by checkpoints. @@ -79,15 +79,15 @@ resourceMetrics: - key: type value: stringValue: sync - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asDouble: 3.12 attributes: - key: type value: stringValue: write - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" isMonotonic: true unit: ms - description: Number of times the background writer stopped a cleaning scan because it had written too many buffers. @@ -96,16 +96,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "11" - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" isMonotonic: true unit: '{stoppages}' - description: Configured maximum number of client connections allowed gauge: dataPoints: - asInt: "100" - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" name: postgresql.connection.max unit: '{connections}' - description: Number of user databases. @@ -114,8 +114,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" unit: '{databases}' - description: The amount of data delayed in replication. gauge: @@ -125,16 +125,16 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" name: postgresql.replication.data_delay unit: By - description: Age of the oldest WAL file. gauge: dataPoints: - asInt: "3600" - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" name: postgresql.wal.age unit: s - description: Time between flushing recent WAL locally and receiving notification that the standby server has completed an operation with it. @@ -148,8 +148,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "700" attributes: - key: operation @@ -158,8 +158,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "800" attributes: - key: operation @@ -168,8 +168,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" name: postgresql.wal.lag unit: s scope: @@ -188,8 +188,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4" - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" unit: "1" - description: The number of commits. name: postgresql.commits @@ -197,8 +197,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -207,8 +207,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "5" - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -216,8 +216,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -226,8 +226,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" unit: '{table}' scope: name: otelcol/postgresqlreceiver @@ -245,8 +245,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" unit: "1" - description: The number of commits. name: postgresql.commits @@ -254,8 +254,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1" - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -264,8 +264,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4" - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -273,8 +273,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -283,8 +283,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" unit: '{table}' scope: name: otelcol/postgresqlreceiver @@ -302,8 +302,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "5" - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" unit: "1" - description: The number of commits. name: postgresql.commits @@ -311,8 +311,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -321,8 +321,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "6" - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -330,8 +330,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4" - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -340,8 +340,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" unit: '{table}' scope: name: otelcol/postgresqlreceiver @@ -366,57 +366,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "20" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "23" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "22" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "27" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "26" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "25" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "24" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -429,29 +429,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "43" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "40" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "41" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -464,15 +464,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "8" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -480,8 +480,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "44" - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -489,8 +489,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "45" - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" isMonotonic: true unit: '{vacuums}' scope: @@ -516,57 +516,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "28" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "31" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "30" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "35" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "34" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "33" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "32" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -579,29 +579,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "47" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "44" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "45" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -614,15 +614,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "10" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -630,8 +630,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "48" - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -639,8 +639,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "49" - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" isMonotonic: true unit: '{vacuums}' scope: @@ -666,57 +666,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "19" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "22" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "21" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "26" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "25" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "24" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "23" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -729,29 +729,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "42" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "39" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "40" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -764,15 +764,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "7" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -780,8 +780,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "43" - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -789,8 +789,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "44" - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" isMonotonic: true unit: '{vacuums}' scope: @@ -816,57 +816,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "27" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "30" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "29" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "34" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "33" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "32" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "31" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -879,29 +879,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "46" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "43" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "44" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -914,15 +914,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "9" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -930,8 +930,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "47" - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -939,8 +939,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "48" - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" isMonotonic: true unit: '{vacuums}' scope: @@ -966,57 +966,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "21" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "24" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "23" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "28" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "27" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "26" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "25" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -1029,29 +1029,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "44" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "41" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "42" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -1064,15 +1064,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "9" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -1080,8 +1080,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "45" - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -1089,8 +1089,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "46" - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" isMonotonic: true unit: '{vacuums}' scope: @@ -1116,57 +1116,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "29" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "32" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "31" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "36" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "35" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "34" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "33" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -1179,29 +1179,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "48" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "45" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "46" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -1214,15 +1214,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" - asInt: "11" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -1230,8 +1230,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "49" - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -1239,8 +1239,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "50" - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" isMonotonic: true unit: '{vacuums}' scope: @@ -1265,16 +1265,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "36" - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "37" - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" name: postgresql.index.size unit: By scope: @@ -1299,16 +1299,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "38" - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "39" - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" name: postgresql.index.size unit: By scope: @@ -1333,16 +1333,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "35" - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "36" - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" name: postgresql.index.size unit: By scope: @@ -1367,16 +1367,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "37" - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "38" - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" name: postgresql.index.size unit: By scope: @@ -1401,16 +1401,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "37" - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "38" - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" name: postgresql.index.size unit: By scope: @@ -1435,16 +1435,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "39" - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "40" - startTimeUnixNano: "1687773847678444000" - timeUnixNano: "1687773847678588000" + startTimeUnixNano: "1687778505124989000" + timeUnixNano: "1687778505125043000" name: postgresql.index.size unit: By scope: diff --git a/receiver/postgresqlreceiver/testdata/scraper/multiple/expected_with_resource.yaml b/receiver/postgresqlreceiver/testdata/scraper/multiple/expected_with_resource.yaml index 009ccc9d3730..6ec5d3706b15 100644 --- a/receiver/postgresqlreceiver/testdata/scraper/multiple/expected_with_resource.yaml +++ b/receiver/postgresqlreceiver/testdata/scraper/multiple/expected_with_resource.yaml @@ -9,8 +9,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "10" - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" isMonotonic: true unit: '{buffers}' - description: Number of buffers written. @@ -23,29 +23,29 @@ resourceMetrics: - key: source value: stringValue: backend - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "8" attributes: - key: source value: stringValue: backend_fsync - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "5" attributes: - key: source value: stringValue: bgwriter - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "9" attributes: - key: source value: stringValue: checkpoints - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" isMonotonic: true unit: '{buffers}' - description: The number of checkpoints performed. @@ -58,15 +58,15 @@ resourceMetrics: - key: type value: stringValue: requested - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "2" attributes: - key: type value: stringValue: scheduled - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" isMonotonic: true unit: '{checkpoints}' - description: Total time spent writing and syncing files to disk by checkpoints. @@ -79,15 +79,15 @@ resourceMetrics: - key: type value: stringValue: sync - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asDouble: 3.12 attributes: - key: type value: stringValue: write - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" isMonotonic: true unit: ms - description: Number of times the background writer stopped a cleaning scan because it had written too many buffers. @@ -96,16 +96,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "11" - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" isMonotonic: true unit: '{stoppages}' - description: Configured maximum number of client connections allowed gauge: dataPoints: - asInt: "100" - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" name: postgresql.connection.max unit: '{connections}' - description: Number of user databases. @@ -114,8 +114,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" unit: '{databases}' - description: The amount of data delayed in replication. gauge: @@ -125,16 +125,16 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" name: postgresql.replication.data_delay unit: By - description: Age of the oldest WAL file. gauge: dataPoints: - asInt: "3600" - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" name: postgresql.wal.age unit: s - description: Time between flushing recent WAL locally and receiving notification that the standby server has completed an operation with it. @@ -148,8 +148,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "700" attributes: - key: operation @@ -158,8 +158,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "800" attributes: - key: operation @@ -168,8 +168,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" name: postgresql.wal.lag unit: s scope: @@ -188,8 +188,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4" - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" unit: "1" - description: The number of commits. name: postgresql.commits @@ -197,8 +197,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -207,8 +207,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "5" - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -216,8 +216,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -226,8 +226,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" unit: '{table}' scope: name: otelcol/postgresqlreceiver @@ -245,8 +245,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" unit: "1" - description: The number of commits. name: postgresql.commits @@ -254,8 +254,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1" - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -264,8 +264,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4" - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -273,8 +273,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -283,8 +283,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" unit: '{table}' scope: name: otelcol/postgresqlreceiver @@ -302,8 +302,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "5" - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" unit: "1" - description: The number of commits. name: postgresql.commits @@ -311,8 +311,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -321,8 +321,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "6" - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -330,8 +330,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4" - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -340,8 +340,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" unit: '{table}' scope: name: otelcol/postgresqlreceiver @@ -366,57 +366,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "20" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "23" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "22" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "27" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "26" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "25" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "24" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -429,29 +429,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "43" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "40" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "41" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -464,15 +464,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "8" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -480,8 +480,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "44" - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -489,8 +489,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "45" - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" isMonotonic: true unit: '{vacuums}' scope: @@ -516,57 +516,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "28" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "31" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "30" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "35" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "34" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "33" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "32" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -579,29 +579,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "47" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "44" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "45" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -614,15 +614,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "10" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -630,8 +630,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "48" - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -639,8 +639,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "49" - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" isMonotonic: true unit: '{vacuums}' scope: @@ -666,57 +666,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "19" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "22" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "21" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "26" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "25" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "24" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "23" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -729,29 +729,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "42" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "39" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "40" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -764,15 +764,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "7" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -780,8 +780,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "43" - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -789,8 +789,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "44" - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" isMonotonic: true unit: '{vacuums}' scope: @@ -816,57 +816,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "27" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "30" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "29" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "34" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "33" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "32" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "31" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -879,29 +879,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "46" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "43" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "44" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -914,15 +914,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "9" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -930,8 +930,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "47" - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -939,8 +939,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "48" - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" isMonotonic: true unit: '{vacuums}' scope: @@ -966,57 +966,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "21" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "24" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "23" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "28" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "27" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "26" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "25" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -1029,29 +1029,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "44" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "41" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "42" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -1064,15 +1064,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "9" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -1080,8 +1080,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "45" - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -1089,8 +1089,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "46" - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" isMonotonic: true unit: '{vacuums}' scope: @@ -1116,57 +1116,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "29" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "32" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "31" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "36" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "35" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "34" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "33" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -1179,29 +1179,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "48" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "45" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "46" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -1214,15 +1214,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" - asInt: "11" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -1230,8 +1230,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "49" - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -1239,8 +1239,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "50" - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" isMonotonic: true unit: '{vacuums}' scope: @@ -1265,16 +1265,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "36" - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "37" - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" name: postgresql.index.size unit: By scope: @@ -1299,16 +1299,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "38" - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "39" - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" name: postgresql.index.size unit: By scope: @@ -1333,16 +1333,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "35" - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "36" - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" name: postgresql.index.size unit: By scope: @@ -1367,16 +1367,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "37" - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "38" - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" name: postgresql.index.size unit: By scope: @@ -1401,16 +1401,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "37" - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "38" - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" name: postgresql.index.size unit: By scope: @@ -1435,16 +1435,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "39" - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "40" - startTimeUnixNano: "1687773852170317000" - timeUnixNano: "1687773852170449000" + startTimeUnixNano: "1687778505139552000" + timeUnixNano: "1687778505139603000" name: postgresql.index.size unit: By scope: diff --git a/receiver/postgresqlreceiver/testdata/scraper/otel/expected.yaml b/receiver/postgresqlreceiver/testdata/scraper/otel/expected.yaml index 2bb4260e5784..d91184b672ec 100644 --- a/receiver/postgresqlreceiver/testdata/scraper/otel/expected.yaml +++ b/receiver/postgresqlreceiver/testdata/scraper/otel/expected.yaml @@ -9,8 +9,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "10" - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" isMonotonic: true unit: '{buffers}' - description: Number of buffers written. @@ -23,29 +23,29 @@ resourceMetrics: - key: source value: stringValue: backend - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" - asInt: "8" attributes: - key: source value: stringValue: backend_fsync - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" - asInt: "5" attributes: - key: source value: stringValue: bgwriter - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" - asInt: "9" attributes: - key: source value: stringValue: checkpoints - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" isMonotonic: true unit: '{buffers}' - description: The number of checkpoints performed. @@ -58,15 +58,15 @@ resourceMetrics: - key: type value: stringValue: requested - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" - asInt: "2" attributes: - key: type value: stringValue: scheduled - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" isMonotonic: true unit: '{checkpoints}' - description: Total time spent writing and syncing files to disk by checkpoints. @@ -79,15 +79,15 @@ resourceMetrics: - key: type value: stringValue: sync - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" - asDouble: 3.12 attributes: - key: type value: stringValue: write - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" isMonotonic: true unit: ms - description: Number of times the background writer stopped a cleaning scan because it had written too many buffers. @@ -96,16 +96,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "11" - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" isMonotonic: true unit: '{stoppages}' - description: Configured maximum number of client connections allowed gauge: dataPoints: - asInt: "100" - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" name: postgresql.connection.max unit: '{connections}' - description: Number of user databases. @@ -114,8 +114,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1" - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" unit: '{databases}' - description: The amount of data delayed in replication. gauge: @@ -125,16 +125,16 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" name: postgresql.replication.data_delay unit: By - description: Age of the oldest WAL file. gauge: dataPoints: - asInt: "3600" - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" name: postgresql.wal.age unit: s - description: Time between flushing recent WAL locally and receiving notification that the standby server has completed an operation with it. @@ -148,8 +148,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" - asInt: "700" attributes: - key: operation @@ -158,8 +158,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" - asInt: "800" attributes: - key: operation @@ -168,8 +168,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" name: postgresql.wal.lag unit: s scope: @@ -188,8 +188,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" unit: "1" - description: The number of commits. name: postgresql.commits @@ -197,8 +197,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1" - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -207,8 +207,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4" - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -216,8 +216,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -226,8 +226,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" unit: '{table}' scope: name: otelcol/postgresqlreceiver @@ -252,57 +252,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" - asInt: "19" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" - asInt: "22" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" - asInt: "21" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" - asInt: "26" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" - asInt: "25" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" - asInt: "24" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" - asInt: "23" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -315,29 +315,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" - asInt: "42" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" - asInt: "39" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" - asInt: "40" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -350,15 +350,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" - asInt: "7" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -366,8 +366,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "43" - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -375,8 +375,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "44" - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" isMonotonic: true unit: '{vacuums}' scope: @@ -402,57 +402,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" - asInt: "27" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" - asInt: "30" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" - asInt: "29" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" - asInt: "34" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" - asInt: "33" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" - asInt: "32" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" - asInt: "31" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -465,29 +465,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" - asInt: "46" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" - asInt: "43" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" - asInt: "44" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -500,15 +500,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" - asInt: "9" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -516,8 +516,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "47" - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -525,8 +525,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "48" - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" isMonotonic: true unit: '{vacuums}' scope: @@ -551,16 +551,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "35" - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "36" - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" name: postgresql.index.size unit: By scope: @@ -585,16 +585,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "37" - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "38" - startTimeUnixNano: "1687773842757408000" - timeUnixNano: "1687773842757605000" + startTimeUnixNano: "1687778505116580000" + timeUnixNano: "1687778505116743000" name: postgresql.index.size unit: By scope: diff --git a/receiver/postgresqlreceiver/testdata/scraper/otel/expected_with_resource.yaml b/receiver/postgresqlreceiver/testdata/scraper/otel/expected_with_resource.yaml index c26d584650d1..d24ac0ee423e 100644 --- a/receiver/postgresqlreceiver/testdata/scraper/otel/expected_with_resource.yaml +++ b/receiver/postgresqlreceiver/testdata/scraper/otel/expected_with_resource.yaml @@ -9,8 +9,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "10" - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" isMonotonic: true unit: '{buffers}' - description: Number of buffers written. @@ -23,29 +23,29 @@ resourceMetrics: - key: source value: stringValue: backend - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" - asInt: "8" attributes: - key: source value: stringValue: backend_fsync - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" - asInt: "5" attributes: - key: source value: stringValue: bgwriter - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" - asInt: "9" attributes: - key: source value: stringValue: checkpoints - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" isMonotonic: true unit: '{buffers}' - description: The number of checkpoints performed. @@ -58,15 +58,15 @@ resourceMetrics: - key: type value: stringValue: requested - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" - asInt: "2" attributes: - key: type value: stringValue: scheduled - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" isMonotonic: true unit: '{checkpoints}' - description: Total time spent writing and syncing files to disk by checkpoints. @@ -79,15 +79,15 @@ resourceMetrics: - key: type value: stringValue: sync - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" - asDouble: 3.12 attributes: - key: type value: stringValue: write - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" isMonotonic: true unit: ms - description: Number of times the background writer stopped a cleaning scan because it had written too many buffers. @@ -96,16 +96,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "11" - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" isMonotonic: true unit: '{stoppages}' - description: Configured maximum number of client connections allowed gauge: dataPoints: - asInt: "100" - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" name: postgresql.connection.max unit: '{connections}' - description: Number of user databases. @@ -114,8 +114,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1" - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" unit: '{databases}' - description: The amount of data delayed in replication. gauge: @@ -125,16 +125,16 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" name: postgresql.replication.data_delay unit: By - description: Age of the oldest WAL file. gauge: dataPoints: - asInt: "3600" - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" name: postgresql.wal.age unit: s - description: Time between flushing recent WAL locally and receiving notification that the standby server has completed an operation with it. @@ -148,8 +148,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" - asInt: "700" attributes: - key: operation @@ -158,8 +158,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" - asInt: "800" attributes: - key: operation @@ -168,8 +168,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" name: postgresql.wal.lag unit: s scope: @@ -188,8 +188,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" unit: "1" - description: The number of commits. name: postgresql.commits @@ -197,8 +197,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1" - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -207,8 +207,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4" - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -216,8 +216,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -226,8 +226,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" unit: '{table}' scope: name: otelcol/postgresqlreceiver @@ -252,57 +252,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" - asInt: "19" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" - asInt: "22" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" - asInt: "21" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" - asInt: "26" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" - asInt: "25" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" - asInt: "24" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" - asInt: "23" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -315,29 +315,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" - asInt: "42" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" - asInt: "39" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" - asInt: "40" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -350,15 +350,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" - asInt: "7" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -366,8 +366,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "43" - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -375,8 +375,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "44" - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" isMonotonic: true unit: '{vacuums}' scope: @@ -402,57 +402,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" - asInt: "27" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" - asInt: "30" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" - asInt: "29" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" - asInt: "34" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" - asInt: "33" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" - asInt: "32" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" - asInt: "31" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -465,29 +465,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" - asInt: "46" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" - asInt: "43" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" - asInt: "44" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -500,15 +500,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" - asInt: "9" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -516,8 +516,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "47" - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -525,8 +525,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "48" - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" isMonotonic: true unit: '{vacuums}' scope: @@ -551,16 +551,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "35" - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "36" - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" name: postgresql.index.size unit: By scope: @@ -585,16 +585,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "37" - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "38" - startTimeUnixNano: "1687773857234059000" - timeUnixNano: "1687773857234231000" + startTimeUnixNano: "1687778505152750000" + timeUnixNano: "1687778505152803000" name: postgresql.index.size unit: By scope: From b5892849d7cc4f33f2c89f0c59235ef18b231ec2 Mon Sep 17 00:00:00 2001 From: mackjmr Date: Mon, 26 Jun 2023 13:52:22 +0200 Subject: [PATCH 6/6] replace {stoppages} by default unit 1 --- receiver/postgresqlreceiver/documentation.md | 2 +- .../internal/metadata/generated_metrics.go | 2 +- .../metadata/generated_metrics_test.go | 2 +- receiver/postgresqlreceiver/metadata.yaml | 2 +- .../testdata/integration/expected_all_db.yaml | 422 ++++++------- .../integration/expected_multi_db.yaml | 396 ++++++------ .../integration/expected_single_db.yaml | 218 +++---- .../testdata/scraper/multiple/expected.yaml | 562 +++++++++--------- .../multiple/expected_with_resource.yaml | 562 +++++++++--------- .../testdata/scraper/otel/expected.yaml | 234 ++++---- .../scraper/otel/expected_with_resource.yaml | 234 ++++---- 11 files changed, 1318 insertions(+), 1318 deletions(-) diff --git a/receiver/postgresqlreceiver/documentation.md b/receiver/postgresqlreceiver/documentation.md index c11b6ace4d20..d3ad610c3742 100644 --- a/receiver/postgresqlreceiver/documentation.md +++ b/receiver/postgresqlreceiver/documentation.md @@ -82,7 +82,7 @@ Number of times the background writer stopped a cleaning scan because it had wri | Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic | | ---- | ----------- | ---------- | ----------------------- | --------- | -| {stoppages} | Sum | Int | Cumulative | true | +| 1 | Sum | Int | Cumulative | true | ### postgresql.blocks_read diff --git a/receiver/postgresqlreceiver/internal/metadata/generated_metrics.go b/receiver/postgresqlreceiver/internal/metadata/generated_metrics.go index adcf11647f15..8f325fa33ec9 100644 --- a/receiver/postgresqlreceiver/internal/metadata/generated_metrics.go +++ b/receiver/postgresqlreceiver/internal/metadata/generated_metrics.go @@ -510,7 +510,7 @@ type metricPostgresqlBgwriterMaxwritten struct { func (m *metricPostgresqlBgwriterMaxwritten) init() { m.data.SetName("postgresql.bgwriter.maxwritten") m.data.SetDescription("Number of times the background writer stopped a cleaning scan because it had written too many buffers.") - m.data.SetUnit("{stoppages}") + m.data.SetUnit("1") m.data.SetEmptySum() m.data.Sum().SetIsMonotonic(true) m.data.Sum().SetAggregationTemporality(pmetric.AggregationTemporalityCumulative) diff --git a/receiver/postgresqlreceiver/internal/metadata/generated_metrics_test.go b/receiver/postgresqlreceiver/internal/metadata/generated_metrics_test.go index 95277e81427b..5f927082ca2c 100644 --- a/receiver/postgresqlreceiver/internal/metadata/generated_metrics_test.go +++ b/receiver/postgresqlreceiver/internal/metadata/generated_metrics_test.go @@ -276,7 +276,7 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, pmetric.MetricTypeSum, ms.At(i).Type()) assert.Equal(t, 1, ms.At(i).Sum().DataPoints().Len()) assert.Equal(t, "Number of times the background writer stopped a cleaning scan because it had written too many buffers.", ms.At(i).Description()) - assert.Equal(t, "{stoppages}", ms.At(i).Unit()) + assert.Equal(t, "1", ms.At(i).Unit()) assert.Equal(t, true, ms.At(i).Sum().IsMonotonic()) assert.Equal(t, pmetric.AggregationTemporalityCumulative, ms.At(i).Sum().AggregationTemporality()) dp := ms.At(i).Sum().DataPoints().At(0) diff --git a/receiver/postgresqlreceiver/metadata.yaml b/receiver/postgresqlreceiver/metadata.yaml index 31dd43796648..e097e390eb9d 100644 --- a/receiver/postgresqlreceiver/metadata.yaml +++ b/receiver/postgresqlreceiver/metadata.yaml @@ -126,7 +126,7 @@ metrics: aggregation: cumulative monotonic: true value_type: int - unit: "{stoppages}" + unit: 1 postgresql.blocks_read: enabled: true description: The number of blocks read. diff --git a/receiver/postgresqlreceiver/testdata/integration/expected_all_db.yaml b/receiver/postgresqlreceiver/testdata/integration/expected_all_db.yaml index 16a3516ae1c6..5f1733bff9cf 100644 --- a/receiver/postgresqlreceiver/testdata/integration/expected_all_db.yaml +++ b/receiver/postgresqlreceiver/testdata/integration/expected_all_db.yaml @@ -8,9 +8,9 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "466" - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + - asInt: "477" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" isMonotonic: true unit: '{buffers}' - description: Number of buffers written. @@ -23,29 +23,29 @@ resourceMetrics: - key: source value: stringValue: backend - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "0" attributes: - key: source value: stringValue: backend_fsync - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "0" attributes: - key: source value: stringValue: bgwriter - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "60" attributes: - key: source value: stringValue: checkpoints - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" isMonotonic: true unit: '{buffers}' - description: The number of checkpoints performed. @@ -58,15 +58,15 @@ resourceMetrics: - key: type value: stringValue: requested - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "0" attributes: - key: type value: stringValue: scheduled - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" isMonotonic: true unit: '{checkpoints}' - description: Total time spent writing and syncing files to disk by checkpoints. @@ -74,20 +74,20 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asDouble: 19 + - asDouble: 23 attributes: - key: type value: stringValue: sync - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" - - asDouble: 13 + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" + - asDouble: 16 attributes: - key: type value: stringValue: write - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" isMonotonic: true unit: ms - description: Number of times the background writer stopped a cleaning scan because it had written too many buffers. @@ -96,16 +96,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" isMonotonic: true - unit: '{stoppages}' + unit: "1" - description: Configured maximum number of client connections allowed gauge: dataPoints: - asInt: "100" - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" name: postgresql.connection.max unit: '{connections}' - description: Number of user databases. @@ -114,8 +114,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" unit: '{databases}' scope: name: otelcol/postgresqlreceiver @@ -133,8 +133,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "6" - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -142,9 +142,9 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "7184900" - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + - asInt: "7176708" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -152,8 +152,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -162,8 +162,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" unit: '{table}' scope: name: otelcol/postgresqlreceiver @@ -181,8 +181,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "7" - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -190,9 +190,9 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "7225860" - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + - asInt: "7217668" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -200,8 +200,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -210,8 +210,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" unit: '{table}' scope: name: otelcol/postgresqlreceiver @@ -228,18 +228,18 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "1" - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + - asInt: "3" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" unit: "1" - description: The number of commits. name: postgresql.commits sum: aggregationTemporality: 2 dataPoints: - - asInt: "8" - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + - asInt: "6" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -247,9 +247,9 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "7240216" - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + - asInt: "7232024" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -257,8 +257,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -267,8 +267,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" unit: '{table}' scope: name: otelcol/postgresqlreceiver @@ -293,57 +293,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "0" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "0" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -356,29 +356,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -391,15 +391,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -407,8 +407,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -416,8 +416,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" isMonotonic: true unit: '{vacuums}' scope: @@ -443,57 +443,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "0" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "0" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -506,29 +506,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -541,15 +541,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -557,8 +557,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -566,8 +566,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" isMonotonic: true unit: '{vacuums}' scope: @@ -593,57 +593,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "0" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "0" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -656,29 +656,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -691,15 +691,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -707,8 +707,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -716,8 +716,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" isMonotonic: true unit: '{vacuums}' scope: @@ -743,57 +743,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "1" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "2" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "4" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "0" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -806,29 +806,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "1" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -841,15 +841,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" - asInt: "1" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -857,8 +857,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "8192" - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -866,8 +866,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" isMonotonic: true unit: '{vacuums}' scope: @@ -892,16 +892,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" name: postgresql.index.size unit: By scope: @@ -926,16 +926,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" name: postgresql.index.size unit: By scope: @@ -960,16 +960,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "16384" - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" name: postgresql.index.size unit: By scope: @@ -994,16 +994,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" name: postgresql.index.size unit: By scope: @@ -1028,16 +1028,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" name: postgresql.index.size unit: By scope: @@ -1062,16 +1062,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "16384" - startTimeUnixNano: "1687778373569247000" - timeUnixNano: "1687778374585642000" + startTimeUnixNano: "1687780273472170000" + timeUnixNano: "1687780274490198000" name: postgresql.index.size unit: By scope: diff --git a/receiver/postgresqlreceiver/testdata/integration/expected_multi_db.yaml b/receiver/postgresqlreceiver/testdata/integration/expected_multi_db.yaml index caf0bf01c279..7d73f47c0cf2 100644 --- a/receiver/postgresqlreceiver/testdata/integration/expected_multi_db.yaml +++ b/receiver/postgresqlreceiver/testdata/integration/expected_multi_db.yaml @@ -8,9 +8,9 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "581" - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + - asInt: "343" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" isMonotonic: true unit: '{buffers}' - description: Number of buffers written. @@ -23,29 +23,29 @@ resourceMetrics: - key: source value: stringValue: backend - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "0" attributes: - key: source value: stringValue: backend_fsync - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "0" attributes: - key: source value: stringValue: bgwriter - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "60" attributes: - key: source value: stringValue: checkpoints - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" isMonotonic: true unit: '{buffers}' - description: The number of checkpoints performed. @@ -58,15 +58,15 @@ resourceMetrics: - key: type value: stringValue: requested - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "0" attributes: - key: type value: stringValue: scheduled - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" isMonotonic: true unit: '{checkpoints}' - description: Total time spent writing and syncing files to disk by checkpoints. @@ -74,20 +74,20 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asDouble: 114 + - asDouble: 32 attributes: - key: type value: stringValue: sync - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" - - asDouble: 27 + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" + - asDouble: 15 attributes: - key: type value: stringValue: write - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" isMonotonic: true unit: ms - description: Number of times the background writer stopped a cleaning scan because it had written too many buffers. @@ -96,16 +96,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" isMonotonic: true - unit: '{stoppages}' + unit: "1" - description: Configured maximum number of client connections allowed gauge: dataPoints: - asInt: "100" - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" name: postgresql.connection.max unit: '{connections}' - description: Number of user databases. @@ -114,8 +114,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" unit: '{databases}' scope: name: otelcol/postgresqlreceiver @@ -133,8 +133,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "6" - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -142,9 +142,9 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "7176708" - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + - asInt: "7168516" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -152,8 +152,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -162,8 +162,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" unit: '{table}' scope: name: otelcol/postgresqlreceiver @@ -181,8 +181,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "7" - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -190,9 +190,9 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "7217668" - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + - asInt: "7209476" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -200,8 +200,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -210,8 +210,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" unit: '{table}' scope: name: otelcol/postgresqlreceiver @@ -236,57 +236,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "0" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "0" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -299,29 +299,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -334,15 +334,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -350,8 +350,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -359,8 +359,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" isMonotonic: true unit: '{vacuums}' scope: @@ -386,57 +386,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "0" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "0" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -449,29 +449,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -484,15 +484,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -500,8 +500,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -509,8 +509,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" isMonotonic: true unit: '{vacuums}' scope: @@ -536,57 +536,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "0" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "0" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -599,29 +599,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -634,15 +634,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -650,8 +650,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -659,8 +659,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" isMonotonic: true unit: '{vacuums}' scope: @@ -686,57 +686,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "1" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "2" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "4" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "0" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -749,29 +749,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "1" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -784,15 +784,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" - asInt: "1" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -800,8 +800,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "8192" - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -809,8 +809,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" isMonotonic: true unit: '{vacuums}' scope: @@ -835,16 +835,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" name: postgresql.index.size unit: By scope: @@ -869,16 +869,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" name: postgresql.index.size unit: By scope: @@ -903,16 +903,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "16384" - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" name: postgresql.index.size unit: By scope: @@ -937,16 +937,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" name: postgresql.index.size unit: By scope: @@ -971,16 +971,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" name: postgresql.index.size unit: By scope: @@ -1005,16 +1005,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "16384" - startTimeUnixNano: "1687778362561817000" - timeUnixNano: "1687778363562522000" + startTimeUnixNano: "1687780262696586000" + timeUnixNano: "1687780263696969000" name: postgresql.index.size unit: By scope: diff --git a/receiver/postgresqlreceiver/testdata/integration/expected_single_db.yaml b/receiver/postgresqlreceiver/testdata/integration/expected_single_db.yaml index bd39420591ff..18ec9825768d 100644 --- a/receiver/postgresqlreceiver/testdata/integration/expected_single_db.yaml +++ b/receiver/postgresqlreceiver/testdata/integration/expected_single_db.yaml @@ -8,9 +8,9 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "289" - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + - asInt: "452" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" isMonotonic: true unit: '{buffers}' - description: Number of buffers written. @@ -23,29 +23,29 @@ resourceMetrics: - key: source value: stringValue: backend - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" - asInt: "0" attributes: - key: source value: stringValue: backend_fsync - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" - asInt: "0" attributes: - key: source value: stringValue: bgwriter - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" - asInt: "60" attributes: - key: source value: stringValue: checkpoints - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" isMonotonic: true unit: '{buffers}' - description: The number of checkpoints performed. @@ -58,15 +58,15 @@ resourceMetrics: - key: type value: stringValue: requested - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" - asInt: "0" attributes: - key: type value: stringValue: scheduled - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" isMonotonic: true unit: '{checkpoints}' - description: Total time spent writing and syncing files to disk by checkpoints. @@ -74,20 +74,20 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asDouble: 16 + - asDouble: 31 attributes: - key: type value: stringValue: sync - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" - - asDouble: 11 + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" + - asDouble: 16 attributes: - key: type value: stringValue: write - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" isMonotonic: true unit: ms - description: Number of times the background writer stopped a cleaning scan because it had written too many buffers. @@ -96,16 +96,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" isMonotonic: true - unit: '{stoppages}' + unit: "1" - description: Configured maximum number of client connections allowed gauge: dataPoints: - asInt: "100" - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" name: postgresql.connection.max unit: '{connections}' - description: Number of user databases. @@ -114,8 +114,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1" - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" unit: '{databases}' scope: name: otelcol/postgresqlreceiver @@ -133,8 +133,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "6" - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -142,9 +142,9 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "7193092" - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + - asInt: "7184900" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -152,8 +152,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -162,8 +162,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" unit: '{table}' scope: name: otelcol/postgresqlreceiver @@ -188,57 +188,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" - asInt: "0" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" - asInt: "0" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -251,29 +251,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -286,15 +286,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -302,8 +302,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -311,8 +311,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" isMonotonic: true unit: '{vacuums}' scope: @@ -338,57 +338,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" - asInt: "0" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" - asInt: "0" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -401,29 +401,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -436,15 +436,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -452,8 +452,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -461,8 +461,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" isMonotonic: true unit: '{vacuums}' scope: @@ -487,16 +487,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" name: postgresql.index.size unit: By scope: @@ -521,16 +521,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687778349879322000" - timeUnixNano: "1687778350880533000" + startTimeUnixNano: "1687780251831660000" + timeUnixNano: "1687780252833095000" name: postgresql.index.size unit: By scope: diff --git a/receiver/postgresqlreceiver/testdata/scraper/multiple/expected.yaml b/receiver/postgresqlreceiver/testdata/scraper/multiple/expected.yaml index e551991c7a61..aa55189c1541 100644 --- a/receiver/postgresqlreceiver/testdata/scraper/multiple/expected.yaml +++ b/receiver/postgresqlreceiver/testdata/scraper/multiple/expected.yaml @@ -9,8 +9,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "10" - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" isMonotonic: true unit: '{buffers}' - description: Number of buffers written. @@ -23,29 +23,29 @@ resourceMetrics: - key: source value: stringValue: backend - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "8" attributes: - key: source value: stringValue: backend_fsync - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "5" attributes: - key: source value: stringValue: bgwriter - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "9" attributes: - key: source value: stringValue: checkpoints - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" isMonotonic: true unit: '{buffers}' - description: The number of checkpoints performed. @@ -58,15 +58,15 @@ resourceMetrics: - key: type value: stringValue: requested - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "2" attributes: - key: type value: stringValue: scheduled - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" isMonotonic: true unit: '{checkpoints}' - description: Total time spent writing and syncing files to disk by checkpoints. @@ -79,15 +79,15 @@ resourceMetrics: - key: type value: stringValue: sync - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asDouble: 3.12 attributes: - key: type value: stringValue: write - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" isMonotonic: true unit: ms - description: Number of times the background writer stopped a cleaning scan because it had written too many buffers. @@ -96,16 +96,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "11" - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" isMonotonic: true - unit: '{stoppages}' + unit: "1" - description: Configured maximum number of client connections allowed gauge: dataPoints: - asInt: "100" - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" name: postgresql.connection.max unit: '{connections}' - description: Number of user databases. @@ -114,8 +114,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" unit: '{databases}' - description: The amount of data delayed in replication. gauge: @@ -125,16 +125,16 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" name: postgresql.replication.data_delay unit: By - description: Age of the oldest WAL file. gauge: dataPoints: - asInt: "3600" - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" name: postgresql.wal.age unit: s - description: Time between flushing recent WAL locally and receiving notification that the standby server has completed an operation with it. @@ -148,8 +148,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "700" attributes: - key: operation @@ -158,8 +158,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "800" attributes: - key: operation @@ -168,8 +168,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" name: postgresql.wal.lag unit: s scope: @@ -188,8 +188,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4" - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" unit: "1" - description: The number of commits. name: postgresql.commits @@ -197,8 +197,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -207,8 +207,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "5" - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -216,8 +216,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -226,8 +226,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" unit: '{table}' scope: name: otelcol/postgresqlreceiver @@ -245,8 +245,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" unit: "1" - description: The number of commits. name: postgresql.commits @@ -254,8 +254,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1" - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -264,8 +264,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4" - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -273,8 +273,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -283,8 +283,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" unit: '{table}' scope: name: otelcol/postgresqlreceiver @@ -302,8 +302,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "5" - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" unit: "1" - description: The number of commits. name: postgresql.commits @@ -311,8 +311,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -321,8 +321,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "6" - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -330,8 +330,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4" - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -340,8 +340,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" unit: '{table}' scope: name: otelcol/postgresqlreceiver @@ -366,57 +366,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "20" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "23" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "22" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "27" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "26" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "25" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "24" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -429,29 +429,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "43" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "40" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "41" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -464,15 +464,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "8" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -480,8 +480,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "44" - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -489,8 +489,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "45" - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" isMonotonic: true unit: '{vacuums}' scope: @@ -516,57 +516,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "28" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "31" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "30" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "35" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "34" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "33" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "32" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -579,29 +579,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "47" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "44" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "45" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -614,15 +614,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "10" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -630,8 +630,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "48" - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -639,8 +639,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "49" - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" isMonotonic: true unit: '{vacuums}' scope: @@ -666,57 +666,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "19" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "22" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "21" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "26" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "25" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "24" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "23" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -729,29 +729,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "42" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "39" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "40" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -764,15 +764,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "7" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -780,8 +780,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "43" - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -789,8 +789,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "44" - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" isMonotonic: true unit: '{vacuums}' scope: @@ -816,57 +816,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "27" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "30" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "29" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "34" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "33" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "32" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "31" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -879,29 +879,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "46" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "43" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "44" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -914,15 +914,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "9" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -930,8 +930,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "47" - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -939,8 +939,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "48" - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" isMonotonic: true unit: '{vacuums}' scope: @@ -966,57 +966,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "21" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "24" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "23" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "28" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "27" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "26" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "25" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -1029,29 +1029,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "44" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "41" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "42" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -1064,15 +1064,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "9" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -1080,8 +1080,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "45" - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -1089,8 +1089,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "46" - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" isMonotonic: true unit: '{vacuums}' scope: @@ -1116,57 +1116,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "29" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "32" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "31" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "36" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "35" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "34" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "33" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -1179,29 +1179,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "48" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "45" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "46" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -1214,15 +1214,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" - asInt: "11" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -1230,8 +1230,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "49" - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -1239,8 +1239,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "50" - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" isMonotonic: true unit: '{vacuums}' scope: @@ -1265,16 +1265,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "36" - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "37" - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" name: postgresql.index.size unit: By scope: @@ -1299,16 +1299,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "38" - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "39" - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" name: postgresql.index.size unit: By scope: @@ -1333,16 +1333,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "35" - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "36" - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" name: postgresql.index.size unit: By scope: @@ -1367,16 +1367,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "37" - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "38" - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" name: postgresql.index.size unit: By scope: @@ -1401,16 +1401,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "37" - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "38" - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" name: postgresql.index.size unit: By scope: @@ -1435,16 +1435,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "39" - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "40" - startTimeUnixNano: "1687778505124989000" - timeUnixNano: "1687778505125043000" + startTimeUnixNano: "1687780218605916000" + timeUnixNano: "1687780218606035000" name: postgresql.index.size unit: By scope: diff --git a/receiver/postgresqlreceiver/testdata/scraper/multiple/expected_with_resource.yaml b/receiver/postgresqlreceiver/testdata/scraper/multiple/expected_with_resource.yaml index 6ec5d3706b15..83bcf9e7c4bc 100644 --- a/receiver/postgresqlreceiver/testdata/scraper/multiple/expected_with_resource.yaml +++ b/receiver/postgresqlreceiver/testdata/scraper/multiple/expected_with_resource.yaml @@ -9,8 +9,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "10" - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" isMonotonic: true unit: '{buffers}' - description: Number of buffers written. @@ -23,29 +23,29 @@ resourceMetrics: - key: source value: stringValue: backend - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "8" attributes: - key: source value: stringValue: backend_fsync - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "5" attributes: - key: source value: stringValue: bgwriter - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "9" attributes: - key: source value: stringValue: checkpoints - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" isMonotonic: true unit: '{buffers}' - description: The number of checkpoints performed. @@ -58,15 +58,15 @@ resourceMetrics: - key: type value: stringValue: requested - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "2" attributes: - key: type value: stringValue: scheduled - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" isMonotonic: true unit: '{checkpoints}' - description: Total time spent writing and syncing files to disk by checkpoints. @@ -79,15 +79,15 @@ resourceMetrics: - key: type value: stringValue: sync - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asDouble: 3.12 attributes: - key: type value: stringValue: write - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" isMonotonic: true unit: ms - description: Number of times the background writer stopped a cleaning scan because it had written too many buffers. @@ -96,16 +96,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "11" - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" isMonotonic: true - unit: '{stoppages}' + unit: "1" - description: Configured maximum number of client connections allowed gauge: dataPoints: - asInt: "100" - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" name: postgresql.connection.max unit: '{connections}' - description: Number of user databases. @@ -114,8 +114,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" unit: '{databases}' - description: The amount of data delayed in replication. gauge: @@ -125,16 +125,16 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" name: postgresql.replication.data_delay unit: By - description: Age of the oldest WAL file. gauge: dataPoints: - asInt: "3600" - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" name: postgresql.wal.age unit: s - description: Time between flushing recent WAL locally and receiving notification that the standby server has completed an operation with it. @@ -148,8 +148,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "700" attributes: - key: operation @@ -158,8 +158,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "800" attributes: - key: operation @@ -168,8 +168,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" name: postgresql.wal.lag unit: s scope: @@ -188,8 +188,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4" - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" unit: "1" - description: The number of commits. name: postgresql.commits @@ -197,8 +197,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -207,8 +207,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "5" - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -216,8 +216,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -226,8 +226,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" unit: '{table}' scope: name: otelcol/postgresqlreceiver @@ -245,8 +245,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" unit: "1" - description: The number of commits. name: postgresql.commits @@ -254,8 +254,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1" - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -264,8 +264,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4" - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -273,8 +273,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -283,8 +283,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" unit: '{table}' scope: name: otelcol/postgresqlreceiver @@ -302,8 +302,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "5" - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" unit: "1" - description: The number of commits. name: postgresql.commits @@ -311,8 +311,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -321,8 +321,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "6" - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -330,8 +330,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4" - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -340,8 +340,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" unit: '{table}' scope: name: otelcol/postgresqlreceiver @@ -366,57 +366,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "20" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "23" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "22" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "27" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "26" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "25" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "24" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -429,29 +429,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "43" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "40" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "41" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -464,15 +464,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "8" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -480,8 +480,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "44" - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -489,8 +489,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "45" - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" isMonotonic: true unit: '{vacuums}' scope: @@ -516,57 +516,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "28" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "31" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "30" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "35" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "34" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "33" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "32" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -579,29 +579,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "47" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "44" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "45" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -614,15 +614,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "10" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -630,8 +630,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "48" - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -639,8 +639,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "49" - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" isMonotonic: true unit: '{vacuums}' scope: @@ -666,57 +666,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "19" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "22" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "21" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "26" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "25" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "24" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "23" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -729,29 +729,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "42" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "39" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "40" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -764,15 +764,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "7" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -780,8 +780,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "43" - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -789,8 +789,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "44" - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" isMonotonic: true unit: '{vacuums}' scope: @@ -816,57 +816,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "27" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "30" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "29" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "34" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "33" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "32" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "31" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -879,29 +879,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "46" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "43" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "44" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -914,15 +914,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "9" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -930,8 +930,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "47" - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -939,8 +939,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "48" - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" isMonotonic: true unit: '{vacuums}' scope: @@ -966,57 +966,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "21" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "24" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "23" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "28" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "27" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "26" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "25" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -1029,29 +1029,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "44" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "41" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "42" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -1064,15 +1064,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "9" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -1080,8 +1080,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "45" - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -1089,8 +1089,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "46" - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" isMonotonic: true unit: '{vacuums}' scope: @@ -1116,57 +1116,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "29" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "32" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "31" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "36" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "35" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "34" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "33" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -1179,29 +1179,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "48" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "45" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "46" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -1214,15 +1214,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" - asInt: "11" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -1230,8 +1230,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "49" - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -1239,8 +1239,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "50" - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" isMonotonic: true unit: '{vacuums}' scope: @@ -1265,16 +1265,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "36" - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "37" - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" name: postgresql.index.size unit: By scope: @@ -1299,16 +1299,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "38" - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "39" - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" name: postgresql.index.size unit: By scope: @@ -1333,16 +1333,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "35" - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "36" - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" name: postgresql.index.size unit: By scope: @@ -1367,16 +1367,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "37" - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "38" - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" name: postgresql.index.size unit: By scope: @@ -1401,16 +1401,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "37" - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "38" - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" name: postgresql.index.size unit: By scope: @@ -1435,16 +1435,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "39" - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "40" - startTimeUnixNano: "1687778505139552000" - timeUnixNano: "1687778505139603000" + startTimeUnixNano: "1687780221131489000" + timeUnixNano: "1687780221131628000" name: postgresql.index.size unit: By scope: diff --git a/receiver/postgresqlreceiver/testdata/scraper/otel/expected.yaml b/receiver/postgresqlreceiver/testdata/scraper/otel/expected.yaml index d91184b672ec..258c25414ea1 100644 --- a/receiver/postgresqlreceiver/testdata/scraper/otel/expected.yaml +++ b/receiver/postgresqlreceiver/testdata/scraper/otel/expected.yaml @@ -9,8 +9,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "10" - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" isMonotonic: true unit: '{buffers}' - description: Number of buffers written. @@ -23,29 +23,29 @@ resourceMetrics: - key: source value: stringValue: backend - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" - asInt: "8" attributes: - key: source value: stringValue: backend_fsync - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" - asInt: "5" attributes: - key: source value: stringValue: bgwriter - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" - asInt: "9" attributes: - key: source value: stringValue: checkpoints - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" isMonotonic: true unit: '{buffers}' - description: The number of checkpoints performed. @@ -58,15 +58,15 @@ resourceMetrics: - key: type value: stringValue: requested - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" - asInt: "2" attributes: - key: type value: stringValue: scheduled - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" isMonotonic: true unit: '{checkpoints}' - description: Total time spent writing and syncing files to disk by checkpoints. @@ -79,15 +79,15 @@ resourceMetrics: - key: type value: stringValue: sync - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" - asDouble: 3.12 attributes: - key: type value: stringValue: write - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" isMonotonic: true unit: ms - description: Number of times the background writer stopped a cleaning scan because it had written too many buffers. @@ -96,16 +96,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "11" - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" isMonotonic: true - unit: '{stoppages}' + unit: "1" - description: Configured maximum number of client connections allowed gauge: dataPoints: - asInt: "100" - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" name: postgresql.connection.max unit: '{connections}' - description: Number of user databases. @@ -114,8 +114,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1" - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" unit: '{databases}' - description: The amount of data delayed in replication. gauge: @@ -125,16 +125,16 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" name: postgresql.replication.data_delay unit: By - description: Age of the oldest WAL file. gauge: dataPoints: - asInt: "3600" - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" name: postgresql.wal.age unit: s - description: Time between flushing recent WAL locally and receiving notification that the standby server has completed an operation with it. @@ -148,8 +148,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" - asInt: "700" attributes: - key: operation @@ -158,8 +158,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" - asInt: "800" attributes: - key: operation @@ -168,8 +168,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" name: postgresql.wal.lag unit: s scope: @@ -188,8 +188,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" unit: "1" - description: The number of commits. name: postgresql.commits @@ -197,8 +197,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1" - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -207,8 +207,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4" - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -216,8 +216,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -226,8 +226,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" unit: '{table}' scope: name: otelcol/postgresqlreceiver @@ -252,57 +252,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" - asInt: "19" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" - asInt: "22" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" - asInt: "21" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" - asInt: "26" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" - asInt: "25" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" - asInt: "24" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" - asInt: "23" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -315,29 +315,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" - asInt: "42" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" - asInt: "39" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" - asInt: "40" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -350,15 +350,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" - asInt: "7" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -366,8 +366,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "43" - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -375,8 +375,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "44" - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" isMonotonic: true unit: '{vacuums}' scope: @@ -402,57 +402,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" - asInt: "27" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" - asInt: "30" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" - asInt: "29" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" - asInt: "34" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" - asInt: "33" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" - asInt: "32" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" - asInt: "31" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -465,29 +465,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" - asInt: "46" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" - asInt: "43" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" - asInt: "44" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -500,15 +500,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" - asInt: "9" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -516,8 +516,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "47" - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -525,8 +525,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "48" - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" isMonotonic: true unit: '{vacuums}' scope: @@ -551,16 +551,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "35" - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "36" - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" name: postgresql.index.size unit: By scope: @@ -585,16 +585,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "37" - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "38" - startTimeUnixNano: "1687778505116580000" - timeUnixNano: "1687778505116743000" + startTimeUnixNano: "1687780216457686000" + timeUnixNano: "1687780216457879000" name: postgresql.index.size unit: By scope: diff --git a/receiver/postgresqlreceiver/testdata/scraper/otel/expected_with_resource.yaml b/receiver/postgresqlreceiver/testdata/scraper/otel/expected_with_resource.yaml index d24ac0ee423e..14329a7fe5a6 100644 --- a/receiver/postgresqlreceiver/testdata/scraper/otel/expected_with_resource.yaml +++ b/receiver/postgresqlreceiver/testdata/scraper/otel/expected_with_resource.yaml @@ -9,8 +9,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "10" - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" isMonotonic: true unit: '{buffers}' - description: Number of buffers written. @@ -23,29 +23,29 @@ resourceMetrics: - key: source value: stringValue: backend - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" - asInt: "8" attributes: - key: source value: stringValue: backend_fsync - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" - asInt: "5" attributes: - key: source value: stringValue: bgwriter - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" - asInt: "9" attributes: - key: source value: stringValue: checkpoints - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" isMonotonic: true unit: '{buffers}' - description: The number of checkpoints performed. @@ -58,15 +58,15 @@ resourceMetrics: - key: type value: stringValue: requested - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" - asInt: "2" attributes: - key: type value: stringValue: scheduled - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" isMonotonic: true unit: '{checkpoints}' - description: Total time spent writing and syncing files to disk by checkpoints. @@ -79,15 +79,15 @@ resourceMetrics: - key: type value: stringValue: sync - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" - asDouble: 3.12 attributes: - key: type value: stringValue: write - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" isMonotonic: true unit: ms - description: Number of times the background writer stopped a cleaning scan because it had written too many buffers. @@ -96,16 +96,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "11" - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" isMonotonic: true - unit: '{stoppages}' + unit: "1" - description: Configured maximum number of client connections allowed gauge: dataPoints: - asInt: "100" - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" name: postgresql.connection.max unit: '{connections}' - description: Number of user databases. @@ -114,8 +114,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1" - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" unit: '{databases}' - description: The amount of data delayed in replication. gauge: @@ -125,16 +125,16 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" name: postgresql.replication.data_delay unit: By - description: Age of the oldest WAL file. gauge: dataPoints: - asInt: "3600" - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" name: postgresql.wal.age unit: s - description: Time between flushing recent WAL locally and receiving notification that the standby server has completed an operation with it. @@ -148,8 +148,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" - asInt: "700" attributes: - key: operation @@ -158,8 +158,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" - asInt: "800" attributes: - key: operation @@ -168,8 +168,8 @@ resourceMetrics: - key: replication_client value: stringValue: unix - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" name: postgresql.wal.lag unit: s scope: @@ -188,8 +188,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" unit: "1" - description: The number of commits. name: postgresql.commits @@ -197,8 +197,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1" - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -207,8 +207,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "4" - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" unit: By - description: The number of rollbacks. name: postgresql.rollbacks @@ -216,8 +216,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -226,8 +226,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" unit: '{table}' scope: name: otelcol/postgresqlreceiver @@ -252,57 +252,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" - asInt: "19" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" - asInt: "22" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" - asInt: "21" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" - asInt: "26" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" - asInt: "25" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" - asInt: "24" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" - asInt: "23" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -315,29 +315,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" - asInt: "42" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" - asInt: "39" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" - asInt: "40" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -350,15 +350,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" - asInt: "7" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -366,8 +366,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "43" - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -375,8 +375,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "44" - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" isMonotonic: true unit: '{vacuums}' scope: @@ -402,57 +402,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" - asInt: "27" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" - asInt: "30" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" - asInt: "29" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" - asInt: "34" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" - asInt: "33" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" - asInt: "32" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" - asInt: "31" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -465,29 +465,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" - asInt: "46" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" - asInt: "43" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" - asInt: "44" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -500,15 +500,15 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" - asInt: "9" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" unit: "1" - description: Disk space used by a table. name: postgresql.table.size @@ -516,8 +516,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "47" - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -525,8 +525,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "48" - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" isMonotonic: true unit: '{vacuums}' scope: @@ -551,16 +551,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "35" - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "36" - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" name: postgresql.index.size unit: By scope: @@ -585,16 +585,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "37" - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "38" - startTimeUnixNano: "1687778505152750000" - timeUnixNano: "1687778505152803000" + startTimeUnixNano: "1687780223205928000" + timeUnixNano: "1687780223206028000" name: postgresql.index.size unit: By scope: