-
Notifications
You must be signed in to change notification settings - Fork 95
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
feat: Enable Prometheus sidecar in Cloud Run v2. #253
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add an example for prometheus use case!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @tjy9206
examples/v2_with_gmp/main.tf
Outdated
*/ | ||
|
||
module "cloud_run_v2" { | ||
source = "tjy9206/cloud-run/google//modules/v2" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: reminder to update
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the catch! Added a comment in the ticket as a reminder.
Should I wait this PR to be merged, create a version tag, and create a new PR to refer to that version? Or is there a recommended workflow for version controls like this?
Co-authored-by: Bharath KKB <[email protected]>
…llowup PR to fix it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we also update https://github.com/GoogleCloudPlatform/terraform-google-cloud-run/blob/main/test/setup/main.tf#L29 to add monitoring.googleapis.com
. This API needs to be enabled as per https://cloud.google.com/stackdriver/docs/managed-prometheus/cloudrun-sidecar#enable-apis
Enable Prometheus sidecar in Cloud Run v2. With the sidecar service we can view metrics for Cloud Run instances. Example: