-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstatus.sh
More file actions
executable file
·72 lines (62 loc) · 1.88 KB
/
status.sh
File metadata and controls
executable file
·72 lines (62 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/bin/bash
# Status do Stack de Observabilidade FHIR Nursing API
echo "🏥 FHIR Nursing API - Sistema de Observabilidade"
echo "=================================================="
echo ""
echo "📊 STATUS DOS SERVIÇOS:"
echo ""
# Verificar API FHIR
echo -n "🔍 API FHIR (8000): "
if curl -s http://localhost:8000/health > /dev/null 2>&1; then
echo "✅ ONLINE"
else
echo "❌ OFFLINE"
fi
# Verificar Prometheus
echo -n "📈 Prometheus (9090): "
if curl -s http://localhost:9090/-/healthy > /dev/null 2>&1; then
echo "✅ ONLINE"
else
echo "❌ OFFLINE"
fi
# Verificar Grafana
echo -n "📊 Grafana (3000): "
if curl -s http://localhost:3000/api/health > /dev/null 2>&1; then
echo "✅ ONLINE"
else
echo "❌ OFFLINE"
fi
# Verificar Jaeger
echo -n "🔍 Jaeger (16686): "
if curl -s http://localhost:16686/api/services > /dev/null 2>&1; then
echo "✅ ONLINE"
else
echo "❌ OFFLINE"
fi
echo ""
echo "🌐 LINKS DOS SERVIÇOS:"
echo " • API FHIR: http://localhost:8000"
echo " - Health: http://localhost:8000/health"
echo " - Docs: http://localhost:8000/docs"
echo " - Métricas: http://localhost:8000/metrics"
echo ""
echo " • Grafana: http://localhost:3000"
echo " - Login: admin/admin"
echo ""
echo " • Prometheus: http://localhost:9090"
echo " - Targets: http://localhost:9090/targets"
echo ""
echo " • Jaeger: http://localhost:16686"
echo " - Traces: http://localhost:16686/search"
echo ""
echo "📋 COMANDOS ÚTEIS:"
echo " cd observability && docker-compose ps # Status containers"
echo " cd observability && docker-compose logs # Logs dos serviços"
echo " cd fhir-nursing-api && python start_server.py # Iniciar API"
echo ""
echo "🐳 CONTAINERS DOCKER:"
cd /Users/rogerio/ProjetoMestrado/AssistenteAIEducacional/observability
docker-compose ps
echo ""
echo "📈 TESTE RÁPIDO DA API:"
echo "curl http://localhost:8000/health"