Skip to content

[Drift] New S3 storage stats add per-sync-config Prometheus metrics (powersync-service #770) #603

Description

@benitav

What's changing: PowerSync Service now tracks storage statistics for S3-compatible object storage (used by MongoDB V3 storage), and exposes new Prometheus metrics attributing storage size and record counts per sync config, in addition to the existing global storage metrics.

High priority — existing docs are now inaccurate or incomplete
None identified. The existing metrics (replication_storage_size_bytes, operation_storage_size_bytes, parameter_storage_size_bytes) are unchanged by this PR.

For reviewer consideration — worth documenting

  • New Prometheus metrics: powersync_object_storage_size_bytes (total object storage size) and four per-sync-config attribution metrics, powersync_attributed_source_records_bytes, powersync_attributed_bucket_data_bytes, powersync_attributed_parameter_indexes_bytes, and powersync_attributed_object_storage_bytes, each labeled by sync_config_id and sync_config_state. Usage Reporting (maintenance-ops/self-hosting/usage-reporting.mdxhttps://docs.powersync.com/maintenance-ops/self-hosting/usage-reporting), "What is Collected" table, lists the currently reported metric dimensions but doesn't include these new ones.

Source PR: powersync-ja/powersync-service#770. Merged 2026-08-31.

Filed automatically by Claude Code (claude-sonnet-5). A human must verify the scope, prepare the docs PR, and publish it only once this update has been released.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions