For a long time, the official docs for Cloud Profiler listed the supported platforms: GCE, GKE, App Engine, Dataproc, Dataflow, and outside Google Cloud:
But what about Cloud Run? Is Cloud Run supported for Cloud Profiler?
Some key features of Cloud Profiler:
- Profiles the program usage of resources for every function call in the stack.
- Allows production, continuous profiling, instead of profiling in a local, dev environment.
- Has a low resource impact on the app.
- Supports Go, Java, Python and Node.js.
- Can be used inside and outside of Google Cloud, just beware of authentication and some parameters that now should be included manually.
- Can be used just by including a new library in your code and starting the module in the app.
As Cloud Profiler works just by receiving profiles from your app via HTTP call (docs), and supports containers in GKE and GCE, and serverless services in App Engine, why it doesn’t list Cloud Run as a supported configuration?
And does it work? Yes!
Does it need any special configuration or modification? No!
Is there an OSS GitHub repo with a working solution you can check? Yes ofc!
github.com/Indavelopers/cloud-profiler-for-cloud-run
Now I shall submit a feedback to the Cloud Profiler team for them to update their docs with Cloud Run as a supported platform and any caveats if applicable…
Source Credit: https://medium.com/google-cloud/yes-cloud-run-apps-are-supported-in-cloud-profiler-ca1c3823c5d3?source=rss—-e52cf94d98af—4
