Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

metrics: add WAL checkpoint metrics #209

Merged
merged 3 commits into from
Sep 24, 2024
Merged

Commits on Sep 24, 2024

  1. metrics: add WAL checkpoint metrics

    Add metrics for the WAL checkpoint pages for each database.
    
    Log output:
    ```
    info: WAL checkpoint {"class":"StandaloneSqliteDatabase","dbName":"data","timestamp":"2024-09-24T14:22:13.957Z","walCheckpoint":{"busy":0,"checkpointed":0,"log":0}}
    ```
    
    Metric output:
    ```
    sqlite_wal_checkpoint_pages{db="data",type="busy"} 0
    sqlite_wal_checkpoint_pages{db="data",type="checkpointed"} 0
    sqlite_wal_checkpoint_pages{db="data",type="log"} 0
    ```
    karlprieb committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    42a23df View commit details
    Browse the repository at this point in the history
  2. chore: correct cleanupWal return type

    The function on the worker now returns a value so we can record metrics
    in the parent.
    djwhitt committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    c888584 View commit details
    Browse the repository at this point in the history
  3. chore: return promise from cleanupWal

    We want to return a promise so callers can await on it if desired.
    djwhitt committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    6f7db64 View commit details
    Browse the repository at this point in the history