Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Request for new functionality
View staffing
Description
Please describe your requested enhancement. Good feature requests will solve common problems or enable new use cases.
Client would like to export alert policy data to Looker Studio. They have mentioned that it is enough to have the alert policies list from the UI as a dataset in BigQuery so that it is automatically updated whenever there are any changes to the policies. And they can later extract that data to Looker Studio.
After consulting different documentations [2] [3] [4] I came up with the following script [5] and suggested importing the file.csv to Looker [6]. They have mentioned that it is too much manual labour and they would like to have the list as a bigquery dataset that would update automatically as configurations change on the alert policies.
Kindly assist in creating a feature that would help the client have their alert policy data in BigQuery.
Other information (workarounds you have tried, documentation consulted, etc):
[2]:
[3]:
[4]:
[5]:
gcloud alpha monitoring policies list --format="csv(displayName:label=Alert_Name,creationRecord.mutateTime:label=Created_On, mutationRecord.mutateTime:label=Last_Modified_On,mutationRecord.mutatedBy:label=Last_Modified_By,enabled:label=Enabled_Status)" > file.csv
[6]: