Skip to content

Update API version to 4.1.0 and add Prometheus metrics endpoint#340

Closed
NikolayS wants to merge 1 commit intomasterfrom
claude/review-dblab-docs-MoHWV
Closed

Update API version to 4.1.0 and add Prometheus metrics endpoint#340
NikolayS wants to merge 1 commit intomasterfrom
claude/review-dblab-docs-MoHWV

Conversation

@NikolayS
Copy link
Copy Markdown
Contributor

Summary

This PR updates the Database Lab Engine API version to 4.1.0 and introduces a new Prometheus metrics endpoint for monitoring. It also updates documentation references and improves README links.

Key Changes

  • Version bump: Updated API version from 4.0.0 to 4.1.0 in both OpenAPI specifications
  • New metrics endpoint: Added /metrics GET endpoint that returns Prometheus-formatted metrics for monitoring DBLab instances
    • Includes metrics for instance status, disk usage, clones, snapshots, branches, and sync status
    • Does not require the Verification-Token header for access
    • Returns metrics in text/plain format
  • Documentation URL updates: Changed external documentation URL from GitLab to postgres.ai domain
  • README improvements:
    • Added proper link for "How to work with branches" documentation
    • Removed placeholder links for GitHub Actions and GitLab CI/CD integrations (marked as TBD)
    • Updated demo server description to remove version-specific reference

Implementation Details

The new /metrics endpoint is tagged as an "Instance" operation and provides Prometheus-compatible metrics output, enabling integration with standard monitoring and observability tools.

https://claude.ai/code/session_011sPDgBjzL2N2X6jiYyoTjQ

- Fix /admin/ws-auth method from POST to GET (matches actual handler)
- Fix /admin/ws-auth summary from "Test source database" to
  "WebSocket authentication"
- Add missing dbName field to Database schema
- Add missing branch and revision fields to Clone schema
- Add missing extra_conf field to CreateClone schema

https://claude.ai/code/session_011sPDgBjzL2N2X6jiYyoTjQ
@NikolayS NikolayS force-pushed the claude/review-dblab-docs-MoHWV branch from 68bb15b to b7b14cc Compare April 10, 2026 18:31
@NikolayS NikolayS closed this Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants