Skip to content
This repository has been archived by the owner on Jun 19, 2022. It is now read-only.

PullSubscription and Storage importer metrics #250

Merged
merged 31 commits into from
Sep 12, 2019

Conversation

nachocano
Copy link
Member

@nachocano nachocano commented Sep 9, 2019

  • Adding event_count metrics to PullSubscription and Storage.
  • Commenting out current observability pattern. I think we can do a proper refactor if we think that is the right way to go later on.
  • The service account the receive adapter is running on needs to have roles/monitoring.metricWriter permissions to use the SD monitoring APIs... Example to set it up:
gcloud projects add-iam-policy-binding $PROJECT_ID \
  --member=serviceAccount:cloudrunevents-pullsub@$PROJECT_ID.iam.gserviceaccount.com \
  --role roles/monitoring.metricWriter

@knative-prow-robot
Copy link
Contributor

Hi @nachocano. Thanks for your PR.

I'm waiting for a google member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@nachocano nachocano changed the title [WIP] PullSubscription and Storage importer metrics PullSubscription and Storage importer metrics Sep 9, 2019
@n3wscott
Copy link
Contributor

n3wscott commented Sep 9, 2019

/ok-to-test

@nachocano
Copy link
Member Author

nachocano commented Sep 10, 2019

need to wait until knative/pkg#648 and knative/pkg#656 are merged, otherwise it doesn't compile...

@n3wscott
Copy link
Contributor

this should fix your deps issues: #254

@nachocano
Copy link
Member Author

@n3wscott ready for another look...

@nachocano
Copy link
Member Author

@n3wscott any idea of what can be wrong with the e2e here?

@nachocano
Copy link
Member Author

/test pull-google-knative-gcp-integration-tests

@nachocano
Copy link
Member Author

e2e tests are failing due to a bug that this PR will solve. Will update the CloudEvents SDK version then, and give it another try

@knative-metrics-robot
Copy link

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

File Old Coverage New Coverage Delta
pkg/pubsub/adapter/adapter.go 67.9% 57.1% -10.8
pkg/pubsub/adapter/observability.go 43.8% 0.0% -43.8
pkg/reconciler/pullsubscription/pullsubscription.go 68.0% 67.9% -0.0

@knative-prow-robot
Copy link
Contributor

@nachocano: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-google-knative-gcp-go-coverage b15a2fa link /test pull-google-knative-gcp-go-coverage

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

@n3wscott
Copy link
Contributor

/lgtm
/approve

THANKS!

@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: n3wscott, nachocano

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 merged commit 44f0efc into google:master Sep 12, 2019
@nachocano
Copy link
Member Author

/lgtm
/approve

THANKS!

THANK YOU!!!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants