Hi,
I've an existing email notification channel in my project and I've tried to add a pubsub channel. However, I'm unable to find the service account used by pubsub topics. Based on the documentation (https://cloud.google.com/monitoring/support/notification-options#pubsub), the SA should be automatically created.
Is there a way to create this SA manually or force Cloud Monitoring to create the SA account?
Thanks.
If you have created a new Pub/Sub notification channel, the Service account should be created, and roles/permissions "Monitoring Service Agent" should also be granted . To view the IAM role assignment in console you have to check the "Include Google-provided role grants" box like the screenshot below.
To clarify, since it is not really a resource of your project (like service accounts you create), but rather Google Robot account, you will not see it in the "Service account" section in console and you can not list it using CLI commands.
If not in the IAM page, and just like any other account (service or user), you can directly assign it the required roles/permissions in the project through console or CLI commands. However, if the account is not created, you will get a similar error like this one:
In this case, trace back the steps to creating a new topic and a new pub/sub notification channel. Best of luck.