-
Notifications
You must be signed in to change notification settings - Fork 296
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
feat(dex): add initial metrics to dex actions #2860
Conversation
b52cc82
to
87c66ab
Compare
87c66ab
to
e8377d0
Compare
e8377d0
to
c3aaa86
Compare
describe_histogram!( | ||
DEX_TRADE_DURATION, | ||
Unit::Seconds, | ||
"The time spent executing trades within the DEX" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: later we should change this to DEX_ARB_DURATION
and make it track the end_block
arbitrage operation. this way we have individual measurements for both batch execution and arb execution which are the two main lifts for the dex engine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great feedback, added! Will follow up with some graphs next.
Shipping some new dex-related metrics. Care has been taken to ensure that we are emitting Histogram, rather than Summary, data types. More info: * https://prometheus.io/docs/practices/histograms/ * https://docs.rs/metrics-exporter-prometheus/0.10.0/metrics_exporter_prometheus/struct.PrometheusBuilder.html#method.set_buckets The buckets themselves were surely need to be tweaked, but for now, I'm eager to get these new metrics onto preview, and will follow up with some visualization work. Refs #2788.
c3aaa86
to
c2c2298
Compare
Shipping some new dex-related metrics. Care has been taken to ensure that we are emitting Histogram, rather than Summary, data types. More info:
The buckets themselves were surely need to be tweaked, but for now, I'm eager to get these new metrics onto preview, and will follow up with some visualization work.
Refs #2788.