I would like to create an idle or uptime metric for all dataproc clusters I am running, and from what I've seen in stackdriver, I was not able to do so. My scenario is that I have timed dataproc jobs that run daily and after the jobs are done I delete the cluster. I would like to create an alert via email if there are idle dataproc clusters that do nothing for an hour or a dataproc cluster uptime is more then 24 (or even 20) hours.
Thanks.