<commit_before>{{with $shards := mkSlice "00" "01"}}
{{range $_, $shard := $shards}}
probe {
  type: PING
  name: "vm-to-google-{{$shard}}"
  targets {
    host_names: "8.8.8.8,8.8.4.4,www.google.com"
  }
  ping_probe {
    use_datagram_socket: true
  }
}
{{end}}
{{end}}

{{ $shard := "ig-us-east1-a-02-afgx" | extractSubstring "[^-]+-[^-]+-[^-]+-[^-]+-([^-]+)-.*" 1 }}
{{ $targets := printf "^ig.*-([^-]+-[^-]+-[^-]+)-%s-[^-]+$" $shard }}

probe {
  type: PING
  name: "vm-to-vm-{{$shard}}"
  targets {
    gce_targets {
      project: "google.com:vmradar-prod"
      instances {}
    }
    regex: "{{$targets}}"
  }
  ping_probe {}
}

probe {
  type: HTTP
  name: "vm-to-google-http-{{$shard}}"
  targets {
    host_names: "www.google.com,{{.hostname}}"
  }
  http_probe {
    protocol: HTTP
    relative_url: "/healthz"
  }
}


probe {
  type: DNS
  name: "vm-to-public-dns"
  targets {
    host_names: "8.8.8.8"
  }
  dns_probe {
    resolved_domain: "www.google.com."
  }
}

surfacer {
  type: PROMETHEUS
  name: "prometheus"
  prometheus_surfacer { }
}<commit_msg>Add a google-only extension to cloudprober that will allow it to work with the credentials stores supported by the prodoauth package.<commit_after>{{with $shards := mkSlice "00" "01"}}
{{range $_, $shard := $shards}}
probe {
  type: PING
  name: "vm-to-google-{{$shard}}"
  targets {
    host_names: "8.8.8.8,8.8.4.4,www.google.com"
  }
  ping_probe {
    use_datagram_socket: true
  }
}
{{end}}
{{end}}

{{ $shard := "ig-us-east1-a-02-afgx" | extractSubstring "[^-]+-[^-]+-[^-]+-[^-]+-([^-]+)-.*" 1 }}
{{ $targets := printf "^ig.*-([^-]+-[^-]+-[^-]+)-%s-[^-]+$" $shard }}

probe {
  type: PING
  name: "vm-to-vm-{{$shard}}"
  targets {
    gce_targets {
      project: "google.com:bbmc-testing-prod"
      instances {}
    }
    regex: "{{$targets}}"
  }
  ping_probe {}
}

probe {
  type: HTTP
  name: "vm-to-google-http-{{$shard}}"
  targets {
    host_names: "www.google.com,{{.hostname}}"
  }
  http_probe {
    protocol: HTTP
    relative_url: "/healthz"
  }
}


probe {
  type: DNS
  name: "vm-to-public-dns"
  targets {
    host_names: "8.8.8.8"
  }
  dns_probe {
    resolved_domain: "www.google.com."
  }
}

surfacer {
  type: PROMETHEUS
  name: "prometheus"
  prometheus_surfacer {
    port: 9314
  }
}
{'fraction_non_alphanumeric': 0.23029772329246936, 'fraction_numerical': 0.01926444833625219, 'mean_word_length': 2.846801346801347, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 6, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7452595', 'n_tokens_mistral': 1019, 'n_tokens_neox': 994, 'n_words': 166}