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 histogram for max object costs #21535

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mystenmark
Copy link
Contributor

No description provided.

@mystenmark mystenmark requested a review from aschran March 18, 2025 21:31
Copy link

vercel bot commented Mar 18, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sui-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 21, 2025 7:29pm
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Mar 21, 2025 7:29pm
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Mar 21, 2025 7:29pm

authority_metrics
.consensus_handler_max_object_costs
.with_label_values(&["regular_commit"])
.set(shared_object_congestion_tracker.max_cost() as i64);
.observe(max_cost_us as f64 / 1_000.0);
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd leave this unmodifed and fix the buckets, because the "/1000" scalar makes no sense for modes that are not ExecutionTimeEstimate. Then we can adjust units as needed in grafana

(For that matter, the "_us" in the variable names above is incorrect because the commit handler is agnostic as to congestion control units.)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, I don't mind, but aren't we going to delete the old modes anyway? And we don't really care about this metric for the older ones.

Copy link
Contributor

Choose a reason for hiding this comment

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

I can see that argument. If you really want to make it specific to this mode I think it should be f64 seconds to match the convention for the other time-based histogram metrics (latency etc) - but nbd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants