-
Notifications
You must be signed in to change notification settings - Fork 78
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
thriftbp: Match thrift client pool metrics to baseplate spec #577
Conversation
Temporarily emit both new and old metrics, we will remove the old metrics after the next release (so the next release will have both). While I'm here, also: 1. Remove statsd metrics from thrift client pool 2. Change redis client pool metric name following spec change
defer func() { | ||
clientPoolGetsCounter.With(prometheus.Labels{ | ||
"thrift_pool": p.slug, | ||
"thrift_success": strconv.FormatBool(err == nil), |
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.
note: the spec only defined thrift_pool
label, but I think thrift_success
label here would be really useful.
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.
What does "success" mean here though, succesfully getting a client from the pool?
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.
Yes. do you have a better name to suggest?
e.slug, | ||
e.slug, |
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.
🔕 why is e.slug here twice? same below.
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.
we are emitting both the old thrift_client_name
and new thrift_pool
labels.
Temporarily emit both new and old metrics, we will remove the old metrics after the next release (so the next release will have both).
While I'm here, also: