Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
[user|VO|cluster]
stats to API (#50)
* feat: add deployments stats endpoint * fix: mount logs in docker compose file * fix: add localhost:8080 to CORS * update readme * update readme * fix: `user_stats` bug * Fix stats cache issue * refactor: change varnames --------- Co-authored-by: Marta Obregón <[email protected]> * feat: add cluster stats * Add endpoint to get cluster stats * Add function to get gpu flavours * Get the resources without using flavours csv * refactor: clean implementation * fix: cache response * fix: properly count gpus --------- Co-authored-by: Marta Obregón <[email protected]> * fix: stats VO timeseries should only return last three months * refactor(ClusterStats): Adapt stats to dashboard * feat: run stats computation in a background task * perf(ClusterStats): add periodic background task to compute cluster stats * perf(ClusterStats): use repeat_every annotation instead of while * fix(ClusterStats): fix asynchronous function and cache * fix(ClusterStats): clear cache in main * build: add fastapi-utils to requirements * fix: upgrade fastapi version * style: style fixes --------- Co-authored-by: Marta Obregón <[email protected]> * feat: add stats for each gpu model (#41) * feat(Stats): show gpu stats per model * refactor: syntax fix --------- Co-authored-by: Marta Obregón <[email protected]> * feat: add datacenter stats (#48) * feat(datacenters): add datacenter info, and job number and gpu models of each node * Add datacenters info csv * feat: add federated cluster datacenters * fat: allow for VO specific stats * feat: ignore datacenters with no nodes * refactor: avoid hardcoding headers * fix: avoid breaking if info not found * fix: fix datacenter file path --------- Co-authored-by: Marta Obregón <[email protected]> * fix: slightly modify IFCA locations to avoid collapsing in the same point * fix: fix disk used --------- Co-authored-by: Marta Obregón <[email protected]>
- Loading branch information