Skip to content

feat: Store metrics delivered to /metrics Endpoint #9

Open

Description

@c-thiel

Currently Lakekeeper does not store the metrics delivered to /v1/{prefix}/namespaces/{namespace}/tables/{table}/metrics. In the future, these metrics become relevant for table optimizations.

This issue is about storing the delivered metrics in Lakekeepers Catalog Backend instead of discarding them.

This issue includes:

  • Writing the Metrics struct in a way that it can easily be contributed to iceberg-rust
  • Add a new Postgres Table that is suitable to store this data
  • Write rust code to store Data in the Database by extending the Catalog trait and its Postgres implementation

Activity

  1. added
    enhancement
    big
    on May 14, 2024
  2. changed the title [-]Implement Metrics[/-] [+]Store metrics delivered by /metrics Endpoint[/+] on Jun 15, 2024
  3. changed the title [-]Store metrics delivered by /metrics Endpoint[/-] [+]feat: Store metrics delivered to /metrics Endpoint[/+] on May 2, 2025
  4. added
    help wanted
    and removed
    big
    on May 2, 2025
  5. HerrMuellerluedenscheid commented on May 17, 2025

    @HerrMuellerluedenscheid
    Contributor

    Writing the Metrics struct as part of the iceberg_ext crate of Lakekeeper, in a way that it can easily be contributed to iceberg-rust

    In #1094 I auto-generated the structs needed for both report types and kept them with minor modifications (fixed imports). They could be shortened, maybe merged, header comments removed and possibly even slightly simplified. I assume that is what is meant by 'easily be contributed to iceberg-rust'. However, keeping them as is would allow to re-run the same autogeneration when the schema gets updated in the future and have very prominent diffs. Could be helpful. But I'm fine with both ways. What is your take on that @c-thiel / @twuebi ?

    Write rust code to store Data in the Database by extending the Catalog trait and its Postgres implementation

    Simple version done in #1094 (though foreign keys are still to do). I'm uncertain regarding authorization requirements for writing metrics. I'm speculating required are CatalogRoleAction::CanUpdate, CatalogTableAction::CanWriteData. Or should a new CatalogMetricsAction::{CanCreate, CanDelete, CanRead} be added? A quick comment would be appreciated.

    Cheers
    Marius

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementhelp wanted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions