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

Add metrics on channels processing time #1826

Merged
merged 1 commit into from
May 26, 2021
Merged

Add metrics on channels processing time #1826

merged 1 commit into from
May 26, 2021

Conversation

pm47
Copy link
Member

@pm47 pm47 commented May 25, 2021

It's similar with built-in akka metrics, but with message-type granularity.

@pm47 pm47 requested a review from t-bast May 25, 2021 19:17
@codecov-commenter
Copy link

Codecov Report

Merging #1826 (8e68c3c) into master (4dc2910) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #1826   +/-   ##
=======================================
  Coverage   89.33%   89.34%           
=======================================
  Files         145      145           
  Lines       10973    10976    +3     
  Branches      464      450   -14     
=======================================
+ Hits         9803     9806    +3     
  Misses       1170     1170           
Impacted Files Coverage Δ
...c/main/scala/fr/acinq/eclair/channel/Channel.scala 86.32% <100.00%> (+0.18%) ⬆️
...ain/scala/fr/acinq/eclair/channel/Monitoring.scala 100.00% <100.00%> (ø)
...cala/fr/acinq/eclair/payment/relay/NodeRelay.scala 96.09% <0.00%> (-1.57%) ⬇️

Copy link
Member

@t-bast t-bast left a comment

Choose a reason for hiding this comment

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

Nice, this will be helpful in figuring out what bottlenecks appear in real-world settings!
It's going to create a lot of data though, I think that long-term it's something we may want to disable in production.

@pm47
Copy link
Member Author

pm47 commented May 26, 2021

It's going to create a lot of data though

It should be properly sampled by Kamon AFAIK?

@t-bast
Copy link
Member

t-bast commented May 26, 2021

It should be properly sampled by Kamon AFAIK?

It's probably ok (and we have more noisy metrics like signing in the key manager), we'll see later if that becomes an issue.

@pm47 pm47 merged commit 6f6c458 into master May 26, 2021
@pm47 pm47 deleted the channel-metrics branch May 26, 2021 08:27
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.

3 participants