diff --git a/generate.sh b/generate.sh index a2dc6fe..bca0899 100755 --- a/generate.sh +++ b/generate.sh @@ -37,11 +37,11 @@ get_canary_state () { get_state "$result" } -get_edge_state () { +get_router_state () { location=$1 - edge=$2 + router=$2 - instance="edge$edge.$location.recycled.cloud" + instance="$router.$location.recycled.cloud" job="blackbox-external-icmpv6" result=$(query $EXTERNAL_PROMETHEUS_ADDR \ "probe_success{instance=\"$instance\", job=\"$job\"}") @@ -82,26 +82,36 @@ cat << EOF EOF for location in $LOCATIONS; do + upstream1=$(get_router_state "$location" 'upstream1') + upstream2=$(get_router_state "$location" 'upstream2') + + edge1=$(get_router_state "$location" 'edge1') + edge2=$(get_router_state "$location" 'edge2') + canary_v6=$(get_canary_state "$location" 6) canary_v4=$(get_canary_state "$location" 4) - edge1=$(get_edge_state "$location" 1) - edge2=$(get_edge_state "$location" 2) - cat <<- EOF

$location

-
+
+

Upstreams

+
    +
  • 1 $upstream1
  • +
  • 2 $upstream2
  • +
+
+

Routers

  • edge1 $edge1
  • edge2 $edge2
-
+

Canary VM

  • IPv6 $canary_v6