How felipe-sabino-d-oliveira/grafana_lab works
Carnivorous Green House is a Flask app for user accounts and a simulated carnivorous-plant greenhouse, with live plant updates and a documented Alloy–Loki–Grafana logging stack. The main workflow is signup/login, view a user’s dashboard and plants, add plants over Socket.IO, and receive simulated readings. The only sampled runtime source is app.py; logging integrations are included from README documentation, so their edges reflect that documented flow rather than inspected configuration internals.
Main entry points: app.py Flask application · dashboard.html Plant dashboard · alloy-config.alloy Grafana Alloy · loki-config.yaml Grafana Loki
Components 12
Web and accounts
- Flask application
app.py - User authentication
app.py - User and plant records
app.py
Greenhouse simulation
- Plant dashboard
templates/dashboard.html - Plant registration
app.py - Live plant updates
app.py - Random failure mode
app.py
Log observability
- Application log file
app.py - Grafana Alloy
alloy-config.alloy - Grafana Loki
loki-config.yaml - Grafana Explore
README.md
Other components
- Visitor
Connections 15
- Visitor → Flask application: uses
README.md - Flask application → User authentication: routes auth
app.py - User authentication → User and plant records: reads/writes
app.py - Flask application → Plant dashboard: renders
app.py - Plant dashboard → Visitor: presents plants
- Flask application → Plant registration: handles events
app.py - Plant registration → User and plant records: writes plant
app.py - Flask application → Live plant updates: starts simulation
app.py - Live plant updates → User and plant records: reads plants
app.py - Live plant updates → Visitor: emits readings
- Random failure mode → Flask application: affects requests
app.py - Flask application → Application log file: writes logs
app.py - Application log file → Grafana Alloy: collects logs
README.md - Grafana Alloy → Grafana Loki: forwards logs
README.md - Grafana Explore → Grafana Loki: queries logs
README.md