Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to view number of undelivered messages for pubsub using service account credentials?

Hi,

Is there a way to use the metric "metric.type= pubsub.googleapis.com/subscription/num_undelivered_messages" , for a pubsub which is only exposed via service account credentials. I can push or pull data from it, but when I try to use timeseries monitoring on it, it says Permission Denied. I have no way to check roles and permissions as the pubsub is not owned by me. If timeSeries cannot be implemented, is there any workaround for this?

Error: 

com.google.api.gax.rpc.PermissionDeniedException: io.grpc.StatusRuntimeException: PERMISSION_DENIED: Permission monitoring.timeSeries.list denied (or the resource may not exist).

 

 

0 1 763
1 REPLY 1

Unfortunately you would need to have the proper permissions to make us of that metric.