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

thriftbp: Match thrift client pool metrics to baseplate spec #577

Merged
merged 1 commit into from
Oct 31, 2022

Conversation

fishy
Copy link
Member

@fishy fishy commented Oct 28, 2022

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

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
@fishy fishy requested a review from a team as a code owner October 28, 2022 21:07
@fishy fishy requested review from pacejackson and mterwill and removed request for a team October 28, 2022 21:07
defer func() {
clientPoolGetsCounter.With(prometheus.Labels{
"thrift_pool": p.slug,
"thrift_success": strconv.FormatBool(err == nil),
Copy link
Member Author

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.

Copy link
Contributor

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?

Copy link
Member Author

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?

Comment on lines +297 to +298
e.slug,
e.slug,
Copy link
Contributor

@pacejackson pacejackson Oct 28, 2022

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.

Copy link
Member Author

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.

@fishy fishy merged commit 87a56c4 into reddit:master Oct 31, 2022
@fishy fishy deleted the thrift-client-pool-metrics branch October 31, 2022 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants