calgo-lab / green-db

The monorepo that powers the GreenDB.
https://calgo-lab.github.io/green-db/
22 stars 2 forks source link

Monitoring #91

Closed AdriaSG closed 1 year ago

AdriaSG commented 1 year ago

This pull request responds to the 'monitoring' ticket, it deploys streamlit in our cluster to presenta the V1 of the Project Dashboard. I have created a new folder named 'monitoring' that contains the package with the streamlit app; utils.py contains methods that creates all objects to be displayed in the dashboard. It depends on the database.connection to connect and query the database, some new methods had been added there as well. Same folder contains Docker and Poetry files.

Also, a new folder down infraestructure>charts has been added, it includes the helm chart for deploying streamlit pod in our cluster.

AdriaSG commented 1 year ago

I deployed the application in the greendb namespace, it takes a looooot to run completely. Recommendations to improve the performance are more than welcome :)

AdriaSG commented 1 year ago

I refactored the report trying to incorporate all your feedback, it runs way faster now :) Let me know if you are ok with the current implementation as a V1 or there are further changes to consider.

AdriaSG commented 1 year ago

I tried to incorporate your feedback refactoring the app and utils. I hope you're fine with the use I gave to session_state.

AdriaSG commented 1 year ago

Hi Sebastian, I just completed small changes left like updating the documentation and changing the product count per sustainability label. hope it's ok this time :)