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

collectors: summarize limbo channel balances to avoid stuck values #94

Merged
merged 2 commits into from
Feb 20, 2023

Conversation

bhandras
Copy link
Member

This commit changes how we collect limbo balances to calculate summaries instead of separate series by channel, peer, status etc. Having just the summaries makes it possible to correctly select the last known total value which was previously not feasible when summarizing over longer periods due to values with channel/peer specific labels getting "stuck".

This commit changes how we collect limbo balances to calculate summaries
instead of separate series by channel, peer, status etc. Having just the
summaries makes it possible to correctly select the last known total
value which was previously not feasible when summarizing over longer
periods due to values with channel/peer specific labels getting "stuck".
@bhandras bhandras requested a review from guggero February 17, 2023 19:14
Copy link
Member

@guggero guggero left a comment

Choose a reason for hiding this comment

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

LGTM 🎉

tools/Dockerfile Outdated
@@ -11,6 +11,7 @@ RUN cd /tmp \
&& mkdir -p /tmp/build/.modcache \
&& cd /tmp/tools \
&& go install -trimpath -tags=tools github.com/golangci/golangci-lint/cmd/golangci-lint \
&& chmod -R 777 /tmp/build/
&& chmod -R 777 /tmp/build/ \
&& git config --global --add safe.directory /build
Copy link
Member

Choose a reason for hiding this comment

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

We found the actual problem for the linter error (a Golang bug) and a fix that allows us to determine more easily if it's fixed in a future version. See https://github.com/lightninglabs/pool/blob/master/tools/Dockerfile#L6.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks, sound much better.

@bhandras bhandras force-pushed the limbo-balance-summary branch from 0727052 to 1aac677 Compare February 20, 2023 08:01
@bhandras bhandras merged commit 777eafa into lightninglabs:master Feb 20, 2023
@bhandras bhandras deleted the limbo-balance-summary branch February 20, 2023 08:06
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