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).
Unfortunately you would need to have the proper permissions to make us of that metric.