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

perf(mu): Implement Push Queue Lag Metrics #865

Open
Tracked by #801
jrdn91 opened this issue Jul 8, 2024 · 0 comments
Open
Tracked by #801

perf(mu): Implement Push Queue Lag Metrics #865

jrdn91 opened this issue Jul 8, 2024 · 0 comments
Labels
mu ao Messenger unit

Comments

@jrdn91
Copy link
Contributor

jrdn91 commented Jul 8, 2024

GIVEN I am a MU operator
WHEN I send a GET to the /metrics endpoint
THEN I should receive OpenMetrics detailing the amount of time each Data Item's "chain" of pushes take to be pushed through the network

The MU worker is in charge of enqueueing and dequeueing messages to process and needs a way to start a timer and stop the timer for a given "top level" message processing, which may resolve with more messages, which any of those messages may resolve with more messages etc.

The current worker logic will have to be retooled in a way to allow for a mechanism to defer a promise of sorts to know when each "level" of outbox messages have processed and weather they contain more messages to process or if the "level" is complete and can then stop the timer.

Relates to #866

@jrdn91 jrdn91 changed the title Push Lag perf(mu): Implement Push Queue Lag Metrics Jul 8, 2024
@jrdn91 jrdn91 added the mu ao Messenger unit label Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mu ao Messenger unit
Projects
None yet
Development

No branches or pull requests

1 participant