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 for the shadow autopilot #2079

Merged
merged 3 commits into from
Nov 28, 2023
Merged

Add metrics for the shadow autopilot #2079

merged 3 commits into from
Nov 28, 2023

Conversation

fleupold
Copy link
Contributor

Description

When changing the shadow infra over to the colocated architecture, we need to also create a replacement for the shadow solver dashboard. This PR prepares this.

Changes

  • Implement dummy liveness check for shadow runloop
  • Serve metrics in shadow mode
  • Record a few more metrics (mainly the winner in each auction + total orders in the book)

How to test

Running locally and checking http://localhost:9589/metrics

Will update the dashboard once this is merged.

@fleupold fleupold marked this pull request as ready for review November 24, 2023 13:47
@fleupold fleupold requested a review from a team as a code owner November 24, 2023 13:47
Comment on lines +33 to +34
// can we somehow check that we keep processing auctions?
true
Copy link
Contributor

Choose a reason for hiding this comment

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

We could make the Liveness struct part of the shared server state and update a timestamp whenever some solver processed an auction.
Then is_alive() would check that this timestamp is not older than some healthy duration.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@fleupold fleupold enabled auto-merge (squash) November 28, 2023 12:03
@fleupold fleupold merged commit a72c4c3 into main Nov 28, 2023
7 of 8 checks passed
@fleupold fleupold deleted the shadow_metrics branch November 28, 2023 12:07
@github-actions github-actions bot locked and limited conversation to collaborators Nov 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants