Limpieza de la configuración de Alloy eliminando componentes no utilizados:
Métricas (Prometheus):
- Mantiene scraping de: Alloy, Prometheus, Grafana, Loki, app_metrics
- Comentados: Tempo, Node Exporter, cAdvisor
- Receptor HTTP para métricas externas (puerto 9999)
- Remote write a Prometheus
Logs (Loki):
- Descubrimiento y recolección de logs de contenedores Docker
- Receptor HTTP para logs externos (puerto 3101)
- Receptor Syslog (puerto 1514)
- Envío a Loki
Trazas:
- Sección completa de Tempo comentada (OTLP, Jaeger, Zipkin)
La configuración resultante está enfocada exclusivamente en métricas y logs, reduciendo la superficie de ataque y simplificando el troubleshooting.
- Create .gitignore to exclude Python-generated files and virtual environments
- Add .python-version for Python version management
- Initialize README.md with project description and usage instructions
- Implement alloy.river configuration for Grafana Alloy observability
- Set up grafana.ini for Grafana configuration
- Configure dashboards.yml for automatic dashboard loading in Grafana
- Define datasources.yml for connecting Grafana to Prometheus, Loki, and Tempo
- Establish loki.yaml configuration for Loki logging
- Set up prometheus.yml for Prometheus metrics collection
- Configure tempo.yaml for Tempo tracing
- Create docker-compose.yml for orchestrating services
- Develop init.sh script for initializing project directories and services
- Implement main.py as the entry point for the application
- Define pyproject.toml for project metadata and dependencies
- Update uv.lock for dependency management