feat: add homelab deployment configs, documentation, and automation scripts
This commit is contained in:
20
scripts/test_ai_metrics.py
Normal file
20
scripts/test_ai_metrics.py
Normal file
@@ -0,0 +1,20 @@
|
||||
import requests
|
||||
|
||||
endpoints = [
|
||||
("vLLM Qwen (30800)", "http://140.44.4.84:30800/metrics"),
|
||||
("vLLM Gemma4 (30804)", "http://140.44.4.82:30804/metrics"),
|
||||
("vLLM DeepSeek-R1 (30805)", "http://140.44.4.81:30805/metrics"),
|
||||
("Triton (30803)", "http://140.44.4.83:30803/metrics"),
|
||||
("Qdrant (30633)", "http://140.44.4.82:30633/metrics"),
|
||||
]
|
||||
|
||||
for name, url in endpoints:
|
||||
try:
|
||||
r = requests.get(url, timeout=5)
|
||||
print(f"{name}: HTTP {r.status_code}, length={len(r.text)}")
|
||||
sample_metrics = [line for line in r.text.split('\n') if line and not line.startswith('#')][:5]
|
||||
for sm in sample_metrics:
|
||||
print(f" {sm}")
|
||||
except Exception as e:
|
||||
print(f"{name}: Failed -> {e}")
|
||||
|
||||
Reference in New Issue
Block a user