diff --git a/generate.sh b/generate.sh index a1445bd..f9333b8 100755 --- a/generate.sh +++ b/generate.sh @@ -41,9 +41,10 @@ get_edge_state () { location=$1 edge=$2 - instance="edge$edge-$(echo "$location" | cut -d. -f1).transfer.recycled.cloud" + instance="edge$edge.$location.recycled.cloud" + job="blackbox-external-icmpv6" result=$(query $EXTERNAL_PROMETHEUS_ADDR \ - "probe_success{instance=\"$instance\"}") + "probe_success{instance=\"$instance\", job=\"$job\"}") get_state "$result" } @@ -84,8 +85,8 @@ for location in $LOCATIONS; do canary_v6=$(get_canary_state "$location" 6) canary_v4=$(get_canary_state "$location" 4) - edge1_transfer=$(get_edge_state "$location" 1) - edge2_transfer=$(get_edge_state "$location" 2) + edge1=$(get_edge_state "$location" 1) + edge2=$(get_edge_state "$location" 2) cat <<- EOF
@@ -94,14 +95,14 @@ for location in $LOCATIONS; do
-

Routers

+

Routers

    -
  • edge1 $edge1_transfer
  • -
  • edge2 $edge2_transfer
  • +
  • edge1 $edge1
  • +
  • edge2 $edge2
-

Canary VM

+

Canary VM

  • IPv6 $canary_v6
  • IPv4 $canary_v4