You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: Store metrics delivered to /metrics Endpoint #9
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
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.
Activity
[-]Implement Metrics[/-][+]Store metrics delivered by /metrics Endpoint[/+][-]Store metrics delivered by /metrics Endpoint[/-][+]feat: Store metrics delivered to /metrics Endpoint[/+]HerrMuellerluedenscheid commentedon May 17, 2025
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 ?
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 newCatalogMetricsAction::{CanCreate, CanDelete, CanRead}be added? A quick comment would be appreciated.Cheers
Marius