ЛР 6: OpenTelemetry, Prometheus, Loki, Tempo и Grafana — на 3

This commit is contained in:
2026-11-20 21:52:10 +03:00
parent 470d9d6f1e
commit dc7745064d
72 changed files with 4684 additions and 44 deletions
+18
View File
@@ -0,0 +1,18 @@
#!/bin/sh
# Docker socket actions are scoped to the explicitly named course stack.
case "${LAB6_PROJECT:-}" in
mtusi-lab6-grade3|mtusi-lab6-grade3-*) ;;
*) echo 'LAB6_PROJECT must identify the Lab 6 test stack' >&2; exit 2 ;;
esac
container() {
ids=$(docker ps -aq --filter "label=com.docker.compose.project=$LAB6_PROJECT" \
--filter "label=com.docker.compose.service=$1" \
--filter 'label=com.docker.compose.oneoff=False')
set -- $ids
if [ "$#" -ne 1 ]; then
echo 'Expected one Lab 6 service container' >&2
return 2
fi
printf '%s\n' "$1"
}