Content-Length: 289033 | pFad | http://github.com/paritytech/litep2p/pull/294/commits/dfd4b0de4ef49b279e66f232863d323809312afb

82 metrics: Expose litep2p metrics in an agnostic manner by lexnv · Pull Request #294 · paritytech/litep2p · GitHub
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

metrics: Expose litep2p metrics in an agnostic manner #294

Open
wants to merge 32 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
2245703
cargo: Add metrics feature flag with prometheus
lexnv Nov 29, 2024
c6154da
litep2p/config: Expose prometheus metrics in config
lexnv Nov 29, 2024
f3948c1
cargo: Make litep2p agnostic of metrics
lexnv Nov 29, 2024
31144bf
metrics: Add abstraction layers over metrics
lexnv Nov 29, 2024
77332aa
Expose metrics to litep2p transport layers
lexnv Nov 29, 2024
3ec010c
tcp: Extend collected metrics at intervals for code simplicity
lexnv Nov 29, 2024
5936083
tcp: Selectively poll interval if the metrics are enabled
lexnv Nov 29, 2024
c68ef20
metric: Extend Gauge methods with inc / dec
lexnv Nov 29, 2024
907312f
metrics: Add scope RAII metric counter
lexnv Nov 29, 2024
4362919
metrics: Make register methods less restrictive
lexnv Nov 29, 2024
5d91741
tcp: Extend with connection metrics
lexnv Nov 29, 2024
05f5741
websocket: Add specific metrics
lexnv Nov 29, 2024
f6d478d
req-resp: Propagate metrics
lexnv Nov 29, 2024
b5e80e2
notifications: Expose metrics
lexnv Nov 29, 2024
fc70eea
ping: Add metrics
lexnv Nov 29, 2024
b91b8a6
identify: Propagate metrics
lexnv Nov 29, 2024
48cb7ca
kad: Add metrics
lexnv Nov 29, 2024
27042cb
transport/manager: Add metrics
lexnv Nov 29, 2024
2de8a68
Simplify metrics collection
lexnv Nov 29, 2024
142e08f
tests: Adjust testing
lexnv Nov 29, 2024
7079ade
protocol: To metric name string
lexnv Nov 29, 2024
e543853
transport: Simplify collection
lexnv Nov 29, 2024
17786b6
tcp: Decrement metrics on connection closed
lexnv Dec 3, 2024
e43ee71
websocket: Decrement metrics on connection closed
lexnv Dec 3, 2024
fd084c8
websocket: Use ref mut self
lexnv Dec 3, 2024
09bd786
websocket: Fix clone move
lexnv Dec 3, 2024
cbc273d
metrics: Add MeteredFuturesStream
lexnv Dec 3, 2024
deb8b1a
metrics: Use MeteredFuturesStream for tcp and websocket
lexnv Dec 3, 2024
cf3faf1
Merge remote-tracking branch 'origen/master' into lexnv/metrics
lexnv Dec 3, 2024
125ee19
Fix docs
lexnv Dec 3, 2024
8ccf710
Merge branch 'master' into lexnv/metrics
lexnv Dec 3, 2024
dfd4b0d
Merge remote-tracking branch 'origen/master' into lexnv/metrics
lexnv Dec 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge remote-tracking branch 'origen/master' into lexnv/metrics
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
  • Loading branch information
lexnv committed Dec 11, 2024
commit dfd4b0de4ef49b279e66f232863d323809312afb
2 changes: 1 addition & 1 deletion src/protocol/libp2p/identify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ pub(crate) struct Identify {
pending_outbound: FuturesStream<BoxFuture<'static, crate::Result<IdentifyResponse>>>,

//github.com/ Pending inbound substreams.
pending_inbound: FuturesUnordered<BoxFuture<'static, ()>>,
pending_inbound: FuturesStream<BoxFuture<'static, ()>>,

//github.com/ Metrics.
metrics: Option<Metrics>,
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/paritytech/litep2p/pull/294/commits/dfd4b0de4ef49b279e66f232863d323809312afb

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy