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

feat: store some metrics in db #2576

Merged
merged 2 commits into from
May 31, 2024
Merged

feat: store some metrics in db #2576

merged 2 commits into from
May 31, 2024

Conversation

bonomat
Copy link
Contributor

@bonomat bonomat commented May 29, 2024

I thought this could come handy.
For start, we are storing on-chain balance in the DB every hour.

These weren't used but exposed so we better remove them.
Copy link
Contributor

@luckysori luckysori left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

scheduler
.add_collect_metrics_job(pool.clone())
.await
.expect("To add the close liquidated position reminder job");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.expect("To add the close liquidated position reminder job");
.expect("To add the collect metrics job");

Creats a new table called `metrics` which is meant to be used to store business metrics which are not collected otherwise, such as,
- on-chain balance
- ln-balance
@bonomat bonomat enabled auto-merge May 29, 2024 23:31
@bonomat bonomat added this pull request to the merge queue May 29, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 29, 2024
@bonomat bonomat added this pull request to the merge queue May 31, 2024
Merged via the queue into main with commit a544aa7 May 31, 2024
23 checks passed
@bonomat bonomat deleted the feat/stats branch May 31, 2024 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants