Skip to content

Commit 7820c57

Browse files
committed
fix(sql-exporter): Remove tenant_id from compute_logical_snapshot_files
It appeared to be that it's already auto-added to all metrics [1] [1]: https://github.com/neondatabase/flux-fleet/blob/3a907c317c1e4515190b04a8726e00a9f976214a/apps/base/ext-vmagent/vmagent.yaml#L43
1 parent bf03713 commit 7820c57

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

vm-image-spec.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,12 +329,10 @@ files:
329329
type: gauge
330330
help: 'Number of snapshot files in pg_logical/snapshot'
331331
key_labels:
332-
- tenant_id
333332
- timeline_id
334333
values: [num_logical_snapshot_files]
335334
query: |
336335
SELECT
337-
(SELECT setting FROM pg_settings WHERE name = 'neon.tenant_id') AS tenant_id,
338336
(SELECT setting FROM pg_settings WHERE name = 'neon.timeline_id') AS timeline_id,
339337
-- Postgres creates temporary snapshot files of the form %X-%X.snap.%d.tmp. These
340338
-- temporary snapshot files are renamed to the actual snapshot files after they are

0 commit comments

Comments
 (0)