I have REST API running on GCP Cloud Run. I would like to monitor latency / response time, grouped per path (URI), so that I can spot paths that have bad response times.
For instance, let say I have 3 paths, I would like to see some metrics like:
/v1/users
→ percentile 50%: 500 ms, percentile 95%: 2400 ms/v1/book
→ percentile 50%: 240 ms, percentile 95%: 1003 ms/v1/readlists
→ percentile 50%: 10 ms, percentile 95%: 13 ms
I tried creating some kind of visualization with Monitoring and Trace, but failed to filter (so that I see only /v1
URIs) and group (by path). The best I have so far is a report on Trace that show me these metrics for /v1
. I could theoretically create one report per endpoint, but that looks cumbersome and I am certain I can do the grouping on 1 visualization.
I am a beginner on monitoring on GCP, is it possible to do this?
Edit for clarification: I would like to do it using Monitoring (so that I can see it on my dashboard) or another product. But I would like to avoid modifying the application code (such as with Cloud Endpoint). I know the metrics I want are already available, because I can generate a Trace report for each endpoint. I am just missing a way to display that data in a single place, without having to manually specify each endpoint.