Skip to content

chore: add metrics + clean alerting to track GRPC connection use #1035

@thlorenz

Description

@thlorenz

Details

Added Metrics

We want to add a metric that tracks the total amount of connections made per GRPC client
(inside the stream manager) magicblock-chainlink/src/remote_account_provider/chain_laser_actor/stream_manager.rs

Currently we track amount of un/optimized streams, but would add another gauge that tracks the
total amount of streams (including the current stream).
It would also be increased on each optimization to tell us how high we spike during that
operation

Metrics are defined inside magicblock-metrics/src/metrics/mod.rs

Alerting

Currently we log an error each time a GRPC connection fails.
Instead should do this the very first time and then only every 1min or so in order not to
overwhelm the alerts.

Metadata

Metadata

Assignees

Labels

P2Medium priority

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions