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

Disable unused metrics #114

Merged
merged 2 commits into from
Dec 19, 2024
Merged

Disable unused metrics #114

merged 2 commits into from
Dec 19, 2024

Conversation

aquarat
Copy link
Contributor

@aquarat aquarat commented Dec 18, 2024

This PR removes unused metrics from the metrics endpoint.

Some of the metrics provided by the existing endpoint code run slow queries on the DB, which bog down the server and often time out.

Closes #113

@aquarat aquarat requested a review from dcroote December 18, 2024 08:02
@aquarat aquarat self-assigned this Dec 18, 2024
out.push("# TYPE members_total_withdrawn gauge");
out.push("members_total_withdrawn " + withdrawn);
// out.push("");
// const total = await Wallets.fetchCount("");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I suspect this query will be slow.

// out.push("");
// const total = await Wallets.fetchCount("");
// out.push("# TYPE members_total gauge");
// out.push("members_total " + total);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Another slow candidate.

Copy link
Contributor

@dcroote dcroote left a comment

Choose a reason for hiding this comment

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

Makes sense to me! One suggestion for a reminder to future selves.

@aquarat aquarat merged commit 9fa0ebb into main Dec 19, 2024
3 checks passed
@aquarat aquarat deleted the 113-remove-unused-metrics branch December 19, 2024 09:34
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.

Remove unused metrics from metrics endpoint
2 participants