Skip to content

thrift_proxy: add upstream cluster metrics for MessageType#15668

Merged
mattklein123 merged 14 commits intoenvoyproxy:mainfrom
williamsfu99:thrift_upstream
Apr 6, 2021
Merged

thrift_proxy: add upstream cluster metrics for MessageType#15668
mattklein123 merged 14 commits intoenvoyproxy:mainfrom
williamsfu99:thrift_upstream

Conversation

@williamsfu99
Copy link
Contributor

Signed-off-by: William Fu wfu@pinterest.com

We have messagetype thrift metrics on the listener side, aka thrift_proxy's connection_manager implementation, but it is also useful to distinguish these counters across each upstream when we have multiple thrift upstreams handled by the router.

Commit Message: thrift_proxy: add upstream cluster metrics for MessageType
Additional Description:
Risk Level: medium (affects thrift customers)
Testing: new unit tests
Docs Changes:
Release Notes:
Platform Specific Features:

@williamsfu99 williamsfu99 requested a review from zuercher as a code owner March 25, 2021 21:02
@williamsfu99
Copy link
Contributor Author

cc @rgs1 @fishcakez

Copy link
Member

@rgs1 rgs1 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks Will! Left an inline comment plus two additional asks:

  • can you document the new stats in docs/root/configuration/other_protocols/thrift_filters/router_filter.rst
  • can you also add a changelog entry to docs/root/version_history/current.rst

Signed-off-by: William Fu <wfu@pinterest.com>

Do not pass cluster scope around

Signed-off-by: William Fu <wfu@pinterest.com>

Update rst files

Signed-off-by: William Fu <wfu@pinterest.com>
William Fu added 3 commits March 26, 2021 10:31
Signed-off-by: William Fu <wfu@pinterest.com>
Signed-off-by: William Fu <wfu@pinterest.com>
Signed-off-by: William Fu <wfu@pinterest.com>
William Fu added 3 commits March 26, 2021 10:40
Signed-off-by: William Fu <wfu@pinterest.com>
Signed-off-by: William Fu <wfu@pinterest.com>
Signed-off-by: William Fu <wfu@pinterest.com>
Copy link
Member

@rgs1 rgs1 left a comment

Choose a reason for hiding this comment

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

Looks great -- thanks for the update, I have one more question.

COUNTER(request_invalid_type) \
COUNTER(response_reply) \
COUNTER(response_exception) \
COUNTER(response_invalid_type)
Copy link
Member

Choose a reason for hiding this comment

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

while we are here, do we also want to bytes per request/response?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can do that in a follow-up PR, I just want to cover messageTypes for now (as we don't have any per-upstream metrics to begin with).

rgs1
rgs1 previously approved these changes Mar 29, 2021
Copy link
Member

@rgs1 rgs1 left a comment

Choose a reason for hiding this comment

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

Thanks!

Over to @zuercher for another pass & eventual merging.

Signed-off-by: William Fu <wfu@pinterest.com>
@williamsfu99 williamsfu99 reopened this Mar 30, 2021
William Fu added 3 commits March 30, 2021 11:23
…thrift_upstream

Signed-off-by: William Fu <wfu@pinterest.com>
Signed-off-by: William Fu <wfu@pinterest.com>
Signed-off-by: William Fu <wfu@pinterest.com>
Signed-off-by: William Fu <wfu@pinterest.com>
rgs1
rgs1 previously approved these changes Apr 1, 2021
Copy link
Member

@rgs1 rgs1 left a comment

Choose a reason for hiding this comment

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

LGTM -- thanks. Over to @zuercher.

Signed-off-by: William Fu <wfu@pinterest.com>
Signed-off-by: William Fu <wfu@pinterest.com>
Copy link
Member

@zuercher zuercher left a comment

Choose a reason for hiding this comment

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

Thanks!

@zuercher
Copy link
Member

zuercher commented Apr 6, 2021

@rgs1 can you have another look since a couple things changed?

@mattklein123 mattklein123 merged commit fe4e11d into envoyproxy:main Apr 6, 2021
@williamsfu99 williamsfu99 deleted the thrift_upstream branch April 7, 2021 03:42
zuercher pushed a commit that referenced this pull request Apr 14, 2021
)

In #15668 we began supporting cluster level metrics for the thrift_proxy connection manager. These metrics were limited to messageType counters only; now that these are working OK we are comfortable moving to cluster level histograms for upstream_rq_time.

Risk Level: Low
Testing: New unit tests
Docs Changes: future pr
Release Notes: updated
Signed-off-by: William Fu <wfu@pinterest.com>
douglas-reid pushed a commit to douglas-reid/envoy that referenced this pull request Apr 19, 2021
…oyproxy#15884)

In envoyproxy#15668 we began supporting cluster level metrics for the thrift_proxy connection manager. These metrics were limited to messageType counters only; now that these are working OK we are comfortable moving to cluster level histograms for upstream_rq_time.

Risk Level: Low
Testing: New unit tests
Docs Changes: future pr
Release Notes: updated
Signed-off-by: William Fu <wfu@pinterest.com>
Signed-off-by: Douglas Reid <douglas-reid@users.noreply.github.com>
Monkeyanator pushed a commit to Monkeyanator/envoy that referenced this pull request Apr 20, 2021
…oyproxy#15884)

In envoyproxy#15668 we began supporting cluster level metrics for the thrift_proxy connection manager. These metrics were limited to messageType counters only; now that these are working OK we are comfortable moving to cluster level histograms for upstream_rq_time.

Risk Level: Low
Testing: New unit tests
Docs Changes: future pr
Release Notes: updated
Signed-off-by: William Fu <wfu@pinterest.com>
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.

4 participants