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

Expose structured stats to application #461

Open
rosenhouse opened this issue Oct 20, 2022 · 0 comments
Open

Expose structured stats to application #461

rosenhouse opened this issue Oct 20, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@rosenhouse
Copy link
Member

rosenhouse commented Oct 20, 2022

Feature request: An application may need to monitor splinterdb stats and do its own processing on that data (e.g. push data to an external metrics aggregator, expose data in a UI, etc).

Possible solution: We could add a simple API in the splinterdb.h layer that allows the application to retrieve stats, for example something roughly like

typedef struct {
   ... // contains numeric fields for the various stats
       // that get printed by the current stats-printing code
} splinterdb_stats;

void splinterdb_stats_get(splinterdb *kvs, splinterdb_stats *stats_out);
@rosenhouse rosenhouse added the enhancement New feature or request label Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant