From 3965f43baacc43cbb4904dbd2cea444a81510ef1 Mon Sep 17 00:00:00 2001 From: Dan Jaglowski Date: Tue, 13 Feb 2024 09:46:47 -0600 Subject: [PATCH] [receiver/postgresql] Bump postgresqlreceiver.preciselagmetrics gate to beta --- .chloggen/featuregate-postgresql-lag.yaml | 28 + receiver/postgresqlreceiver/client.go | 2 +- .../postgresqlreceiver/integration_test.go | 1 + receiver/postgresqlreceiver/scraper_test.go | 76 ++- .../testdata/integration/expected_all_db.yaml | 543 +++++++++-------- .../expected_all_db_schemaattr.yaml | 545 +++++++++--------- .../integration/expected_multi_db.yaml | 513 ++++++++--------- .../expected_multi_db_schemaattr.yaml | 513 ++++++++--------- .../integration/expected_single_db.yaml | 305 +++++----- .../expected_single_db_schemaattr.yaml | 305 +++++----- .../testdata/scraper/multiple/exclude.yaml | 35 -- .../scraper/multiple/exclude_schemaattr.yaml | 35 -- .../testdata/scraper/multiple/expected.yaml | 52 +- ...e_lag.yaml => expected_imprecise_lag.yaml} | 52 +- ...=> expected_imprecise_lag_schemaattr.yaml} | 52 +- .../scraper/multiple/expected_schemaattr.yaml | 52 +- .../testdata/scraper/otel/expected.yaml | 40 +- .../otel/expected_default_metrics.yaml | 35 -- .../expected_default_metrics_schemaattr.yaml | 35 -- .../scraper/otel/expected_schemaattr.yaml | 40 +- 20 files changed, 1580 insertions(+), 1679 deletions(-) create mode 100755 .chloggen/featuregate-postgresql-lag.yaml rename receiver/postgresqlreceiver/testdata/scraper/multiple/{expected_precise_lag.yaml => expected_imprecise_lag.yaml} (98%) rename receiver/postgresqlreceiver/testdata/scraper/multiple/{expected_precise_lag_schemaattr.yaml => expected_imprecise_lag_schemaattr.yaml} (98%) diff --git a/.chloggen/featuregate-postgresql-lag.yaml b/.chloggen/featuregate-postgresql-lag.yaml new file mode 100755 index 000000000000..4795900bdfc6 --- /dev/null +++ b/.chloggen/featuregate-postgresql-lag.yaml @@ -0,0 +1,28 @@ +# Use this changelog template to create an entry for release notes. + +# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' +change_type: breaking + +# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver) +component: receiver/postgresql + +# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). +note: Bump postgresqlreceiver.preciselagmetrics gate to beta + + +# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists. +issues: [31220] + +# (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: + +# If your change doesn't affect end users or the exported elements of any package, +# you should instead start your pull request title with [chore] or use the "Skip Changelog" label. +# Optional: The change log or logs in which this entry should be included. +# e.g. '[user]' or '[user, api]' +# Include 'user' if the change is relevant to end users. +# Include 'api' if there is a change to a library API. +# Default: '[user]' +change_logs: [] diff --git a/receiver/postgresqlreceiver/client.go b/receiver/postgresqlreceiver/client.go index 67c319f9dae9..c8f97e31df15 100644 --- a/receiver/postgresqlreceiver/client.go +++ b/receiver/postgresqlreceiver/client.go @@ -23,7 +23,7 @@ const lagMetricsInSecondsFeatureGateID = "postgresqlreceiver.preciselagmetrics" var preciseLagMetricsFg = featuregate.GlobalRegistry().MustRegister( lagMetricsInSecondsFeatureGateID, - featuregate.StageAlpha, + featuregate.StageBeta, featuregate.WithRegisterDescription("Metric `postgresql.wal.lag` is replaced by more precise `postgresql.wal.delay`."), featuregate.WithRegisterFromVersion("0.89.0"), ) diff --git a/receiver/postgresqlreceiver/integration_test.go b/receiver/postgresqlreceiver/integration_test.go index fbf168c36c78..2ef401664525 100644 --- a/receiver/postgresqlreceiver/integration_test.go +++ b/receiver/postgresqlreceiver/integration_test.go @@ -66,6 +66,7 @@ func integrationTest(name string, databases []string) func(*testing.T) { rCfg.Username = "otelu" rCfg.Password = "otelp" rCfg.Insecure = true + rCfg.Metrics.PostgresqlWalDelay.Enabled = true rCfg.Metrics.PostgresqlDeadlocks.Enabled = true rCfg.Metrics.PostgresqlTempFiles.Enabled = true rCfg.Metrics.PostgresqlSequentialScans.Enabled = true diff --git a/receiver/postgresqlreceiver/scraper_test.go b/receiver/postgresqlreceiver/scraper_test.go index 814a0fd55638..276d82b8f6fe 100644 --- a/receiver/postgresqlreceiver/scraper_test.go +++ b/receiver/postgresqlreceiver/scraper_test.go @@ -41,6 +41,7 @@ func TestScraper(t *testing.T) { cfg := createDefaultConfig().(*Config) cfg.Databases = []string{"otel"} + cfg.Metrics.PostgresqlWalDelay.Enabled = true cfg.Metrics.PostgresqlDeadlocks.Enabled = true cfg.Metrics.PostgresqlTempFiles.Enabled = true cfg.Metrics.PostgresqlSequentialScans.Enabled = true @@ -71,13 +72,17 @@ func TestScraperNoDatabaseSingle(t *testing.T) { defer testutil.SetFeatureGateForTest(t, separateSchemaAttrGate, separateSchemaAttr)() cfg := createDefaultConfig().(*Config) - require.True(t, cfg.Metrics.PostgresqlDeadlocks.Enabled == false) + + // Validate expected default config values and then enable all metrics + require.False(t, cfg.Metrics.PostgresqlWalDelay.Enabled) + cfg.Metrics.PostgresqlWalDelay.Enabled = true + require.False(t, cfg.Metrics.PostgresqlDeadlocks.Enabled) cfg.Metrics.PostgresqlDeadlocks.Enabled = true - require.True(t, cfg.Metrics.PostgresqlTempFiles.Enabled == false) + require.False(t, cfg.Metrics.PostgresqlTempFiles.Enabled) cfg.Metrics.PostgresqlTempFiles.Enabled = true - require.True(t, cfg.Metrics.PostgresqlSequentialScans.Enabled == false) + require.False(t, cfg.Metrics.PostgresqlSequentialScans.Enabled) cfg.Metrics.PostgresqlSequentialScans.Enabled = true - require.True(t, cfg.Metrics.PostgresqlDatabaseLocks.Enabled == false) + require.False(t, cfg.Metrics.PostgresqlDatabaseLocks.Enabled) cfg.Metrics.PostgresqlDatabaseLocks.Enabled = true scraper := newPostgreSQLScraper(receivertest.NewNopCreateSettings(), cfg, factory) @@ -91,6 +96,7 @@ func TestScraperNoDatabaseSingle(t *testing.T) { require.NoError(t, pmetrictest.CompareMetrics(expectedMetrics, actualMetrics, pmetrictest.IgnoreResourceMetricsOrder(), pmetrictest.IgnoreMetricDataPointsOrder(), pmetrictest.IgnoreStartTimestamp(), pmetrictest.IgnoreTimestamp())) + cfg.Metrics.PostgresqlWalDelay.Enabled = false cfg.Metrics.PostgresqlDeadlocks.Enabled = false cfg.Metrics.PostgresqlTempFiles.Enabled = false cfg.Metrics.PostgresqlSequentialScans.Enabled = false @@ -112,21 +118,25 @@ func TestScraperNoDatabaseSingle(t *testing.T) { runTest(false, "expected.yaml", "expected_default_metrics.yaml") } -func TestScraperNoDatabaseMultiple(t *testing.T) { +func TestScraperNoDatabaseMultipleWithoutPreciseLag(t *testing.T) { factory := mockClientFactory{} factory.initMocks([]string{"otel", "open", "telemetry"}) runTest := func(separateSchemaAttr bool, file string) { defer testutil.SetFeatureGateForTest(t, separateSchemaAttrGate, separateSchemaAttr)() + defer testutil.SetFeatureGateForTest(t, preciseLagMetricsFg, false)() cfg := createDefaultConfig().(*Config) - require.True(t, cfg.Metrics.PostgresqlDeadlocks.Enabled == false) + + // Validate expected default config values and then enable all metrics except wal delay + require.False(t, cfg.Metrics.PostgresqlWalDelay.Enabled) + require.False(t, cfg.Metrics.PostgresqlDeadlocks.Enabled) cfg.Metrics.PostgresqlDeadlocks.Enabled = true - require.True(t, cfg.Metrics.PostgresqlTempFiles.Enabled == false) + require.False(t, cfg.Metrics.PostgresqlTempFiles.Enabled) cfg.Metrics.PostgresqlTempFiles.Enabled = true - require.True(t, cfg.Metrics.PostgresqlSequentialScans.Enabled == false) + require.False(t, cfg.Metrics.PostgresqlSequentialScans.Enabled) cfg.Metrics.PostgresqlSequentialScans.Enabled = true - require.True(t, cfg.Metrics.PostgresqlDatabaseLocks.Enabled == false) + require.False(t, cfg.Metrics.PostgresqlDatabaseLocks.Enabled) cfg.Metrics.PostgresqlDatabaseLocks.Enabled = true scraper := newPostgreSQLScraper(receivertest.NewNopCreateSettings(), cfg, &factory) @@ -141,11 +151,11 @@ func TestScraperNoDatabaseMultiple(t *testing.T) { pmetrictest.IgnoreMetricDataPointsOrder(), pmetrictest.IgnoreStartTimestamp(), pmetrictest.IgnoreTimestamp())) } - runTest(true, "expected_schemaattr.yaml") - runTest(false, "expected.yaml") + runTest(true, "expected_imprecise_lag_schemaattr.yaml") + runTest(false, "expected_imprecise_lag.yaml") } -func TestScraperNoDatabaseMultipleWithPreciseLagFeatureGate(t *testing.T) { +func TestScraperNoDatabaseMultiple(t *testing.T) { factory := mockClientFactory{} factory.initMocks([]string{"otel", "open", "telemetry"}) @@ -154,17 +164,16 @@ func TestScraperNoDatabaseMultipleWithPreciseLagFeatureGate(t *testing.T) { cfg := createDefaultConfig().(*Config) - testutil.SetFeatureGateForTest(t, preciseLagMetricsFg, true) + // Validate expected default config values and then enable all metrics + require.False(t, cfg.Metrics.PostgresqlWalDelay.Enabled) cfg.Metrics.PostgresqlWalDelay.Enabled = true - defer testutil.SetFeatureGateForTest(t, preciseLagMetricsFg, false) - - require.True(t, cfg.Metrics.PostgresqlDeadlocks.Enabled == false) + require.False(t, cfg.Metrics.PostgresqlDeadlocks.Enabled) cfg.Metrics.PostgresqlDeadlocks.Enabled = true - require.True(t, cfg.Metrics.PostgresqlTempFiles.Enabled == false) + require.False(t, cfg.Metrics.PostgresqlTempFiles.Enabled) cfg.Metrics.PostgresqlTempFiles.Enabled = true - require.True(t, cfg.Metrics.PostgresqlSequentialScans.Enabled == false) + require.False(t, cfg.Metrics.PostgresqlSequentialScans.Enabled) cfg.Metrics.PostgresqlSequentialScans.Enabled = true - require.True(t, cfg.Metrics.PostgresqlDatabaseLocks.Enabled == false) + require.False(t, cfg.Metrics.PostgresqlDatabaseLocks.Enabled) cfg.Metrics.PostgresqlDatabaseLocks.Enabled = true scraper := newPostgreSQLScraper(receivertest.NewNopCreateSettings(), cfg, &factory) @@ -179,8 +188,8 @@ func TestScraperNoDatabaseMultipleWithPreciseLagFeatureGate(t *testing.T) { pmetrictest.IgnoreMetricDataPointsOrder(), pmetrictest.IgnoreStartTimestamp(), pmetrictest.IgnoreTimestamp())) } - runTest(true, "expected_precise_lag_schemaattr.yaml") - runTest(false, "expected_precise_lag.yaml") + runTest(true, "expected_schemaattr.yaml") + runTest(false, "expected.yaml") } func TestScraperWithResourceAttributeFeatureGate(t *testing.T) { @@ -191,14 +200,19 @@ func TestScraperWithResourceAttributeFeatureGate(t *testing.T) { defer testutil.SetFeatureGateForTest(t, separateSchemaAttrGate, separateSchemaAttr)() cfg := createDefaultConfig().(*Config) - require.True(t, cfg.Metrics.PostgresqlDeadlocks.Enabled == false) + + // Validate expected default config values and then enable all metrics + require.False(t, cfg.Metrics.PostgresqlWalDelay.Enabled) + cfg.Metrics.PostgresqlWalDelay.Enabled = true + require.False(t, cfg.Metrics.PostgresqlDeadlocks.Enabled) cfg.Metrics.PostgresqlDeadlocks.Enabled = true - require.True(t, cfg.Metrics.PostgresqlTempFiles.Enabled == false) + require.False(t, cfg.Metrics.PostgresqlTempFiles.Enabled) cfg.Metrics.PostgresqlTempFiles.Enabled = true - require.True(t, cfg.Metrics.PostgresqlSequentialScans.Enabled == false) + require.False(t, cfg.Metrics.PostgresqlSequentialScans.Enabled) cfg.Metrics.PostgresqlSequentialScans.Enabled = true - require.True(t, cfg.Metrics.PostgresqlDatabaseLocks.Enabled == false) + require.False(t, cfg.Metrics.PostgresqlDatabaseLocks.Enabled) cfg.Metrics.PostgresqlDatabaseLocks.Enabled = true + scraper := newPostgreSQLScraper(receivertest.NewNopCreateSettings(), cfg, &factory) actualMetrics, err := scraper.scrape(context.Background()) @@ -224,13 +238,17 @@ func TestScraperWithResourceAttributeFeatureGateSingle(t *testing.T) { defer testutil.SetFeatureGateForTest(t, separateSchemaAttrGate, separateSchemaAttr)() cfg := createDefaultConfig().(*Config) - require.True(t, cfg.Metrics.PostgresqlDeadlocks.Enabled == false) + + // Validate expected default config values and then enable all metrics + require.False(t, cfg.Metrics.PostgresqlWalDelay.Enabled) + cfg.Metrics.PostgresqlWalDelay.Enabled = true + require.False(t, cfg.Metrics.PostgresqlDeadlocks.Enabled) cfg.Metrics.PostgresqlDeadlocks.Enabled = true - require.True(t, cfg.Metrics.PostgresqlTempFiles.Enabled == false) + require.False(t, cfg.Metrics.PostgresqlTempFiles.Enabled) cfg.Metrics.PostgresqlTempFiles.Enabled = true - require.True(t, cfg.Metrics.PostgresqlSequentialScans.Enabled == false) + require.False(t, cfg.Metrics.PostgresqlSequentialScans.Enabled) cfg.Metrics.PostgresqlSequentialScans.Enabled = true - require.True(t, cfg.Metrics.PostgresqlDatabaseLocks.Enabled == false) + require.False(t, cfg.Metrics.PostgresqlDatabaseLocks.Enabled) cfg.Metrics.PostgresqlDatabaseLocks.Enabled = true scraper := newPostgreSQLScraper(receivertest.NewNopCreateSettings(), cfg, &factory) diff --git a/receiver/postgresqlreceiver/testdata/integration/expected_all_db.yaml b/receiver/postgresqlreceiver/testdata/integration/expected_all_db.yaml index 6a664fdf0bbc..d39dca57e545 100644 --- a/receiver/postgresqlreceiver/testdata/integration/expected_all_db.yaml +++ b/receiver/postgresqlreceiver/testdata/integration/expected_all_db.yaml @@ -1,6 +1,5 @@ resourceMetrics: - - resource: - attributes: [] + - resource: {} scopeMetrics: - metrics: - description: Number of buffers allocated. @@ -8,9 +7,9 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "477" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + - asInt: "347" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{buffers}' - description: Number of buffers written. @@ -23,29 +22,29 @@ resourceMetrics: - key: source value: stringValue: backend - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: backend_fsync - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: bgwriter - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "60" attributes: - key: source value: stringValue: checkpoints - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{buffers}' - description: The number of checkpoints performed. @@ -58,15 +57,15 @@ resourceMetrics: - key: type value: stringValue: requested - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: type value: stringValue: scheduled - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{checkpoints}' - description: Total time spent writing and syncing files to disk by checkpoints. @@ -74,20 +73,20 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asDouble: 23 + - asDouble: 11 attributes: - key: type value: stringValue: sync - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" - - asDouble: 16 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asDouble: 6 attributes: - key: type value: stringValue: write - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: ms - description: Number of times the background writer stopped a cleaning scan because it had written too many buffers. @@ -96,16 +95,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: Configured maximum number of client connections allowed gauge: dataPoints: - asInt: "100" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" name: postgresql.connection.max unit: '{connections}' - description: Number of user databases. @@ -114,77 +113,77 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: '{databases}' - description: The number of database locks. gauge: dataPoints: - asInt: "1" attributes: - - key: relation + - key: lock_type value: - stringValue: pg_class_relname_nsp_index + stringValue: relation - key: mode value: stringValue: AccessShareLock - - key: lock_type + - key: relation value: - stringValue: relation - startTimeUnixNano: "1693418281967464598" - timeUnixNano: "1693418340968890176" + stringValue: pg_class + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "1" attributes: - - key: relation + - key: lock_type value: - stringValue: pg_class_tblspc_relfilenode_index + stringValue: relation - key: mode value: stringValue: AccessShareLock - - key: lock_type + - key: relation value: - stringValue: relation - startTimeUnixNano: "1693418281967464598" - timeUnixNano: "1693418340968890176" + stringValue: pg_class_oid_index + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "1" attributes: - - key: relation + - key: lock_type value: - stringValue: pg_locks + stringValue: relation - key: mode value: stringValue: AccessShareLock - - key: lock_type + - key: relation value: - stringValue: relation - startTimeUnixNano: "1693418281967464598" - timeUnixNano: "1693418340968890176" + stringValue: pg_class_relname_nsp_index + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "1" attributes: - - key: relation + - key: lock_type value: - stringValue: pg_class + stringValue: relation - key: mode value: stringValue: AccessShareLock - - key: lock_type + - key: relation value: - stringValue: relation - startTimeUnixNano: "1693418281967464598" - timeUnixNano: "1693418340968890176" + stringValue: pg_class_tblspc_relfilenode_index + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "1" attributes: - - key: relation + - key: lock_type value: - stringValue: pg_class_oid_index + stringValue: relation - key: mode value: stringValue: AccessShareLock - - key: lock_type + - key: relation value: - stringValue: relation - startTimeUnixNano: "1693418281967464598" - timeUnixNano: "1693418340968890176" + stringValue: pg_locks + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" name: postgresql.database.locks unit: '{lock}' scope: @@ -203,8 +202,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "6" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -213,8 +212,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "7176708" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: By - description: The number of deadlocks. name: postgresql.deadlocks @@ -222,18 +221,18 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true - unit: "{deadlock}" + unit: '{deadlock}' - description: The number of rollbacks. name: postgresql.rollbacks sum: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -242,8 +241,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: '{table}' - description: The number of temp files. name: postgresql.temp_files @@ -251,10 +250,10 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true - unit: "{temp_file}" + unit: '{temp_file}' scope: name: otelcol/postgresqlreceiver version: latest @@ -271,8 +270,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "7" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -281,8 +280,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "7217668" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: By - description: The number of deadlocks. name: postgresql.deadlocks @@ -290,18 +289,18 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true - unit: "{deadlock}" + unit: '{deadlock}' - description: The number of rollbacks. name: postgresql.rollbacks sum: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -310,8 +309,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: '{table}' - description: The number of temp files. name: postgresql.temp_files @@ -319,10 +318,10 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true - unit: "{temp_file}" + unit: '{temp_file}' scope: name: otelcol/postgresqlreceiver version: latest @@ -339,17 +338,17 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: "1" - description: The number of commits. name: postgresql.commits sum: aggregationTemporality: 2 dataPoints: - - asInt: "6" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + - asInt: "8" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -358,8 +357,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "7232024" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: By - description: The number of deadlocks. name: postgresql.deadlocks @@ -367,18 +366,18 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true - unit: "{deadlock}" + unit: '{deadlock}' - description: The number of rollbacks. name: postgresql.rollbacks sum: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -387,8 +386,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: '{table}' - description: The number of temp files. name: postgresql.temp_files @@ -396,10 +395,10 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true - unit: "{temp_file}" + unit: '{temp_file}' scope: name: otelcol/postgresqlreceiver version: latest @@ -423,57 +422,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -486,29 +485,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -521,34 +520,34 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: "1" - description: The number of sequential scans. name: postgresql.sequential_scans sum: aggregationTemporality: 2 dataPoints: - - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + - asInt: "1" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -556,8 +555,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{vacuums}' scope: @@ -583,57 +582,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -646,29 +645,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -681,34 +680,34 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: "1" - description: The number of sequential scans. name: postgresql.sequential_scans sum: aggregationTemporality: 2 dataPoints: - - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + - asInt: "1" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -716,8 +715,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{vacuums}' scope: @@ -743,57 +742,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -806,29 +805,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -841,34 +840,34 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: "1" - description: The number of sequential scans. name: postgresql.sequential_scans sum: aggregationTemporality: 2 dataPoints: - - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + - asInt: "2" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -876,8 +875,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{vacuums}' scope: @@ -903,57 +902,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "1" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "2" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "4" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -966,29 +965,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "1" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -1001,34 +1000,34 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "1" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: "1" - description: The number of sequential scans. name: postgresql.sequential_scans sum: aggregationTemporality: 2 dataPoints: - - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + - asInt: "3" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: aggregationTemporality: 2 dataPoints: - asInt: "8192" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -1036,8 +1035,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{vacuums}' scope: @@ -1062,16 +1061,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" name: postgresql.index.size unit: By scope: @@ -1096,16 +1095,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" name: postgresql.index.size unit: By scope: @@ -1130,16 +1129,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "16384" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" name: postgresql.index.size unit: By scope: @@ -1164,16 +1163,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" name: postgresql.index.size unit: By scope: @@ -1198,16 +1197,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" name: postgresql.index.size unit: By scope: @@ -1232,16 +1231,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "16384" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" name: postgresql.index.size unit: By scope: diff --git a/receiver/postgresqlreceiver/testdata/integration/expected_all_db_schemaattr.yaml b/receiver/postgresqlreceiver/testdata/integration/expected_all_db_schemaattr.yaml index c44689ca294b..5e95ffe2050d 100644 --- a/receiver/postgresqlreceiver/testdata/integration/expected_all_db_schemaattr.yaml +++ b/receiver/postgresqlreceiver/testdata/integration/expected_all_db_schemaattr.yaml @@ -1,6 +1,5 @@ resourceMetrics: - - resource: - attributes: [] + - resource: {} scopeMetrics: - metrics: - description: Number of buffers allocated. @@ -8,9 +7,9 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "477" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + - asInt: "627" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{buffers}' - description: Number of buffers written. @@ -23,29 +22,29 @@ resourceMetrics: - key: source value: stringValue: backend - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: backend_fsync - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: bgwriter - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "60" attributes: - key: source value: stringValue: checkpoints - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{buffers}' - description: The number of checkpoints performed. @@ -58,15 +57,15 @@ resourceMetrics: - key: type value: stringValue: requested - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: type value: stringValue: scheduled - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{checkpoints}' - description: Total time spent writing and syncing files to disk by checkpoints. @@ -74,20 +73,20 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asDouble: 23 + - asDouble: 7 attributes: - key: type value: stringValue: sync - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" - - asDouble: 16 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asDouble: 5 attributes: - key: type value: stringValue: write - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: ms - description: Number of times the background writer stopped a cleaning scan because it had written too many buffers. @@ -96,16 +95,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: Configured maximum number of client connections allowed gauge: dataPoints: - asInt: "100" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" name: postgresql.connection.max unit: '{connections}' - description: Number of user databases. @@ -114,77 +113,77 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "3" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: '{databases}' - description: The number of database locks. gauge: dataPoints: - asInt: "1" attributes: - - key: relation + - key: lock_type value: - stringValue: pg_class_relname_nsp_index + stringValue: relation - key: mode value: stringValue: AccessShareLock - - key: lock_type + - key: relation value: - stringValue: relation - startTimeUnixNano: "1693418281967464598" - timeUnixNano: "1693418340968890176" + stringValue: pg_class + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "1" attributes: - - key: relation + - key: lock_type value: - stringValue: pg_class_tblspc_relfilenode_index + stringValue: relation - key: mode value: stringValue: AccessShareLock - - key: lock_type + - key: relation value: - stringValue: relation - startTimeUnixNano: "1693418281967464598" - timeUnixNano: "1693418340968890176" + stringValue: pg_class_oid_index + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "1" attributes: - - key: relation + - key: lock_type value: - stringValue: pg_locks + stringValue: relation - key: mode value: stringValue: AccessShareLock - - key: lock_type + - key: relation value: - stringValue: relation - startTimeUnixNano: "1693418281967464598" - timeUnixNano: "1693418340968890176" + stringValue: pg_class_relname_nsp_index + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "1" attributes: - - key: relation + - key: lock_type value: - stringValue: pg_class + stringValue: relation - key: mode value: stringValue: AccessShareLock - - key: lock_type + - key: relation value: - stringValue: relation - startTimeUnixNano: "1693418281967464598" - timeUnixNano: "1693418340968890176" + stringValue: pg_class_tblspc_relfilenode_index + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "1" attributes: - - key: relation + - key: lock_type value: - stringValue: pg_class_oid_index + stringValue: relation - key: mode value: stringValue: AccessShareLock - - key: lock_type + - key: relation value: - stringValue: relation - startTimeUnixNano: "1693418281967464598" - timeUnixNano: "1693418340968890176" + stringValue: pg_locks + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" name: postgresql.database.locks unit: '{lock}' scope: @@ -203,8 +202,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "6" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -213,8 +212,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "7176708" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: By - description: The number of deadlocks. name: postgresql.deadlocks @@ -222,18 +221,18 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true - unit: "{deadlock}" + unit: '{deadlock}' - description: The number of rollbacks. name: postgresql.rollbacks sum: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -242,8 +241,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: '{table}' - description: The number of temp files. name: postgresql.temp_files @@ -251,10 +250,10 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true - unit: "{temp_file}" + unit: '{temp_file}' scope: name: otelcol/postgresqlreceiver version: latest @@ -271,8 +270,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "7" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -281,8 +280,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "7217668" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: By - description: The number of deadlocks. name: postgresql.deadlocks @@ -290,18 +289,18 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true - unit: "{deadlock}" + unit: '{deadlock}' - description: The number of rollbacks. name: postgresql.rollbacks sum: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -310,8 +309,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: '{table}' - description: The number of temp files. name: postgresql.temp_files @@ -319,10 +318,10 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true - unit: "{temp_file}" + unit: '{temp_file}' scope: name: otelcol/postgresqlreceiver version: latest @@ -338,18 +337,18 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "3" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + - asInt: "1" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: "1" - description: The number of commits. name: postgresql.commits sum: aggregationTemporality: 2 dataPoints: - - asInt: "6" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + - asInt: "8" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -358,8 +357,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "7232024" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: By - description: The number of deadlocks. name: postgresql.deadlocks @@ -367,18 +366,18 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true - unit: "{deadlock}" + unit: '{deadlock}' - description: The number of rollbacks. name: postgresql.rollbacks sum: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -387,8 +386,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: '{table}' - description: The number of temp files. name: postgresql.temp_files @@ -396,10 +395,10 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true - unit: "{temp_file}" + unit: '{temp_file}' scope: name: otelcol/postgresqlreceiver version: latest @@ -426,57 +425,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -489,29 +488,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -524,34 +523,34 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: "1" - description: The number of sequential scans. name: postgresql.sequential_scans sum: aggregationTemporality: 2 dataPoints: - - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + - asInt: "1" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -559,8 +558,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{vacuums}' scope: @@ -589,57 +588,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -652,29 +651,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -687,34 +686,34 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: "1" - description: The number of sequential scans. name: postgresql.sequential_scans sum: aggregationTemporality: 2 dataPoints: - - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + - asInt: "1" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -722,8 +721,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{vacuums}' scope: @@ -752,57 +751,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -815,29 +814,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -850,34 +849,34 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: "1" - description: The number of sequential scans. name: postgresql.sequential_scans sum: aggregationTemporality: 2 dataPoints: - - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + - asInt: "2" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -885,8 +884,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{vacuums}' scope: @@ -915,57 +914,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "1" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "2" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "4" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -978,29 +977,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "1" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -1013,34 +1012,34 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "1" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: "1" - description: The number of sequential scans. name: postgresql.sequential_scans sum: aggregationTemporality: 2 dataPoints: - - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + - asInt: "3" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: aggregationTemporality: 2 dataPoints: - asInt: "8192" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -1048,8 +1047,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{vacuums}' scope: @@ -1077,16 +1076,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" name: postgresql.index.size unit: By scope: @@ -1114,16 +1113,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" name: postgresql.index.size unit: By scope: @@ -1151,16 +1150,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "16384" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" name: postgresql.index.size unit: By scope: @@ -1188,16 +1187,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" name: postgresql.index.size unit: By scope: @@ -1225,16 +1224,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" name: postgresql.index.size unit: By scope: @@ -1262,16 +1261,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "16384" - startTimeUnixNano: "1687780273472170000" - timeUnixNano: "1687780274490198000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" 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 b310093ed1a2..7ac31eb0374a 100644 --- a/receiver/postgresqlreceiver/testdata/integration/expected_multi_db.yaml +++ b/receiver/postgresqlreceiver/testdata/integration/expected_multi_db.yaml @@ -1,6 +1,5 @@ resourceMetrics: - - resource: - attributes: [] + - resource: {} scopeMetrics: - metrics: - description: Number of buffers allocated. @@ -8,9 +7,9 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "343" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + - asInt: "289" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{buffers}' - description: Number of buffers written. @@ -23,29 +22,29 @@ resourceMetrics: - key: source value: stringValue: backend - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: backend_fsync - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: bgwriter - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "60" attributes: - key: source value: stringValue: checkpoints - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{buffers}' - description: The number of checkpoints performed. @@ -58,15 +57,15 @@ resourceMetrics: - key: type value: stringValue: requested - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: type value: stringValue: scheduled - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{checkpoints}' - description: Total time spent writing and syncing files to disk by checkpoints. @@ -74,20 +73,20 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asDouble: 32 + - asDouble: 6 attributes: - key: type value: stringValue: sync - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" - - asDouble: 15 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asDouble: 5 attributes: - key: type value: stringValue: write - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: ms - description: Number of times the background writer stopped a cleaning scan because it had written too many buffers. @@ -96,16 +95,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: Configured maximum number of client connections allowed gauge: dataPoints: - asInt: "100" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" name: postgresql.connection.max unit: '{connections}' - description: Number of user databases. @@ -114,77 +113,77 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: '{databases}' - description: The number of database locks. gauge: dataPoints: - asInt: "1" attributes: - - key: relation + - key: lock_type value: - stringValue: pg_class_relname_nsp_index + stringValue: relation - key: mode value: stringValue: AccessShareLock - - key: lock_type + - key: relation value: - stringValue: relation - startTimeUnixNano: "1693418281967464598" - timeUnixNano: "1693418340968890176" + stringValue: pg_class + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "1" attributes: - - key: relation + - key: lock_type value: - stringValue: pg_class_tblspc_relfilenode_index + stringValue: relation - key: mode value: stringValue: AccessShareLock - - key: lock_type + - key: relation value: - stringValue: relation - startTimeUnixNano: "1693418281967464598" - timeUnixNano: "1693418340968890176" + stringValue: pg_class_oid_index + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "1" attributes: - - key: relation + - key: lock_type value: - stringValue: pg_locks + stringValue: relation - key: mode value: stringValue: AccessShareLock - - key: lock_type + - key: relation value: - stringValue: relation - startTimeUnixNano: "1693418281967464598" - timeUnixNano: "1693418340968890176" + stringValue: pg_class_relname_nsp_index + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "1" attributes: - - key: relation + - key: lock_type value: - stringValue: pg_class + stringValue: relation - key: mode value: stringValue: AccessShareLock - - key: lock_type + - key: relation value: - stringValue: relation - startTimeUnixNano: "1693418281967464598" - timeUnixNano: "1693418340968890176" + stringValue: pg_class_tblspc_relfilenode_index + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "1" attributes: - - key: relation + - key: lock_type value: - stringValue: pg_class_oid_index + stringValue: relation - key: mode value: stringValue: AccessShareLock - - key: lock_type + - key: relation value: - stringValue: relation - startTimeUnixNano: "1693418281967464598" - timeUnixNano: "1693418340968890176" + stringValue: pg_locks + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" name: postgresql.database.locks unit: '{lock}' scope: @@ -203,8 +202,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "6" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -212,9 +211,9 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "7168516" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + - asInt: "7184900" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: By - description: The number of deadlocks. name: postgresql.deadlocks @@ -222,18 +221,18 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true - unit: "{deadlock}" + unit: '{deadlock}' - description: The number of rollbacks. name: postgresql.rollbacks sum: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -242,8 +241,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: '{table}' - description: The number of temp files. name: postgresql.temp_files @@ -251,10 +250,10 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true - unit: "{temp_file}" + unit: '{temp_file}' scope: name: otelcol/postgresqlreceiver version: latest @@ -271,8 +270,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "7" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -280,9 +279,9 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "7209476" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + - asInt: "7225860" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: By - description: The number of deadlocks. name: postgresql.deadlocks @@ -290,18 +289,18 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true - unit: "{deadlock}" + unit: '{deadlock}' - description: The number of rollbacks. name: postgresql.rollbacks sum: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -310,8 +309,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: '{table}' - description: The number of temp files. name: postgresql.temp_files @@ -319,10 +318,10 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true - unit: "{temp_file}" + unit: '{temp_file}' scope: name: otelcol/postgresqlreceiver version: latest @@ -346,57 +345,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -409,29 +408,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -444,34 +443,34 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: "1" - description: The number of sequential scans. name: postgresql.sequential_scans sum: aggregationTemporality: 2 dataPoints: - - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + - asInt: "1" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -479,8 +478,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{vacuums}' scope: @@ -506,57 +505,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -569,29 +568,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -604,34 +603,34 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: "1" - description: The number of sequential scans. name: postgresql.sequential_scans sum: aggregationTemporality: 2 dataPoints: - - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + - asInt: "1" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -639,8 +638,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{vacuums}' scope: @@ -666,57 +665,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -729,29 +728,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -764,34 +763,34 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: "1" - description: The number of sequential scans. name: postgresql.sequential_scans sum: aggregationTemporality: 2 dataPoints: - - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + - asInt: "2" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -799,8 +798,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{vacuums}' scope: @@ -826,57 +825,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "1" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "2" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "4" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -889,29 +888,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "1" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -924,34 +923,34 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "1" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: "1" - description: The number of sequential scans. name: postgresql.sequential_scans sum: aggregationTemporality: 2 dataPoints: - - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + - asInt: "3" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: aggregationTemporality: 2 dataPoints: - asInt: "8192" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -959,8 +958,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{vacuums}' scope: @@ -985,16 +984,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" name: postgresql.index.size unit: By scope: @@ -1019,16 +1018,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" name: postgresql.index.size unit: By scope: @@ -1053,16 +1052,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "16384" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" name: postgresql.index.size unit: By scope: @@ -1087,16 +1086,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" name: postgresql.index.size unit: By scope: @@ -1121,16 +1120,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" name: postgresql.index.size unit: By scope: @@ -1155,16 +1154,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "16384" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" name: postgresql.index.size unit: By scope: diff --git a/receiver/postgresqlreceiver/testdata/integration/expected_multi_db_schemaattr.yaml b/receiver/postgresqlreceiver/testdata/integration/expected_multi_db_schemaattr.yaml index 1a0dbb4a961d..4b3f7ef15e3f 100644 --- a/receiver/postgresqlreceiver/testdata/integration/expected_multi_db_schemaattr.yaml +++ b/receiver/postgresqlreceiver/testdata/integration/expected_multi_db_schemaattr.yaml @@ -1,6 +1,5 @@ resourceMetrics: - - resource: - attributes: [] + - resource: {} scopeMetrics: - metrics: - description: Number of buffers allocated. @@ -8,9 +7,9 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "343" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + - asInt: "584" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{buffers}' - description: Number of buffers written. @@ -23,29 +22,29 @@ resourceMetrics: - key: source value: stringValue: backend - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: backend_fsync - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: bgwriter - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "60" attributes: - key: source value: stringValue: checkpoints - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{buffers}' - description: The number of checkpoints performed. @@ -58,15 +57,15 @@ resourceMetrics: - key: type value: stringValue: requested - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: type value: stringValue: scheduled - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{checkpoints}' - description: Total time spent writing and syncing files to disk by checkpoints. @@ -74,20 +73,20 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asDouble: 32 + - asDouble: 6 attributes: - key: type value: stringValue: sync - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" - - asDouble: 15 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asDouble: 5 attributes: - key: type value: stringValue: write - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: ms - description: Number of times the background writer stopped a cleaning scan because it had written too many buffers. @@ -96,16 +95,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: Configured maximum number of client connections allowed gauge: dataPoints: - asInt: "100" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" name: postgresql.connection.max unit: '{connections}' - description: Number of user databases. @@ -114,77 +113,77 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: '{databases}' - description: The number of database locks. gauge: dataPoints: - asInt: "1" attributes: - - key: relation + - key: lock_type value: - stringValue: pg_class_relname_nsp_index + stringValue: relation - key: mode value: stringValue: AccessShareLock - - key: lock_type + - key: relation value: - stringValue: relation - startTimeUnixNano: "1693418281967464598" - timeUnixNano: "1693418340968890176" + stringValue: pg_class + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "1" attributes: - - key: relation + - key: lock_type value: - stringValue: pg_class_tblspc_relfilenode_index + stringValue: relation - key: mode value: stringValue: AccessShareLock - - key: lock_type + - key: relation value: - stringValue: relation - startTimeUnixNano: "1693418281967464598" - timeUnixNano: "1693418340968890176" + stringValue: pg_class_oid_index + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "1" attributes: - - key: relation + - key: lock_type value: - stringValue: pg_locks + stringValue: relation - key: mode value: stringValue: AccessShareLock - - key: lock_type + - key: relation value: - stringValue: relation - startTimeUnixNano: "1693418281967464598" - timeUnixNano: "1693418340968890176" + stringValue: pg_class_relname_nsp_index + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "1" attributes: - - key: relation + - key: lock_type value: - stringValue: pg_class + stringValue: relation - key: mode value: stringValue: AccessShareLock - - key: lock_type + - key: relation value: - stringValue: relation - startTimeUnixNano: "1693418281967464598" - timeUnixNano: "1693418340968890176" + stringValue: pg_class_tblspc_relfilenode_index + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "1" attributes: - - key: relation + - key: lock_type value: - stringValue: pg_class_oid_index + stringValue: relation - key: mode value: stringValue: AccessShareLock - - key: lock_type + - key: relation value: - stringValue: relation - startTimeUnixNano: "1693418281967464598" - timeUnixNano: "1693418340968890176" + stringValue: pg_locks + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" name: postgresql.database.locks unit: '{lock}' scope: @@ -203,8 +202,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "6" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -212,9 +211,9 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "7168516" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + - asInt: "7184900" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: By - description: The number of deadlocks. name: postgresql.deadlocks @@ -222,18 +221,18 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true - unit: "{deadlock}" + unit: '{deadlock}' - description: The number of rollbacks. name: postgresql.rollbacks sum: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -242,8 +241,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: '{table}' - description: The number of temp files. name: postgresql.temp_files @@ -251,10 +250,10 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true - unit: "{temp_file}" + unit: '{temp_file}' scope: name: otelcol/postgresqlreceiver version: latest @@ -271,8 +270,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "7" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -280,9 +279,9 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "7209476" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + - asInt: "7225860" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: By - description: The number of deadlocks. name: postgresql.deadlocks @@ -290,18 +289,18 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true - unit: "{deadlock}" + unit: '{deadlock}' - description: The number of rollbacks. name: postgresql.rollbacks sum: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -310,8 +309,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: '{table}' - description: The number of temp files. name: postgresql.temp_files @@ -319,10 +318,10 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true - unit: "{temp_file}" + unit: '{temp_file}' scope: name: otelcol/postgresqlreceiver version: latest @@ -349,57 +348,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -412,29 +411,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -447,34 +446,34 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: "1" - description: The number of sequential scans. name: postgresql.sequential_scans sum: aggregationTemporality: 2 dataPoints: - - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + - asInt: "1" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -482,8 +481,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{vacuums}' scope: @@ -512,57 +511,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -575,29 +574,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -610,34 +609,34 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: "1" - description: The number of sequential scans. name: postgresql.sequential_scans sum: aggregationTemporality: 2 dataPoints: - - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + - asInt: "1" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -645,8 +644,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{vacuums}' scope: @@ -675,57 +674,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -738,29 +737,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -773,34 +772,34 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: "1" - description: The number of sequential scans. name: postgresql.sequential_scans sum: aggregationTemporality: 2 dataPoints: - - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + - asInt: "2" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -808,8 +807,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{vacuums}' scope: @@ -838,57 +837,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "1" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "2" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "4" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -901,29 +900,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "1" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -936,34 +935,34 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "1" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: "1" - description: The number of sequential scans. name: postgresql.sequential_scans sum: aggregationTemporality: 2 dataPoints: - - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + - asInt: "3" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: aggregationTemporality: 2 dataPoints: - asInt: "8192" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -971,8 +970,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{vacuums}' scope: @@ -1000,16 +999,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" name: postgresql.index.size unit: By scope: @@ -1037,16 +1036,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" name: postgresql.index.size unit: By scope: @@ -1074,16 +1073,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "16384" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" name: postgresql.index.size unit: By scope: @@ -1111,16 +1110,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" name: postgresql.index.size unit: By scope: @@ -1148,16 +1147,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" name: postgresql.index.size unit: By scope: @@ -1185,16 +1184,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "16384" - startTimeUnixNano: "1687780262696586000" - timeUnixNano: "1687780263696969000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" 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 17c9490f94d4..d9a8fd42807d 100644 --- a/receiver/postgresqlreceiver/testdata/integration/expected_single_db.yaml +++ b/receiver/postgresqlreceiver/testdata/integration/expected_single_db.yaml @@ -1,6 +1,5 @@ resourceMetrics: - - resource: - attributes: [] + - resource: {} scopeMetrics: - metrics: - description: Number of buffers allocated. @@ -8,9 +7,9 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "452" - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + - asInt: "289" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{buffers}' - description: Number of buffers written. @@ -23,29 +22,29 @@ resourceMetrics: - key: source value: stringValue: backend - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: backend_fsync - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: bgwriter - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "60" attributes: - key: source value: stringValue: checkpoints - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{buffers}' - description: The number of checkpoints performed. @@ -58,15 +57,15 @@ resourceMetrics: - key: type value: stringValue: requested - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: type value: stringValue: scheduled - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{checkpoints}' - description: Total time spent writing and syncing files to disk by checkpoints. @@ -74,20 +73,20 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asDouble: 31 + - asDouble: 14 attributes: - key: type value: stringValue: sync - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" - - asDouble: 16 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asDouble: 7 attributes: - key: type value: stringValue: write - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: ms - description: Number of times the background writer stopped a cleaning scan because it had written too many buffers. @@ -96,16 +95,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: Configured maximum number of client connections allowed gauge: dataPoints: - asInt: "100" - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" name: postgresql.connection.max unit: '{connections}' - description: Number of user databases. @@ -114,77 +113,77 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1" - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: '{databases}' - description: The number of database locks. gauge: dataPoints: - asInt: "1" attributes: - - key: relation + - key: lock_type value: - stringValue: pg_class_relname_nsp_index + stringValue: relation - key: mode value: stringValue: AccessShareLock - - key: lock_type + - key: relation value: - stringValue: relation - startTimeUnixNano: "1693418281967464598" - timeUnixNano: "1693418340968890176" + stringValue: pg_class + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "1" attributes: - - key: relation + - key: lock_type value: - stringValue: pg_class_tblspc_relfilenode_index + stringValue: relation - key: mode value: stringValue: AccessShareLock - - key: lock_type + - key: relation value: - stringValue: relation - startTimeUnixNano: "1693418281967464598" - timeUnixNano: "1693418340968890176" + stringValue: pg_class_oid_index + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "1" attributes: - - key: relation + - key: lock_type value: - stringValue: pg_locks + stringValue: relation - key: mode value: stringValue: AccessShareLock - - key: lock_type + - key: relation value: - stringValue: relation - startTimeUnixNano: "1693418281967464598" - timeUnixNano: "1693418340968890176" + stringValue: pg_class_relname_nsp_index + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "1" attributes: - - key: relation + - key: lock_type value: - stringValue: pg_class + stringValue: relation - key: mode value: stringValue: AccessShareLock - - key: lock_type + - key: relation value: - stringValue: relation - startTimeUnixNano: "1693418281967464598" - timeUnixNano: "1693418340968890176" + stringValue: pg_class_tblspc_relfilenode_index + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "1" attributes: - - key: relation + - key: lock_type value: - stringValue: pg_class_oid_index + stringValue: relation - key: mode value: stringValue: AccessShareLock - - key: lock_type + - key: relation value: - stringValue: relation - startTimeUnixNano: "1693418281967464598" - timeUnixNano: "1693418340968890176" + stringValue: pg_locks + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" name: postgresql.database.locks unit: '{lock}' scope: @@ -203,8 +202,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "6" - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -213,8 +212,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "7184900" - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: By - description: The number of deadlocks. name: postgresql.deadlocks @@ -222,18 +221,18 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true - unit: "{deadlock}" + unit: '{deadlock}' - description: The number of rollbacks. name: postgresql.rollbacks sum: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -242,8 +241,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: '{table}' - description: The number of temp files. name: postgresql.temp_files @@ -251,10 +250,10 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true - unit: "{temp_file}" + unit: '{temp_file}' scope: name: otelcol/postgresqlreceiver version: latest @@ -278,57 +277,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -341,29 +340,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -376,34 +375,34 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: "1" - description: The number of sequential scans. name: postgresql.sequential_scans sum: aggregationTemporality: 2 dataPoints: - - asInt: "0" - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + - asInt: "1" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -411,8 +410,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{vacuums}' scope: @@ -438,57 +437,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -501,29 +500,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -536,34 +535,34 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: "1" - description: The number of sequential scans. name: postgresql.sequential_scans sum: aggregationTemporality: 2 dataPoints: - - asInt: "0" - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + - asInt: "1" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -571,8 +570,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{vacuums}' scope: @@ -597,16 +596,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" name: postgresql.index.size unit: By scope: @@ -631,16 +630,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" name: postgresql.index.size unit: By scope: diff --git a/receiver/postgresqlreceiver/testdata/integration/expected_single_db_schemaattr.yaml b/receiver/postgresqlreceiver/testdata/integration/expected_single_db_schemaattr.yaml index 8998867be246..047a50af26ae 100644 --- a/receiver/postgresqlreceiver/testdata/integration/expected_single_db_schemaattr.yaml +++ b/receiver/postgresqlreceiver/testdata/integration/expected_single_db_schemaattr.yaml @@ -1,6 +1,5 @@ resourceMetrics: - - resource: - attributes: [] + - resource: {} scopeMetrics: - metrics: - description: Number of buffers allocated. @@ -8,9 +7,9 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asInt: "452" - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + - asInt: "289" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{buffers}' - description: Number of buffers written. @@ -23,29 +22,29 @@ resourceMetrics: - key: source value: stringValue: backend - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: backend_fsync - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: bgwriter - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "60" attributes: - key: source value: stringValue: checkpoints - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{buffers}' - description: The number of checkpoints performed. @@ -58,15 +57,15 @@ resourceMetrics: - key: type value: stringValue: requested - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: type value: stringValue: scheduled - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{checkpoints}' - description: Total time spent writing and syncing files to disk by checkpoints. @@ -74,20 +73,20 @@ resourceMetrics: sum: aggregationTemporality: 2 dataPoints: - - asDouble: 31 + - asDouble: 7 attributes: - key: type value: stringValue: sync - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" - - asDouble: 16 + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" + - asDouble: 5 attributes: - key: type value: stringValue: write - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: ms - description: Number of times the background writer stopped a cleaning scan because it had written too many buffers. @@ -96,16 +95,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: Configured maximum number of client connections allowed gauge: dataPoints: - asInt: "100" - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" name: postgresql.connection.max unit: '{connections}' - description: Number of user databases. @@ -114,77 +113,77 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "1" - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: '{databases}' - description: The number of database locks. gauge: dataPoints: - asInt: "1" attributes: - - key: relation + - key: lock_type value: - stringValue: pg_class_relname_nsp_index + stringValue: relation - key: mode value: stringValue: AccessShareLock - - key: lock_type + - key: relation value: - stringValue: relation - startTimeUnixNano: "1693418281967464598" - timeUnixNano: "1693418340968890176" + stringValue: pg_class + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "1" attributes: - - key: relation + - key: lock_type value: - stringValue: pg_class_tblspc_relfilenode_index + stringValue: relation - key: mode value: stringValue: AccessShareLock - - key: lock_type + - key: relation value: - stringValue: relation - startTimeUnixNano: "1693418281967464598" - timeUnixNano: "1693418340968890176" + stringValue: pg_class_oid_index + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "1" attributes: - - key: relation + - key: lock_type value: - stringValue: pg_locks + stringValue: relation - key: mode value: stringValue: AccessShareLock - - key: lock_type + - key: relation value: - stringValue: relation - startTimeUnixNano: "1693418281967464598" - timeUnixNano: "1693418340968890176" + stringValue: pg_class_relname_nsp_index + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "1" attributes: - - key: relation + - key: lock_type value: - stringValue: pg_class + stringValue: relation - key: mode value: stringValue: AccessShareLock - - key: lock_type + - key: relation value: - stringValue: relation - startTimeUnixNano: "1693418281967464598" - timeUnixNano: "1693418340968890176" + stringValue: pg_class_tblspc_relfilenode_index + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "1" attributes: - - key: relation + - key: lock_type value: - stringValue: pg_class_oid_index + stringValue: relation - key: mode value: stringValue: AccessShareLock - - key: lock_type + - key: relation value: - stringValue: relation - startTimeUnixNano: "1693418281967464598" - timeUnixNano: "1693418340968890176" + stringValue: pg_locks + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" name: postgresql.database.locks unit: '{lock}' scope: @@ -203,8 +202,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "6" - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The database disk usage. @@ -213,8 +212,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "7184900" - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: By - description: The number of deadlocks. name: postgresql.deadlocks @@ -222,18 +221,18 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true - unit: "{deadlock}" + unit: '{deadlock}' - description: The number of rollbacks. name: postgresql.rollbacks sum: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: Number of user tables in a database. @@ -242,8 +241,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "2" - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: '{table}' - description: The number of temp files. name: postgresql.temp_files @@ -251,10 +250,10 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true - unit: "{temp_file}" + unit: '{temp_file}' scope: name: otelcol/postgresqlreceiver version: latest @@ -281,57 +280,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -344,29 +343,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -379,34 +378,34 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: "1" - description: The number of sequential scans. name: postgresql.sequential_scans sum: aggregationTemporality: 2 dataPoints: - - asInt: "0" - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + - asInt: "1" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -414,8 +413,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{vacuums}' scope: @@ -444,57 +443,57 @@ resourceMetrics: - key: source value: stringValue: heap_hit - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: heap_read - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: idx_hit - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: idx_read - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: tidx_hit - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: tidx_read - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: toast_hit - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: source value: stringValue: toast_read - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The number of db row operations. @@ -507,29 +506,29 @@ resourceMetrics: - key: operation value: stringValue: del - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: hot_upd - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: ins - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: operation value: stringValue: upd - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: "1" - description: The number of rows in the database. @@ -542,34 +541,34 @@ resourceMetrics: - key: state value: stringValue: dead - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" - asInt: "0" attributes: - key: state value: stringValue: live - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: "1" - description: The number of sequential scans. name: postgresql.sequential_scans sum: aggregationTemporality: 2 dataPoints: - - asInt: "0" - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + - asInt: "1" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" unit: By - description: Number of times a table has manually been vacuumed. name: postgresql.table.vacuum.count @@ -577,8 +576,8 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{vacuums}' scope: @@ -606,16 +605,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" name: postgresql.index.size unit: By scope: @@ -643,16 +642,16 @@ resourceMetrics: aggregationTemporality: 2 dataPoints: - asInt: "0" - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" isMonotonic: true unit: '{scans}' - description: The size of the index on disk. gauge: dataPoints: - asInt: "8192" - startTimeUnixNano: "1687780251831660000" - timeUnixNano: "1687780252833095000" + startTimeUnixNano: "1000000" + timeUnixNano: "2000000" name: postgresql.index.size unit: By scope: diff --git a/receiver/postgresqlreceiver/testdata/scraper/multiple/exclude.yaml b/receiver/postgresqlreceiver/testdata/scraper/multiple/exclude.yaml index 08da5365e9c0..e8b3f6071a03 100644 --- a/receiver/postgresqlreceiver/testdata/scraper/multiple/exclude.yaml +++ b/receiver/postgresqlreceiver/testdata/scraper/multiple/exclude.yaml @@ -136,41 +136,6 @@ resourceMetrics: timeUnixNano: "2000000" 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. - gauge: - dataPoints: - - asInt: "600" - attributes: - - key: operation - value: - stringValue: flush - - key: replication_client - value: - stringValue: unix - startTimeUnixNano: "1000000" - timeUnixNano: "2000000" - - asInt: "700" - attributes: - - key: operation - value: - stringValue: replay - - key: replication_client - value: - stringValue: unix - startTimeUnixNano: "1000000" - timeUnixNano: "2000000" - - asInt: "800" - attributes: - - key: operation - value: - stringValue: write - - key: replication_client - value: - stringValue: unix - startTimeUnixNano: "1000000" - timeUnixNano: "2000000" - name: postgresql.wal.lag - unit: s scope: name: otelcol/postgresqlreceiver version: latest diff --git a/receiver/postgresqlreceiver/testdata/scraper/multiple/exclude_schemaattr.yaml b/receiver/postgresqlreceiver/testdata/scraper/multiple/exclude_schemaattr.yaml index 77b41cc9367c..79fe672e03d4 100644 --- a/receiver/postgresqlreceiver/testdata/scraper/multiple/exclude_schemaattr.yaml +++ b/receiver/postgresqlreceiver/testdata/scraper/multiple/exclude_schemaattr.yaml @@ -136,41 +136,6 @@ resourceMetrics: timeUnixNano: "2000000" 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. - gauge: - dataPoints: - - asInt: "600" - attributes: - - key: operation - value: - stringValue: flush - - key: replication_client - value: - stringValue: unix - startTimeUnixNano: "1000000" - timeUnixNano: "2000000" - - asInt: "700" - attributes: - - key: operation - value: - stringValue: replay - - key: replication_client - value: - stringValue: unix - startTimeUnixNano: "1000000" - timeUnixNano: "2000000" - - asInt: "800" - attributes: - - key: operation - value: - stringValue: write - - key: replication_client - value: - stringValue: unix - startTimeUnixNano: "1000000" - timeUnixNano: "2000000" - name: postgresql.wal.lag - unit: s 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 df06fe84b685..1f030adf956a 100644 --- a/receiver/postgresqlreceiver/testdata/scraper/multiple/expected.yaml +++ b/receiver/postgresqlreceiver/testdata/scraper/multiple/expected.yaml @@ -119,30 +119,30 @@ resourceMetrics: - description: The number of database locks. gauge: dataPoints: - - asInt: "3600" + - asInt: "5600" attributes: - - key: "relation" + - key: lock_type value: - stringValue: "pg_locks" - - key: "mode" + stringValue: relation + - key: mode value: - stringValue: "AccessShareLock" - - key: "lock_type" + stringValue: AccessShareLock + - key: relation value: - stringValue: "relation" + stringValue: pg_class startTimeUnixNano: "1000000" timeUnixNano: "2000000" - - asInt: "5600" + - asInt: "3600" attributes: - - key: "relation" + - key: lock_type value: - stringValue: "pg_class" - - key: "mode" + stringValue: relation + - key: mode value: - stringValue: "AccessShareLock" - - key: "lock_type" + stringValue: AccessShareLock + - key: relation value: - stringValue: "relation" + stringValue: pg_locks startTimeUnixNano: "1000000" timeUnixNano: "2000000" name: postgresql.database.locks @@ -170,7 +170,7 @@ resourceMetrics: - description: Time between flushing recent WAL locally and receiving notification that the standby server has completed an operation with it. gauge: dataPoints: - - asInt: "600" + - asDouble: 600.4 attributes: - key: operation value: @@ -180,7 +180,7 @@ resourceMetrics: stringValue: unix startTimeUnixNano: "1000000" timeUnixNano: "2000000" - - asInt: "700" + - asDouble: 700.55 attributes: - key: operation value: @@ -190,7 +190,7 @@ resourceMetrics: stringValue: unix startTimeUnixNano: "1000000" timeUnixNano: "2000000" - - asInt: "800" + - asDouble: 800.66 attributes: - key: operation value: @@ -200,7 +200,7 @@ resourceMetrics: stringValue: unix startTimeUnixNano: "1000000" timeUnixNano: "2000000" - name: postgresql.wal.lag + name: postgresql.wal.delay unit: s scope: name: otelcol/postgresqlreceiver @@ -355,7 +355,7 @@ resourceMetrics: startTimeUnixNano: "1000000" timeUnixNano: "2000000" isMonotonic: true - unit: '{temp_file}' + unit: '{temp_file}' scope: name: otelcol/postgresqlreceiver version: latest @@ -432,7 +432,7 @@ resourceMetrics: startTimeUnixNano: "1000000" timeUnixNano: "2000000" isMonotonic: true - unit: '{temp_file}' + unit: '{temp_file}' scope: name: otelcol/postgresqlreceiver version: latest @@ -573,7 +573,7 @@ resourceMetrics: startTimeUnixNano: "1000000" timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: @@ -733,7 +733,7 @@ resourceMetrics: startTimeUnixNano: "1000000" timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: @@ -893,7 +893,7 @@ resourceMetrics: startTimeUnixNano: "1000000" timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: @@ -1053,7 +1053,7 @@ resourceMetrics: startTimeUnixNano: "1000000" timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: @@ -1213,7 +1213,7 @@ resourceMetrics: startTimeUnixNano: "1000000" timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: @@ -1373,7 +1373,7 @@ resourceMetrics: startTimeUnixNano: "1000000" timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: diff --git a/receiver/postgresqlreceiver/testdata/scraper/multiple/expected_precise_lag.yaml b/receiver/postgresqlreceiver/testdata/scraper/multiple/expected_imprecise_lag.yaml similarity index 98% rename from receiver/postgresqlreceiver/testdata/scraper/multiple/expected_precise_lag.yaml rename to receiver/postgresqlreceiver/testdata/scraper/multiple/expected_imprecise_lag.yaml index f29b4b19a70f..aa2f5eebe41d 100644 --- a/receiver/postgresqlreceiver/testdata/scraper/multiple/expected_precise_lag.yaml +++ b/receiver/postgresqlreceiver/testdata/scraper/multiple/expected_imprecise_lag.yaml @@ -119,30 +119,30 @@ resourceMetrics: - description: The number of database locks. gauge: dataPoints: - - asInt: "3600" + - asInt: "5600" attributes: - - key: "relation" + - key: lock_type value: - stringValue: "pg_locks" - - key: "mode" + stringValue: relation + - key: mode value: - stringValue: "AccessShareLock" - - key: "lock_type" + stringValue: AccessShareLock + - key: relation value: - stringValue: "relation" + stringValue: pg_class startTimeUnixNano: "1000000" timeUnixNano: "2000000" - - asInt: "5600" + - asInt: "3600" attributes: - - key: "relation" + - key: lock_type value: - stringValue: "pg_class" - - key: "mode" + stringValue: relation + - key: mode value: - stringValue: "AccessShareLock" - - key: "lock_type" + stringValue: AccessShareLock + - key: relation value: - stringValue: "relation" + stringValue: pg_locks startTimeUnixNano: "1000000" timeUnixNano: "2000000" name: postgresql.database.locks @@ -170,7 +170,7 @@ resourceMetrics: - description: Time between flushing recent WAL locally and receiving notification that the standby server has completed an operation with it. gauge: dataPoints: - - asDouble: "600.400" + - asInt: "600" attributes: - key: operation value: @@ -180,7 +180,7 @@ resourceMetrics: stringValue: unix startTimeUnixNano: "1000000" timeUnixNano: "2000000" - - asDouble: "700.550" + - asInt: "700" attributes: - key: operation value: @@ -190,7 +190,7 @@ resourceMetrics: stringValue: unix startTimeUnixNano: "1000000" timeUnixNano: "2000000" - - asDouble: "800.660" + - asInt: "800" attributes: - key: operation value: @@ -200,7 +200,7 @@ resourceMetrics: stringValue: unix startTimeUnixNano: "1000000" timeUnixNano: "2000000" - name: postgresql.wal.delay + name: postgresql.wal.lag unit: s scope: name: otelcol/postgresqlreceiver @@ -355,7 +355,7 @@ resourceMetrics: startTimeUnixNano: "1000000" timeUnixNano: "2000000" isMonotonic: true - unit: '{temp_file}' + unit: '{temp_file}' scope: name: otelcol/postgresqlreceiver version: latest @@ -432,7 +432,7 @@ resourceMetrics: startTimeUnixNano: "1000000" timeUnixNano: "2000000" isMonotonic: true - unit: '{temp_file}' + unit: '{temp_file}' scope: name: otelcol/postgresqlreceiver version: latest @@ -573,7 +573,7 @@ resourceMetrics: startTimeUnixNano: "1000000" timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: @@ -733,7 +733,7 @@ resourceMetrics: startTimeUnixNano: "1000000" timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: @@ -893,7 +893,7 @@ resourceMetrics: startTimeUnixNano: "1000000" timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: @@ -1053,7 +1053,7 @@ resourceMetrics: startTimeUnixNano: "1000000" timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: @@ -1213,7 +1213,7 @@ resourceMetrics: startTimeUnixNano: "1000000" timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: @@ -1373,7 +1373,7 @@ resourceMetrics: startTimeUnixNano: "1000000" timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: diff --git a/receiver/postgresqlreceiver/testdata/scraper/multiple/expected_precise_lag_schemaattr.yaml b/receiver/postgresqlreceiver/testdata/scraper/multiple/expected_imprecise_lag_schemaattr.yaml similarity index 98% rename from receiver/postgresqlreceiver/testdata/scraper/multiple/expected_precise_lag_schemaattr.yaml rename to receiver/postgresqlreceiver/testdata/scraper/multiple/expected_imprecise_lag_schemaattr.yaml index 557189df05df..2b0d4fc8ace5 100644 --- a/receiver/postgresqlreceiver/testdata/scraper/multiple/expected_precise_lag_schemaattr.yaml +++ b/receiver/postgresqlreceiver/testdata/scraper/multiple/expected_imprecise_lag_schemaattr.yaml @@ -119,30 +119,30 @@ resourceMetrics: - description: The number of database locks. gauge: dataPoints: - - asInt: "3600" + - asInt: "5600" attributes: - - key: "relation" + - key: lock_type value: - stringValue: "pg_locks" - - key: "mode" + stringValue: relation + - key: mode value: - stringValue: "AccessShareLock" - - key: "lock_type" + stringValue: AccessShareLock + - key: relation value: - stringValue: "relation" + stringValue: pg_class startTimeUnixNano: "1000000" timeUnixNano: "2000000" - - asInt: "5600" + - asInt: "3600" attributes: - - key: "relation" + - key: lock_type value: - stringValue: "pg_class" - - key: "mode" + stringValue: relation + - key: mode value: - stringValue: "AccessShareLock" - - key: "lock_type" + stringValue: AccessShareLock + - key: relation value: - stringValue: "relation" + stringValue: pg_locks startTimeUnixNano: "1000000" timeUnixNano: "2000000" name: postgresql.database.locks @@ -170,7 +170,7 @@ resourceMetrics: - description: Time between flushing recent WAL locally and receiving notification that the standby server has completed an operation with it. gauge: dataPoints: - - asDouble: "600.400" + - asInt: "600" attributes: - key: operation value: @@ -180,7 +180,7 @@ resourceMetrics: stringValue: unix startTimeUnixNano: "1000000" timeUnixNano: "2000000" - - asDouble: "700.550" + - asInt: "700" attributes: - key: operation value: @@ -190,7 +190,7 @@ resourceMetrics: stringValue: unix startTimeUnixNano: "1000000" timeUnixNano: "2000000" - - asDouble: "800.660" + - asInt: "800" attributes: - key: operation value: @@ -200,7 +200,7 @@ resourceMetrics: stringValue: unix startTimeUnixNano: "1000000" timeUnixNano: "2000000" - name: postgresql.wal.delay + name: postgresql.wal.lag unit: s scope: name: otelcol/postgresqlreceiver @@ -355,7 +355,7 @@ resourceMetrics: startTimeUnixNano: "1000000" timeUnixNano: "2000000" isMonotonic: true - unit: '{temp_file}' + unit: '{temp_file}' scope: name: otelcol/postgresqlreceiver version: latest @@ -432,7 +432,7 @@ resourceMetrics: startTimeUnixNano: "1000000" timeUnixNano: "2000000" isMonotonic: true - unit: '{temp_file}' + unit: '{temp_file}' scope: name: otelcol/postgresqlreceiver version: latest @@ -576,7 +576,7 @@ resourceMetrics: startTimeUnixNano: "1000000" timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: @@ -739,7 +739,7 @@ resourceMetrics: startTimeUnixNano: "1000000" timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: @@ -902,7 +902,7 @@ resourceMetrics: startTimeUnixNano: "1000000" timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: @@ -1065,7 +1065,7 @@ resourceMetrics: startTimeUnixNano: "1000000" timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: @@ -1228,7 +1228,7 @@ resourceMetrics: startTimeUnixNano: "1000000" timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: @@ -1391,7 +1391,7 @@ resourceMetrics: startTimeUnixNano: "1000000" timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: diff --git a/receiver/postgresqlreceiver/testdata/scraper/multiple/expected_schemaattr.yaml b/receiver/postgresqlreceiver/testdata/scraper/multiple/expected_schemaattr.yaml index 1301af8c50b0..84839f8820e2 100644 --- a/receiver/postgresqlreceiver/testdata/scraper/multiple/expected_schemaattr.yaml +++ b/receiver/postgresqlreceiver/testdata/scraper/multiple/expected_schemaattr.yaml @@ -119,30 +119,30 @@ resourceMetrics: - description: The number of database locks. gauge: dataPoints: - - asInt: "3600" + - asInt: "5600" attributes: - - key: "relation" + - key: lock_type value: - stringValue: "pg_locks" - - key: "mode" + stringValue: relation + - key: mode value: - stringValue: "AccessShareLock" - - key: "lock_type" + stringValue: AccessShareLock + - key: relation value: - stringValue: "relation" + stringValue: pg_class startTimeUnixNano: "1000000" timeUnixNano: "2000000" - - asInt: "5600" + - asInt: "3600" attributes: - - key: "relation" + - key: lock_type value: - stringValue: "pg_class" - - key: "mode" + stringValue: relation + - key: mode value: - stringValue: "AccessShareLock" - - key: "lock_type" + stringValue: AccessShareLock + - key: relation value: - stringValue: "relation" + stringValue: pg_locks startTimeUnixNano: "1000000" timeUnixNano: "2000000" name: postgresql.database.locks @@ -170,7 +170,7 @@ resourceMetrics: - description: Time between flushing recent WAL locally and receiving notification that the standby server has completed an operation with it. gauge: dataPoints: - - asInt: "600" + - asDouble: 600.4 attributes: - key: operation value: @@ -180,7 +180,7 @@ resourceMetrics: stringValue: unix startTimeUnixNano: "1000000" timeUnixNano: "2000000" - - asInt: "700" + - asDouble: 700.55 attributes: - key: operation value: @@ -190,7 +190,7 @@ resourceMetrics: stringValue: unix startTimeUnixNano: "1000000" timeUnixNano: "2000000" - - asInt: "800" + - asDouble: 800.66 attributes: - key: operation value: @@ -200,7 +200,7 @@ resourceMetrics: stringValue: unix startTimeUnixNano: "1000000" timeUnixNano: "2000000" - name: postgresql.wal.lag + name: postgresql.wal.delay unit: s scope: name: otelcol/postgresqlreceiver @@ -355,7 +355,7 @@ resourceMetrics: startTimeUnixNano: "1000000" timeUnixNano: "2000000" isMonotonic: true - unit: '{temp_file}' + unit: '{temp_file}' scope: name: otelcol/postgresqlreceiver version: latest @@ -432,7 +432,7 @@ resourceMetrics: startTimeUnixNano: "1000000" timeUnixNano: "2000000" isMonotonic: true - unit: '{temp_file}' + unit: '{temp_file}' scope: name: otelcol/postgresqlreceiver version: latest @@ -576,7 +576,7 @@ resourceMetrics: startTimeUnixNano: "1000000" timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: @@ -739,7 +739,7 @@ resourceMetrics: startTimeUnixNano: "1000000" timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: @@ -902,7 +902,7 @@ resourceMetrics: startTimeUnixNano: "1000000" timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: @@ -1065,7 +1065,7 @@ resourceMetrics: startTimeUnixNano: "1000000" timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: @@ -1228,7 +1228,7 @@ resourceMetrics: startTimeUnixNano: "1000000" timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: @@ -1391,7 +1391,7 @@ resourceMetrics: startTimeUnixNano: "1000000" timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: diff --git a/receiver/postgresqlreceiver/testdata/scraper/otel/expected.yaml b/receiver/postgresqlreceiver/testdata/scraper/otel/expected.yaml index a1567a1a1402..b25ddb787449 100644 --- a/receiver/postgresqlreceiver/testdata/scraper/otel/expected.yaml +++ b/receiver/postgresqlreceiver/testdata/scraper/otel/expected.yaml @@ -119,30 +119,30 @@ resourceMetrics: - description: The number of database locks. gauge: dataPoints: - - asInt: "3600" + - asInt: "5600" attributes: - - key: "relation" + - key: lock_type value: - stringValue: "pg_locks" - - key: "mode" + stringValue: relation + - key: mode value: - stringValue: "AccessShareLock" - - key: "lock_type" + stringValue: AccessShareLock + - key: relation value: - stringValue: "relation" + stringValue: pg_class startTimeUnixNano: "1000000" timeUnixNano: "2000000" - - asInt: "5600" + - asInt: "3600" attributes: - - key: "relation" + - key: lock_type value: - stringValue: "pg_class" - - key: "mode" + stringValue: relation + - key: mode value: - stringValue: "AccessShareLock" - - key: "lock_type" + stringValue: AccessShareLock + - key: relation value: - stringValue: "relation" + stringValue: pg_locks startTimeUnixNano: "1000000" timeUnixNano: "2000000" name: postgresql.database.locks @@ -170,7 +170,7 @@ resourceMetrics: - description: Time between flushing recent WAL locally and receiving notification that the standby server has completed an operation with it. gauge: dataPoints: - - asInt: "600" + - asDouble: 600.4 attributes: - key: operation value: @@ -180,7 +180,7 @@ resourceMetrics: stringValue: unix startTimeUnixNano: "1000000" timeUnixNano: "2000000" - - asInt: "700" + - asDouble: 700.55 attributes: - key: operation value: @@ -190,7 +190,7 @@ resourceMetrics: stringValue: unix startTimeUnixNano: "1000000" timeUnixNano: "2000000" - - asInt: "800" + - asDouble: 800.66 attributes: - key: operation value: @@ -200,7 +200,7 @@ resourceMetrics: stringValue: unix startTimeUnixNano: "1000000" timeUnixNano: "2000000" - name: postgresql.wal.lag + name: postgresql.wal.delay unit: s scope: name: otelcol/postgresqlreceiver @@ -419,7 +419,7 @@ resourceMetrics: startTimeUnixNano: "1000000" timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: @@ -579,7 +579,7 @@ resourceMetrics: startTimeUnixNano: "1000000" timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: diff --git a/receiver/postgresqlreceiver/testdata/scraper/otel/expected_default_metrics.yaml b/receiver/postgresqlreceiver/testdata/scraper/otel/expected_default_metrics.yaml index 0e13d5bc2fb0..b2cd42fd84d3 100644 --- a/receiver/postgresqlreceiver/testdata/scraper/otel/expected_default_metrics.yaml +++ b/receiver/postgresqlreceiver/testdata/scraper/otel/expected_default_metrics.yaml @@ -136,41 +136,6 @@ resourceMetrics: timeUnixNano: "2000000" 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. - gauge: - dataPoints: - - asInt: "600" - attributes: - - key: operation - value: - stringValue: flush - - key: replication_client - value: - stringValue: unix - startTimeUnixNano: "1000000" - timeUnixNano: "2000000" - - asInt: "700" - attributes: - - key: operation - value: - stringValue: replay - - key: replication_client - value: - stringValue: unix - startTimeUnixNano: "1000000" - timeUnixNano: "2000000" - - asInt: "800" - attributes: - - key: operation - value: - stringValue: write - - key: replication_client - value: - stringValue: unix - startTimeUnixNano: "1000000" - timeUnixNano: "2000000" - name: postgresql.wal.lag - unit: s scope: name: otelcol/postgresqlreceiver version: latest diff --git a/receiver/postgresqlreceiver/testdata/scraper/otel/expected_default_metrics_schemaattr.yaml b/receiver/postgresqlreceiver/testdata/scraper/otel/expected_default_metrics_schemaattr.yaml index 0034ca01435d..7ae29a56aeff 100644 --- a/receiver/postgresqlreceiver/testdata/scraper/otel/expected_default_metrics_schemaattr.yaml +++ b/receiver/postgresqlreceiver/testdata/scraper/otel/expected_default_metrics_schemaattr.yaml @@ -136,41 +136,6 @@ resourceMetrics: timeUnixNano: "2000000" 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. - gauge: - dataPoints: - - asInt: "600" - attributes: - - key: operation - value: - stringValue: flush - - key: replication_client - value: - stringValue: unix - startTimeUnixNano: "1000000" - timeUnixNano: "2000000" - - asInt: "700" - attributes: - - key: operation - value: - stringValue: replay - - key: replication_client - value: - stringValue: unix - startTimeUnixNano: "1000000" - timeUnixNano: "2000000" - - asInt: "800" - attributes: - - key: operation - value: - stringValue: write - - key: replication_client - value: - stringValue: unix - startTimeUnixNano: "1000000" - timeUnixNano: "2000000" - name: postgresql.wal.lag - unit: s scope: name: otelcol/postgresqlreceiver version: latest diff --git a/receiver/postgresqlreceiver/testdata/scraper/otel/expected_schemaattr.yaml b/receiver/postgresqlreceiver/testdata/scraper/otel/expected_schemaattr.yaml index 0ae08ea98551..7713307cbaf7 100644 --- a/receiver/postgresqlreceiver/testdata/scraper/otel/expected_schemaattr.yaml +++ b/receiver/postgresqlreceiver/testdata/scraper/otel/expected_schemaattr.yaml @@ -119,30 +119,30 @@ resourceMetrics: - description: The number of database locks. gauge: dataPoints: - - asInt: "3600" + - asInt: "5600" attributes: - - key: "relation" + - key: lock_type value: - stringValue: "pg_locks" - - key: "mode" + stringValue: relation + - key: mode value: - stringValue: "AccessShareLock" - - key: "lock_type" + stringValue: AccessShareLock + - key: relation value: - stringValue: "relation" + stringValue: pg_class startTimeUnixNano: "1000000" timeUnixNano: "2000000" - - asInt: "5600" + - asInt: "3600" attributes: - - key: "relation" + - key: lock_type value: - stringValue: "pg_class" - - key: "mode" + stringValue: relation + - key: mode value: - stringValue: "AccessShareLock" - - key: "lock_type" + stringValue: AccessShareLock + - key: relation value: - stringValue: "relation" + stringValue: pg_locks startTimeUnixNano: "1000000" timeUnixNano: "2000000" name: postgresql.database.locks @@ -170,7 +170,7 @@ resourceMetrics: - description: Time between flushing recent WAL locally and receiving notification that the standby server has completed an operation with it. gauge: dataPoints: - - asInt: "600" + - asDouble: 600.4 attributes: - key: operation value: @@ -180,7 +180,7 @@ resourceMetrics: stringValue: unix startTimeUnixNano: "1000000" timeUnixNano: "2000000" - - asInt: "700" + - asDouble: 700.55 attributes: - key: operation value: @@ -190,7 +190,7 @@ resourceMetrics: stringValue: unix startTimeUnixNano: "1000000" timeUnixNano: "2000000" - - asInt: "800" + - asDouble: 800.66 attributes: - key: operation value: @@ -200,7 +200,7 @@ resourceMetrics: stringValue: unix startTimeUnixNano: "1000000" timeUnixNano: "2000000" - name: postgresql.wal.lag + name: postgresql.wal.delay unit: s scope: name: otelcol/postgresqlreceiver @@ -422,7 +422,7 @@ resourceMetrics: startTimeUnixNano: "1000000" timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: @@ -585,7 +585,7 @@ resourceMetrics: startTimeUnixNano: "1000000" timeUnixNano: "2000000" isMonotonic: true - unit: "{sequential_scan}" + unit: '{sequential_scan}' - description: Disk space used by a table. name: postgresql.table.size sum: