8000 feat: more sidecar metrics by aljo242 · Pull Request #27 · skip-mev/connect · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

feat: more sidecar metrics #27

Merged
merged 30 commits into from
Jan 24, 2024
Merged

feat: more sidecar metrics #27

merged 30 commits into from
Jan 24, 2024

Conversation

aljo242
Copy link
Contributor
@aljo242 aljo242 commented Jan 23, 2024

Closes BLO-803

  • gauge for prices per provider
  • gauge for aggregate prices
  • re-gen mocks accordingly
  • some minor clean up
  • Add GetResult interface (alias for fmt.Stringer) as a type restriction for our generic code

Copy link
codecov bot commented Jan 23, 2024

Welcome to Codecov 🎉

Once merged to your default branch, Codecov will compare your coverage reports and display the results in this comment.

Thanks for integrating Codecov - We've got you covered ☂️

@aljo242 aljo242 marked this pull request as draft January 23, 2024 17:23
@aljo242 aljo242 marked this pull request as ready for review January 24, 2024 15:25
Comment on lines +33 to 39

// UpdatePrice price updates the price for the given pairID for the provider.
UpdatePrice(name, handlerType, pairID string, price float64)

// UpdateAggregatePrice rice updates the aggregated price for the given pairID.
UpdateAggregatePrice(pairID string, price float64)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I would probably add one more metric here something like

AddPriceIncluded(name, handlertype, pairID, true/false)

this way we can track what price feeds are too stale in terms of how often they end up being consumed by the aggregator.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

won't the timestamps of the updates being pushed to the db show us how stale they are?

Copy link
Contributor

Choose a reason for hiding this comment

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

yea

Copy link
Contributor

Choose a reason for hiding this comment

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

good point just ship

@davidterpay davidterpay merged commit 87478d0 into main Jan 24, 2024
@aljo242 aljo242 deleted the feat/sidecar-metrics branch January 24, 2024 20:18
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.

2 participants
0