How thierrydembaba/greenops works
GreenOps is a cloud-native energy and carbon monitoring platform. Its main workflow is simulated power metrics scraped by Prometheus and published to RabbitMQ; the calculation service converts them to carbon values, stores them in PostgreSQL, and streams live updates to the dashboard, while the lecture service supplies historical data. Users can also register and sign in, manage alert thresholds, and view observability consoles. The README documents the monitoring and logging stack; those relationships are cited there where source excerpts do not show runtime wiring.
Main entry points: App.vue Vue dashboard · service-calcul/main.py Carbon calculation · gestion-alerte/main.py Alert management · postgres-deployment.yaml PostgreSQL
Components 19
User experience
- Vue dashboard
frontend/src/App.vue - Nginx API gateway
api-gateway/nginx.conf - Kubernetes ingress
k8s/infrastructure/ingress-routing.yaml
Telemetry pipeline
- Metric simulator
service-simulator/main.py - Metrics queue
k8s/infrastructure/rabbitmq.yaml - Carbon calculation
service-calcul/main.py - Live metric broadcast
service-calcul/main.py
Application services
- PostgreSQL
k8s/deployment/postgres-deployment.yaml - Historical data reader
service-lecture/main.py - Authentication and JWT
service-auth/main.py - Alert management
gestion-alerte/main.py - Redis cache
k8s/deployment/redis.yaml
Observability
- Prometheus scrape
prometheus.yml - Grafana dashboards
k8s/deployment/grafana-values.yaml - Alertmanager
k8s/infrastructure/alerts-values.yaml - Promtail log collection
k8s/logging/promtail.yaml - Loki log storage
k8s/logging/loki-deployment.yaml
Other components
- Dashboard user
- Slack notifications
Connections 21
- Dashboard user → Vue dashboard: uses
readme.md - Vue dashboard → Nginx API gateway: calls APIs
frontend/src/App.vue - Kubernetes ingress → Vue dashboard: routes traffic
readme.md - Kubernetes ingress → Nginx API gateway: routes APIs
readme.md - Prometheus scrape → Metric simulator: scrapes metrics
readme.md - Metric simulator → Metrics queue: publishes metrics
service-simulator/main.py - Carbon calculation → Metrics queue: consumes metrics
service-calcul/main.py - Carbon calculation → PostgreSQL: writes metrics
service-calcul/main.py - Carbon calculation → Live metric broadcast: queues updates
service-calcul/main.py - Live metric broadcast → Vue dashboard: streams updates
readme.md - Historical data reader → PostgreSQL: reads history
service-lecture/main.py - Vue dashboard → Historical data reader: fetches history
frontend/src/App.vue - Vue dashboard → Authentication and JWT: registers and signs in
frontend/src/App.vue - Carbon calculation → Authentication and JWT: verifies JWT
service-calcul/main.py - Vue dashboard → Alert management: manages alerts
readme.md - Alert management → PostgreSQL: stores alert records
gestion-alerte/main.py - Alert management → Redis cache: uses cache
readme.md - Vue dashboard → Grafana dashboards: opens SSO console
readme.md - Prometheus scrape → Alertmanager: dispatches alerts
readme.md - Alertmanager → Slack notifications: notifies
readme.md - Promtail log collection → Loki log storage: ships logs
readme.md