How harishragavan588/log-monitoring-and-cost-optimisation-main works
This is a Flask-based cloud monitoring dashboard. Operators and customer-facing users interact with the web app for dashboards and login-related events; the app exposes monitoring and alert behavior backed by Google Cloud services. The sampled source shows asynchronous log delivery, metric reads, and Firestore-backed alert acknowledgements. The README provides no capability detail, and the source excerpts are partial, so other product features and some route wiring are not represented.
Main entry points: app.py Flask app and APIs · developer_dashboard.html Developer dashboard · login.html Login page · index.html Main page
Components 11
Web application
- Flask app and APIs
final log/cloud-monitoring/app.py - Developer dashboard
final log/cloud-monitoring/templates/developer_dashboard.html - Login page
final log/cloud-monitoring/templates/login.html - Main page
final log/cloud-monitoring/templates/index.html
Monitoring and logging
- Log write queue
final log/cloud-monitoring/app.py - Google Cloud Logging
- Google Cloud Monitoring
Alert lifecycle
- Alert history and acknowledgement
final log/cloud-monitoring/app.py - Firestore alert records
Other components
- Dashboard operator
- Customer user
Connections 11
- Dashboard operator → Flask app and APIs: uses dashboard
- Customer user → Flask app and APIs: uses login
- Flask app and APIs → Developer dashboard: renders
- Flask app and APIs → Login page: renders
- Flask app and APIs → Main page: renders
- Flask app and APIs → Log write queue: enqueues logs
- Log write queue → Google Cloud Logging: writes logs
- Flask app and APIs → Google Cloud Monitoring: reads metrics
- Flask app and APIs → Alert history and acknowledgement: serves alerts
- Alert history and acknowledgement → Firestore alert records: reads acknowledgements
- Alert history and acknowledgement → Firestore alert records: writes acknowledgements