forked from mtusi2026/mtusi2026lab6
Implement lab6 observability with OpenTelemetry and Grafana
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
# The public failover test sets TARGET_INSTANCE_ID from the actual response header.
|
||||
set -eu
|
||||
cd "$(dirname "$0")/.."
|
||||
case "${TARGET_INSTANCE_ID:?missing TARGET_INSTANCE_ID}" in
|
||||
api1|api2) docker compose --env-file .env stop --timeout 1 "$TARGET_INSTANCE_ID" ;;
|
||||
*) echo 'Unexpected instance alias' >&2; exit 2 ;;
|
||||
esac
|
||||
Reference in New Issue
Block a user