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

Send request metrics from queue proxy #3596

Merged
merged 15 commits into from
Apr 2, 2019

Conversation

yanweiguo
Copy link
Contributor

Add support to send request metrics from the queue proxy. This functionality already exists in Istio mesh and the reason for the duplication here is to move towards eliminating our dependency on Istio's mesh functionality.

/lint

@knative-prow-robot knative-prow-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 29, 2019
@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Mar 29, 2019
@knative-prow-robot knative-prow-robot added area/API API objects and controllers area/networking size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Mar 29, 2019
Copy link
Contributor

@knative-prow-robot knative-prow-robot left a comment

Choose a reason for hiding this comment

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

@yanweiguo: 0 warnings.

In response to this:

Add support to send request metrics from the queue proxy. This functionality already exists in Istio mesh and the reason for the duplication here is to move towards eliminating our dependency on Istio's mesh functionality.

/lint

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@knative-prow-robot knative-prow-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Mar 30, 2019
@yanweiguo yanweiguo changed the title [WIP] Send request metrics from queue proxy Send request metrics from queue proxy Mar 30, 2019
@knative-prow-robot knative-prow-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 30, 2019
@@ -274,7 +285,7 @@ func main() {

timeoutHandler := queue.TimeToFirstByteTimeoutHandler(http.HandlerFunc(handler(reqChan, breaker, httpProxy, h2cProxy)),
time.Duration(revisionTimeoutSeconds)*time.Second, "request timeout")
composedHandler := pushRequestLogHandler(timeoutHandler)
composedHandler := pushRequestMetricHandler(pushRequestLogHandler(timeoutHandler))
Copy link
Member

Choose a reason for hiding this comment

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

Did you mean to replace the log handler?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No. Hmm, what I did is adding a handler layer to the log handler, isn't it?

cmd/queue/main.go Show resolved Hide resolved
pkg/queue/stats/stats_reporter.go Outdated Show resolved Hide resolved
cmd/queue/main.go Outdated Show resolved Hide resolved
cmd/queue/main.go Outdated Show resolved Hide resolved
cmd/queue/main.go Outdated Show resolved Hide resolved
config/config-observability.yaml Outdated Show resolved Hide resolved
config/config-observability.yaml Outdated Show resolved Hide resolved
config/config-observability.yaml Show resolved Hide resolved
pkg/queue/request_metric.go Outdated Show resolved Hide resolved
@mdemirhan
Copy link
Contributor

minor comments. Mostly about documentation.

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Mar 31, 2019
@yanweiguo
Copy link
Contributor Author

/test pull-knative-serving-upgrade-tests
/test pull-knative-serving-integration-tests

2 similar comments
@yanweiguo
Copy link
Contributor Author

/test pull-knative-serving-upgrade-tests
/test pull-knative-serving-integration-tests

@yanweiguo
Copy link
Contributor Author

/test pull-knative-serving-upgrade-tests
/test pull-knative-serving-integration-tests

@mdemirhan
Copy link
Contributor

/approve

@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mdemirhan, yanweiguo

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 1, 2019
@yanweiguo
Copy link
Contributor Author

/test pull-knative-serving-integration-tests

2 similar comments
@yanweiguo
Copy link
Contributor Author

/test pull-knative-serving-integration-tests

@yanweiguo
Copy link
Contributor Author

/test pull-knative-serving-integration-tests

@knative-prow-robot knative-prow-robot removed the lgtm Indicates that a PR is ready to be merged. label Apr 1, 2019
@mdemirhan
Copy link
Contributor

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 1, 2019
@mdemirhan
Copy link
Contributor

/test pull-knative-serving-integration-tests

@knative-prow-robot knative-prow-robot removed the lgtm Indicates that a PR is ready to be merged. label Apr 1, 2019
@yanweiguo
Copy link
Contributor Author

Fixed the cause which breaks integration tests: SERVING_SERVICE can be empty.

@knative-metrics-robot
Copy link

The following is the coverage report on pkg/.
Say /test pull-knative-serving-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/queue/request_metric.go Do not exist 100.0%
pkg/queue/stats/stats_reporter.go Do not exist 75.5%

@mdemirhan
Copy link
Contributor

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 2, 2019
@knative-prow-robot knative-prow-robot merged commit 218f397 into knative:master Apr 2, 2019
@yanweiguo yanweiguo deleted the requestmetrics branch July 16, 2019 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/API API objects and controllers area/networking cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants