Repository navigation
Add Stackdriver metrics exporter support for activator and autoscaler - #2337
Conversation
| return ctl.Run(controllerThreads, stopCh) | ||
| }) | ||
|
|
||
| // Setup the metrics to flow to Prometheus. |
There was a problem hiding this comment.
Is this started implicitly by importing "metrics" above?
There was a problem hiding this comment.
Yes, this will handled by metrics.UpdateExporterFromConfigMap. If it's prometheus, this will be called.
https://github.com/knative/pkg/blob/594df37bfda1543f724e76beeb0a74f530c1de57/metrics/exporter.go#L85
|
@tcnghia could you please take a look, especially |
| # Note: Using stackdriver would incur charges for knative-serving system metrics | ||
| # before we have own resource types. | ||
| metrics.stackdriver-project-id: "<your stackdriver project id>" | ||
|
No newline at end of file |
There was a problem hiding this comment.
nit: can you trim the space here?
| # To export metrics to stackdriver, you need to have a valid stackdriver project ID. | ||
| # Note: Using stackdriver would incur charges for knative-serving system metrics | ||
| # before we have own resource types. | ||
| metrics.stackdriver-project-id: "<your stackdriver project id>" |
There was a problem hiding this comment.
I'd comment this if you are putting in a bogus value.
There was a problem hiding this comment.
Can we use this to default this when the backend-destination is "stackdriver", but stackdriver-project-id is omitted?
This is going to be the right answer 99.9% of the time.
There was a problem hiding this comment.
Thanks for the feedback. We could actually skip this field if it's in GKE. I sent knative/pkg#147 for review.
There was a problem hiding this comment.
Can we comment this line out as well?
There was a problem hiding this comment.
Yes, I'll polish this pr after knative/pkg#147 is checked in.
|
/retest |
| -v -tags=e2e -count=1 -timeout=20m \ | ||
| ./test/conformance ./test/e2e \ | ||
| ${options} || fail_test | ||
| go_test_e2e -timeout=20m ./test/conformance ./test/e2e || fail_test |
There was a problem hiding this comment.
I don't understand how this change is relevant to your PR?
There was a problem hiding this comment.
This came from a merge with head.
|
/retest |
|
Gentle ping. @mattmoor @mdemirhan Could you please look at this? Thanks! |
|
|
||
| const ( | ||
| ObservabilityConfigName = "config-observability" | ||
| metricsDomain = "serving.knative.dev" |
There was a problem hiding this comment.
nit: use GroupName from pkg/apis/serving?
c8ebac0 to
8109211
Compare
|
@akyyy looks like you need a rebase. My comments are largely addressed, I'll defer to @mdemirhan |
b5f6878 to
d599159
Compare
|
The following is the coverage report on pkg/.
|
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: akyyy, mdemirhan The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest |
Fixes #2019
Proposed Changes