puerto mejorado y docker con volumenes
This commit is contained in:
+13
-4
@@ -7,7 +7,7 @@ services:
|
|||||||
- "9090:9090"
|
- "9090:9090"
|
||||||
volumes:
|
volumes:
|
||||||
- ./config/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
|
- ./config/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
|
||||||
- ./data/prometheus:/prometheus
|
- prometheus_data:/prometheus
|
||||||
command:
|
command:
|
||||||
- '--config.file=/etc/prometheus/prometheus.yml'
|
- '--config.file=/etc/prometheus/prometheus.yml'
|
||||||
- '--storage.tsdb.path=/prometheus'
|
- '--storage.tsdb.path=/prometheus'
|
||||||
@@ -27,7 +27,7 @@ services:
|
|||||||
- "3100:3100"
|
- "3100:3100"
|
||||||
volumes:
|
volumes:
|
||||||
- ./config/loki/loki.yaml:/etc/loki/local-config.yaml
|
- ./config/loki/loki.yaml:/etc/loki/local-config.yaml
|
||||||
- ./data/loki:/loki
|
- loki_data:/loki
|
||||||
command: -config.file=/etc/loki/local-config.yaml
|
command: -config.file=/etc/loki/local-config.yaml
|
||||||
networks:
|
networks:
|
||||||
- monitoring
|
- monitoring
|
||||||
@@ -41,7 +41,7 @@ services:
|
|||||||
- "3200:3200" # Solo puerto de consulta, sin endpoints de recepción
|
- "3200:3200" # Solo puerto de consulta, sin endpoints de recepción
|
||||||
volumes:
|
volumes:
|
||||||
- ./config/tempo/tempo.yaml:/etc/tempo/tempo.yaml
|
- ./config/tempo/tempo.yaml:/etc/tempo/tempo.yaml
|
||||||
- ./data/tempo:/tmp/tempo
|
- tempo_data:/tmp/tempo
|
||||||
command:
|
command:
|
||||||
- -config.file=/etc/tempo/tempo.yaml
|
- -config.file=/etc/tempo/tempo.yaml
|
||||||
networks:
|
networks:
|
||||||
@@ -74,6 +74,7 @@ services:
|
|||||||
- /proc:/host/proc:ro
|
- /proc:/host/proc:ro
|
||||||
- /sys:/host/sys:ro
|
- /sys:/host/sys:ro
|
||||||
- /:/rootfs:ro
|
- /:/rootfs:ro
|
||||||
|
- alloy_data:/var/lib/alloy
|
||||||
command:
|
command:
|
||||||
- run
|
- run
|
||||||
- --server.http.listen-addr=0.0.0.0:12345
|
- --server.http.listen-addr=0.0.0.0:12345
|
||||||
@@ -103,7 +104,7 @@ services:
|
|||||||
- GF_PATHS_PROVISIONING=/etc/grafana/provisioning
|
- GF_PATHS_PROVISIONING=/etc/grafana/provisioning
|
||||||
volumes:
|
volumes:
|
||||||
- ./config/grafana/provisioning:/etc/grafana/provisioning
|
- ./config/grafana/provisioning:/etc/grafana/provisioning
|
||||||
- ./data/grafana:/var/lib/grafana
|
- grafana_data:/var/lib/grafana
|
||||||
user: "472:472"
|
user: "472:472"
|
||||||
networks:
|
networks:
|
||||||
- monitoring
|
- monitoring
|
||||||
@@ -116,3 +117,11 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
monitoring:
|
monitoring:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
|
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
prometheus_data:
|
||||||
|
loki_data:
|
||||||
|
tempo_data:
|
||||||
|
alloy_data:
|
||||||
|
grafana_data:
|
||||||
|
|||||||
@@ -119,14 +119,14 @@ check_service() {
|
|||||||
check_service "Prometheus" "9090" "prometheus"
|
check_service "Prometheus" "9090" "prometheus"
|
||||||
check_service "Loki" "3100" "loki"
|
check_service "Loki" "3100" "loki"
|
||||||
check_service "Tempo" "3200" "tempo"
|
check_service "Tempo" "3200" "tempo"
|
||||||
check_service "Grafana" "3000" "grafana"
|
check_service "Grafana" "3500" "grafana"
|
||||||
check_service "Alloy" "12345" "alloy"
|
check_service "Alloy" "12345" "alloy"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "🎉 ¡Configuración completada!"
|
echo "🎉 ¡Configuración completada!"
|
||||||
echo ""
|
echo ""
|
||||||
echo -e "${GREEN}Servicios disponibles:${NC}"
|
echo -e "${GREEN}Servicios disponibles:${NC}"
|
||||||
echo -e " 📊 Grafana Dashboard: ${BLUE}http://localhost:3000${NC} (admin/admin123)"
|
echo -e " 📊 Grafana Dashboard: ${BLUE}http://localhost:3500${NC} (admin/admin123)"
|
||||||
echo -e " 📈 Prometheus: ${BLUE}http://localhost:9090${NC}"
|
echo -e " 📈 Prometheus: ${BLUE}http://localhost:9090${NC}"
|
||||||
echo -e " 📋 Loki: ${BLUE}http://localhost:3100${NC}"
|
echo -e " 📋 Loki: ${BLUE}http://localhost:3100${NC}"
|
||||||
echo -e " 🔍 Tempo: ${BLUE}http://localhost:3200${NC}"
|
echo -e " 🔍 Tempo: ${BLUE}http://localhost:3200${NC}"
|
||||||
|
|||||||
Reference in New Issue
Block a user