Create alerting policy for uptime check using terraform

397 views
Skip to first unread message

Adam Raszkiewicz

unread,
Jul 2, 2021, 1:11:19 PM7/2/21
to Google Stackdriver Discussion Forum

Is there any way to create alerting policy for uptime check using terraform? Provided examples in the terraform docs show only alerting policy for metrics not uptime check so I'm not sure if that is even possible with the terraform.

Mary Koes

unread,
Jul 2, 2021, 1:52:57 PM7/2/21
to Adam Raszkiewicz, Roy Nuriel, Alisa Goldstein, Google Stackdriver Discussion Forum
Hi Adam,

I'm going to add some more folks to answer your question:
@Roy Nuriel re:uptime
Also adding @Alisa Goldstein re:alerting

Thanks so much for using Cloud Ops!

Mary

On Fri, Jul 2, 2021 at 1:11 PM Adam Raszkiewicz <araszk...@medallies.com> wrote:

Is there any way to create alerting policy for uptime check using terraform? Provided examples in the terraform docs show only alerting policy for metrics not uptime check so I'm not sure if that is even possible with the terraform.

--
© 2021 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
 
Email preferences: You received this email because you signed up for the Google Stackdriver Discussion Google Group (google-stackdr...@googlegroups.com) to participate in discussions with other members of the GoogleStackdriver community.
---
You received this message because you are subscribed to the Google Groups "Google Stackdriver Discussion Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-stackdriver-d...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-stackdriver-discussion/6e9e4769-b9cd-490d-9edd-0ab622136502n%40googlegroups.com.

Adam Raszkiewicz

unread,
Jul 2, 2021, 4:16:12 PM7/2/21
to Google Stackdriver Discussion Forum
I'm stuck on how to get metric.label.check_id from already deployed resources to the alerting policy for the uptime check

Adam Raszkiewicz

unread,
Jul 15, 2021, 9:24:08 PM7/15/21
to Roy Nuriel, Mary Koes, Alisa Goldstein, Google Stackdriver Discussion Forum

I'm stuck on how to get metric.label.check_id from already deployed resources to the alerting policy for the uptime check

 

Other way it will try to destroy existing policy because that ID is known after creating that resource.

 

Thanks,

~ Adam

 

From: Roy Nuriel <rnu...@google.com>
Date: Thursday, July 8, 2021 at 11:45 AM
To: Mary Koes <mk...@google.com>
Cc: Adam Raszkiewicz <araszk...@medallies.com>, Alisa Goldstein <ali...@google.com>, Google Stackdriver Discussion Forum <google-stackdr...@googlegroups.com>
Subject: Re: [google-stackdriver-discussion] Create alerting policy for uptime check using terraform

 

CAUTION: This email originated from outside of MedAllies. Do not click links or open attachments unless you recognize the sender and know the content is safe.

 

Hi Adam,

Sorry for my late response.
Your understanding is correct - You can configure uptime checks and manage your alerts with Terraform.
We do have plans to add uptime check terraform support as well.

Please let me know if you have additional questions.

Roy 

Zach Hanna

unread,
Nov 2, 2021, 5:16:06 PM11/2/21
to Google Stackdriver Discussion Forum
Just checking - is there an update on this? 
Reply all
Reply to author
Forward
0 new messages