Skip to content

access_log: Added new command operator %VIRTUAL_CLUSTER_NAME% to retrieve the matched VC name#18941

Merged
mattklein123 merged 23 commits intoenvoyproxy:mainfrom
agrawroh:add-vc-name-to-access-logs
Nov 30, 2021
Merged

access_log: Added new command operator %VIRTUAL_CLUSTER_NAME% to retrieve the matched VC name#18941
mattklein123 merged 23 commits intoenvoyproxy:mainfrom
agrawroh:add-vc-name-to-access-logs

Conversation

@agrawroh
Copy link
Copy Markdown
Member

@agrawroh agrawroh commented Nov 9, 2021

This PR adds a new command operator in the access logs called %VIRTUAL_CLUSTER_NAME% which can be used to retrieve the matched Virtual Cluster name information.

It could be very useful for understanding which Virtual Cluster is getting matched for a given route especially when we have thousands of routes and a subset of Virtual Clusters.

Commit Message: Added new command operator %VIRTUAL_CLUSTER_NAME% to retrieve the matched VC name
Additional Description: Adds a new command operator called %VIRTUAL_CLUSTER_NAME% in the access logs which can be used to retrieve the matched Virtual Cluster name for the incoming request. It gets populated from the Router.
Risk Level: Low
Testing: Unit Tests
Docs Changes: Added description on %VIRTUAL_CLUSTER_NAME% in the Docs.
Release Notes: Added
Platform Specific Features: N/A

Signed-off-by: Rohit Agrawal rohit.agrawal@databricks.com

…ieve the matched VC name

Signed-off-by: Rohit Agrawal <rohit.agrawal@databricks.com>
Signed-off-by: Rohit Agrawal <rohit.agrawal@databricks.com>
Signed-off-by: Rohit Agrawal <rohit.agrawal@databricks.com>
@agrawroh agrawroh force-pushed the add-vc-name-to-access-logs branch from abe455d to 6aa15e8 Compare November 10, 2021 21:40
@agrawroh
Copy link
Copy Markdown
Member Author

/retest

@repokitteh-read-only
Copy link
Copy Markdown

Retrying Azure Pipelines:
Check envoy-presubmit isn't fully completed, but will still attempt retrying.
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #18941 (comment) was created by @agrawroh.

see: more, trace.

@agrawroh
Copy link
Copy Markdown
Member Author

/retest

@repokitteh-read-only
Copy link
Copy Markdown

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #18941 (comment) was created by @agrawroh.

see: more, trace.

Copy link
Copy Markdown
Contributor

@lambdai lambdai left a comment

Choose a reason for hiding this comment

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

Generally LGTM modulo minor nits

…o-access-logs

Signed-off-by: Rohit Agrawal <rohit.agrawal@databricks.com>
Signed-off-by: Rohit Agrawal <rohit.agrawal@databricks.com>
Signed-off-by: Rohit Agrawal <rohit.agrawal@databricks.com>
@agrawroh
Copy link
Copy Markdown
Member Author

/retest

@repokitteh-read-only
Copy link
Copy Markdown

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #18941 (comment) was created by @agrawroh.

see: more, trace.

@ggreenway
Copy link
Copy Markdown
Member

/wait

…o-access-logs

Signed-off-by: Rohit Agrawal <rohit.agrawal@databricks.com>
Signed-off-by: Rohit Agrawal <rohit.agrawal@databricks.com>
@agrawroh agrawroh requested a review from jmarantz November 18, 2021 22:57
@agrawroh
Copy link
Copy Markdown
Member Author

/retest

@repokitteh-read-only
Copy link
Copy Markdown

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #18941 (comment) was created by @agrawroh.

see: more, trace.

@agrawroh
Copy link
Copy Markdown
Member Author

/retest

@repokitteh-read-only
Copy link
Copy Markdown

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #18941 (comment) was created by @agrawroh.

see: more, trace.

Copy link
Copy Markdown
Contributor

@jmarantz jmarantz left a comment

Choose a reason for hiding this comment

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

/wait

@agrawroh agrawroh force-pushed the add-vc-name-to-access-logs branch 2 times, most recently from 4635bf6 to 5f3c0f3 Compare November 21, 2021 04:04
Signed-off-by: Rohit Agrawal <rohit.agrawal@databricks.com>
@agrawroh agrawroh force-pushed the add-vc-name-to-access-logs branch from 5f3c0f3 to d4eb829 Compare November 21, 2021 06:11
Copy link
Copy Markdown
Contributor

@jmarantz jmarantz 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 -- just a few minor nits

Signed-off-by: Rohit Agrawal <rohit.agrawal@databricks.com>
jmarantz
jmarantz previously approved these changes Nov 22, 2021
Copy link
Copy Markdown
Contributor

@jmarantz jmarantz left a comment

Choose a reason for hiding this comment

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

/assign-from @envoyproxy/senior-maintainers

@repokitteh-read-only
Copy link
Copy Markdown

@envoyproxy/senior-maintainers assignee is @zuercher

🐱

Caused by: a #18941 (review) was submitted by @jmarantz.

see: more, trace.

Copy link
Copy Markdown
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.

Sorry for the slow response, I was out last week. Just one comment below.

Copy link
Copy Markdown
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!

@mattklein123 mattklein123 merged commit c716ec6 into envoyproxy:main Nov 30, 2021
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.

6 participants