feat(backend): API & Database Scaling Parts 37, 38, 42 & 50 (#727, #728, #732, #740)#848
Merged
Merged
Conversation
…nd db settings Issue Gildado#727 / Gildado#282 — query pg_stat_activity grouped by state and application name, plus a curated subset of scaling-relevant pg_settings parameters. Co-authored-by: Cursor <cursoragent@cursor.com>
Issue Gildado#727 / Gildado#282 — expose GET /connection-breakdown and GET /db-settings with Swagger annotations following existing db-scaling conventions. Co-authored-by: Cursor <cursoragent@cursor.com>
… and db-settings Issue Gildado#727 / Gildado#282 — five test cases covering success, empty, and error paths. Co-authored-by: Cursor <cursoragent@cursor.com>
… metrics Issue Gildado#728 / Gildado#283 — surface tables with high sequential scan ratios and cumulative WAL generation statistics from pg_stat_wal. Co-authored-by: Cursor <cursoragent@cursor.com>
Issue Gildado#728 / Gildado#283 — expose GET /seq-scan-stats and GET /wal-stats with parameter validation and Swagger annotations. Co-authored-by: Cursor <cursoragent@cursor.com>
…al-stats Issue Gildado#728 / Gildado#283 — six test cases covering limit validation and error paths. Co-authored-by: Cursor <cursoragent@cursor.com>
… usage Issue Gildado#732 / Gildado#287 — query pg_stat_bgwriter for checkpoint/buffer stats and pg_stat_database for temporary file spill metrics on the current database. Co-authored-by: Cursor <cursoragent@cursor.com>
Issue Gildado#732 / Gildado#287 — expose GET /bgwriter-stats and GET /temp-file-usage with Swagger annotations following existing db-scaling conventions. Co-authored-by: Cursor <cursoragent@cursor.com>
…emp-file-usage Issue Gildado#732 / Gildado#287 — four test cases covering success and error paths. Co-authored-by: Cursor <cursoragent@cursor.com>
…lock-io-stats Issue Gildado#740 / Gildado#295 — four test cases covering database-wide transaction metrics and block I/O timing endpoints; update test file header for all covered parts. Co-authored-by: Cursor <cursoragent@cursor.com>
|
@0x860 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements eight new DB scaling diagnostic endpoints continuing the PostgreSQL observability series in
dbScalingService,dbScalingController, anddbScalingRoutes.Part 37 — Issue #282 (#727)
GET /api/v1/db-scaling/connection-breakdownpg_stat_activityGET /api/v1/db-scaling/db-settingspg_settingsPart 38 — Issue #283 (#728)
GET /api/v1/db-scaling/seq-scan-stats?limit=20pg_stat_user_tablesGET /api/v1/db-scaling/wal-statspg_stat_walPart 42 — Issue #287 (#732)
GET /api/v1/db-scaling/bgwriter-statspg_stat_bgwriterGET /api/v1/db-scaling/temp-file-usagepg_stat_databasePart 50 — Issue #295 (#740)
GET /api/v1/db-scaling/database-statspg_stat_databaseGET /api/v1/db-scaling/block-io-statspg_stat_databaseAll endpoints follow existing auth, error handling, logging, and Swagger annotation conventions. Integration tests added in
dbScalingRoutes.test.ts.Verification
seq-scan-stats(limit, max 100)bigintvalues wrapped withNumber()for JSON serialisation safety0x860 <hello@collinsadi.xyz>Closes #727
Closes #728
Closes #732
Closes #740
Made with Cursor