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

Enable metrics-exporter example to run as cloud run job #249

Merged
merged 4 commits into from
Jun 6, 2023

Conversation

psx95
Copy link
Contributor

@psx95 psx95 commented May 17, 2023

Enhances the example by adding a README and by providing a convenience script to run the example as a cloud-run-job.

@psx95 psx95 marked this pull request as ready for review May 17, 2023 16:24
@psx95 psx95 requested a review from a team as a code owner May 17, 2023 16:24
@psx95 psx95 requested a review from jsuereth May 17, 2023 22:44
@psx95 psx95 added the automerge Summon MOG for automerging label May 17, 2023
@gcf-merge-on-green
Copy link

Merge-on-green attempted to merge your PR for 6 hours, but it was not mergeable because either one of your required status checks failed, one of your required reviews was not approved, or there is a do not merge label. Learn more about your required status checks here: https://help.github.com/en/github/administering-a-repository/enabling-required-status-checks. You can remove and reapply the label to re-run the bot.

@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Summon MOG for automerging label May 18, 2023
@psx95 psx95 merged commit 559c61c into GoogleCloudPlatform:main Jun 6, 2023
@psx95 psx95 deleted the test-cloud-run-job branch June 6, 2023 18:08
psx95 added a commit to psx95/opentelemetry-operations-java that referenced this pull request Jun 8, 2023
…latform#249)

* Add readme with steps to run the example

* Add script to run example as Cloud Run Job

* Replace GCR with Artifact Registry

* Rename GOOGLE_CLOUD_RUN_JOB_REGION to GOOGLE_CLOUD_RUN_REGION
psx95 added a commit that referenced this pull request Jun 13, 2023
* Support metric exporter for cloud run

* Enable metrics-exporter example to run as cloud run job (#249)

* Add readme with steps to run the example

* Add script to run example as Cloud Run Job

* Replace GCR with Artifact Registry

* Rename GOOGLE_CLOUD_RUN_JOB_REGION to GOOGLE_CLOUD_RUN_REGION

* Remove resource mapping for cloud-run

As per the exporter spec, we do not support pushing metric to cloud-run.
This change will cause cloud_run_revision to be treated as a
generic_task.

* Update the autoinstrument example to run in cloud-run

* Remove mapping for cloud functions

Cloud functions is also not writable for user-defined metrics, therefore
removing its explicit mapping so that it defaults to generic_task.

* Refactor: extract image name to a variable

* Update README to streamline service invocation instructions

* Update readme with instructions for command line
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.

2 participants