Skip to content

Add per-org query log hot bytes metric - #1128

Merged
bill-ph merged 1 commit into
mainfrom
codex/query-log-hot-bytes-metric
Aug 27, 2026
Merged

Add per-org query log hot bytes metric#1128
bill-ph merged 1 commit into
mainfrom
codex/query-log-hot-bytes-metric

Conversation

@bill-ph

@bill-ph bill-ph commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • export duckgres_org_query_log_hot_bytes{org} from the leader-owned storage sampler
  • measure heap, indexes, and TOAST across query-log leaf partitions; report zero before the table is initialized
  • keep hot-byte observation separate from S3 billing, retain the last good value on refresh failure, and clear the gauge on leadership loss

Testing

  • GOFLAGS=-run=TestStorageSampler just test-controlplane
  • just test-controlplane
  • just lint
  • PostgreSQL 16 smoke validation for absent and partitioned query-log tables

@github-actions

Copy link
Copy Markdown

Test Impact Plan

Deterministic summary of how this PR changes tests, CI runners, and coverage-risk signals.

Summary

Area Added Changed Deleted
Test files 0 1 0
E2E/journey files 0 0 0
Workflow files 0 0 0

Signals

  • Test cases: +2 / -0
  • Assertions: +10 / -0
  • Skips or known failures added: 0
  • Workflow continue-on-error added: 0
  • Workflow path filters added: 0
  • Test commands removed from justfile: 0
  • E2E/journey retry lines added: 0

Coverage risk: neutral or increased

No coverage-reduction warnings detected.

@bill-ph
bill-ph merged commit fb6f65d into main Aug 27, 2026
31 checks passed
@bill-ph
bill-ph deleted the codex/query-log-hot-bytes-metric branch August 27, 2026 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant