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

Store metrics as map in DB #102

Merged
merged 6 commits into from
Jul 3, 2024
Merged

Store metrics as map in DB #102

merged 6 commits into from
Jul 3, 2024

Conversation

mahendrapaipuri
Copy link
Owner

No description provided.

* All aggregate metrics are stored as map to have more extensiblility on what we can store in DB

* The keys in the map are free and operators can add as many times of sub metrics for each parent metric

* Rewrite DB migrations to clean up all necessary versions

* Rename Usr and Grp to User and Group in model struct and use username and groupname in DB columns.

* Create our own sqlite package by nicking all necessary code from deps. New functions and aggregators are defined in our package to operate on metric maps

Signed-off-by: Mahendra Paipuri <[email protected]>
* Build mock_tsdb server during building of package

* Add more tests in internal packages to improve coverage

* Update e2e test outputs

Signed-off-by: Mahendra Paipuri <[email protected]>
@mahendrapaipuri mahendrapaipuri added the enhancement New feature or request label Jul 2, 2024
@mahendrapaipuri mahendrapaipuri added this to the v0.1.0 milestone Jul 2, 2024
Signed-off-by: Mahendra Paipuri <[email protected]>
Signed-off-by: Mahendra Paipuri <[email protected]>
@mahendrapaipuri mahendrapaipuri merged commit f2f4522 into main Jul 3, 2024
13 checks passed
@mahendrapaipuri mahendrapaipuri deleted the metric_map_in_db branch July 3, 2024 06:03
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

Successfully merging this pull request may close these issues.

1 participant