github.com/GoogleCloudPlatform/testgrid@v0.0.174/terraform/main.tf (about)

     1  # Copyright 2022 The TestGrid Authors.
     2  #
     3  # Licensed under the Apache License, Version 2.0 (the "License");
     4  # you may not use this file except in compliance with the License.
     5  # You may obtain a copy of the License at
     6  #
     7  #     http://www.apache.org/licenses/LICENSE-2.0
     8  #
     9  # Unless required by applicable law or agreed to in writing, software
    10  # distributed under the License is distributed on an "AS IS" BASIS,
    11  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  # See the License for the specific language governing permissions and
    13  # limitations under the License.
    14  
    15  # Store terraform states in GCS
    16  terraform {
    17    backend "gcs" {
    18      bucket = "k8s-testgrid-metrics-terraform"
    19    }
    20  }
    21  
    22  module "alert" {
    23    source = "./modules/alerts"
    24  
    25    project = "k8s-testgrid"
    26    # gcloud alpha monitoring channels list --project=k8s-testgrid
    27    # grep displayName: Michelle
    28    notification_channel_id = "12611470047778396886"
    29  
    30    blackbox_probers = [
    31      // Production
    32      // Check both the original and the aliased URLs
    33      "k8s-testgrid.appspot.com",
    34      "testgrid.k8s.io",
    35      // Canary
    36      "external-canary-dot-k8s-testgrid.appspot.com",
    37    ]
    38  
    39    pubsub_topics = [
    40      "canary-testgrid",
    41      "testgrid",
    42    ]
    43  }