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 timeout for node metric sending #1399

Merged
merged 2 commits into from
Jan 27, 2025
Merged

Add timeout for node metric sending #1399

merged 2 commits into from
Jan 27, 2025

Conversation

mjh1
Copy link
Contributor

@mjh1 mjh1 commented Jan 27, 2025

In prod I saw stale metrics being ignored so we need to check the durations of the send operation and add an appropriate timeout.

}),
CatabalancerSendDBDurationSec: promauto.NewHistogramVec(prometheus.HistogramOpts{
Name: "catabalancer_send_db_duration",
Help: "Time taken to send catabalancer node metric updates to DB",
Copy link
Contributor

Choose a reason for hiding this comment

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

This one is for sending metric update to DB.
What is catabalancer_send_metric_duration about? It includes the time for pulling the metrics from mist, right?
I'm not sure if I understand the difference reading the Help: message

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's right so we have a better idea of where any slowness lies, I'll update the help text

@mjh1 mjh1 merged commit a4b62c9 into main Jan 27, 2025
8 of 9 checks passed
@mjh1 mjh1 deleted the mh/catabalanc branch January 27, 2025 12:49
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.

None yet

2 participants