github.com/google/cloudprober@v0.11.3/examples/templates/cloudprober.cfg (about)

     1  # .region is a special variable that expands to the region where Cloudprober is
     2  # running. Other such variables are: zone, project, instance, etc. More
     3  # varibles can be found here:
     4  # https://github.com/google/cloudprober/blob/master/sysvars/sysvars_gce.go
     5  {{$localregion := .region}}
     6  
     7  # Intra-region HTTP probe everywhere except in us-west1.
     8  {{if ne $localregion "us-west1"}}
     9  probe {
    10      name: "intraregion_http"
    11      type: HTTP
    12      targets {
    13          # Forwarding rules with names matching "web-fr-{{$localregion}}.*"
    14          gce_targets {
    15              forwarding_rules {}
    16          }
    17          regex: "^web-fr-{{$localregion}}.*"
    18      }
    19      interval_msec: 5000
    20      timeout_msec: 1000
    21      http_probe {
    22          port: 8080
    23      }
    24  }
    25  {{end}}