diff --git a/gpulive/monitoring/overlays/default/grafana/patch-cm.yaml b/gpulive/monitoring/overlays/default/grafana/patch-cm.yaml index 953b951..2019016 100644 --- a/gpulive/monitoring/overlays/default/grafana/patch-cm.yaml +++ b/gpulive/monitoring/overlays/default/grafana/patch-cm.yaml @@ -25,4 +25,8 @@ data: provisioning = /etc/grafana/provisioning [server] domain = 'grafana.nhngpuaas.com' - root_url = 'https://grafana.nhngpuaas.com' \ No newline at end of file + root_url = 'https://grafana.nhngpuaas.com' + [auth.anonymous] + enabled = true + org_name = Main Org. + org_role = Viewer diff --git a/monitoring/http-traffic.sh b/monitoring/http-traffic.sh index fdca252..f7e0256 100755 --- a/monitoring/http-traffic.sh +++ b/monitoring/http-traffic.sh @@ -7,7 +7,8 @@ while true; do for url in \ http://10.1.189.83:8888 \ http://10.1.63.45:8888 \ - http://10.1.190.117:8888 + http://10.1.190.117:8888 \ + http://10.107.140.228:80 do if curl -s -o /dev/null --connect-timeout 2 "$url"; then echo "[✔] HTTP 요청 성공: $url" diff --git a/monitoring/pod_http_traffic.sh b/monitoring/pod_http_traffic.sh deleted file mode 100755 index 5ec154e..0000000 --- a/monitoring/pod_http_traffic.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash -# 파일명: curl_loop.sh - -INTERVAL=0.5 - -while true; do - for url in \ - http://10.1.189.83:8888 \ - http://10.1.63.45:8888 \ - http://10.1.190.117:8888 \ - http://tf-notebook.default - do - if curl -s -o /dev/null --connect-timeout 2 "$url"; then - echo "[✔] HTTP 요청 성공: $url" - else - echo "[✘] HTTP 요청 실패: $url" - fi - done - sleep "$INTERVAL" -done - diff --git a/monitoring/tcp-traffic.sh b/monitoring/tcp-traffic.sh index 5c2a6a6..bed38d8 100755 --- a/monitoring/tcp-traffic.sh +++ b/monitoring/tcp-traffic.sh @@ -2,10 +2,10 @@ # 파일명: tcp_flood.sh MESSAGE="Hello from TCP client" -INTERVAL=0.5 +INTERVAL=0.2 while true; do - for ip in 10.1.189.83 10.1.63.45 10.1.190.117; do + for ip in 10.1.189.83 10.1.63.45 10.1.190.117 10.107.140.228; do if echo -e "$MESSAGE" | nc -w 2 "$ip" 8888; then echo "[✔] TCP 요청 성공: $ip:8888" else @@ -14,4 +14,3 @@ while true; do done sleep "$INTERVAL" done -