netricsag/tenant-api

[FEATURE]: Monthly Cost report

Opened this issue · 2 comments

Contact Details

No response

Describe the feature

Create a cronjob which scrapes the costs of all tenants and writes it into some persistent storage.
Via env you can set a github team which can then download this report on the dashboard for all tenants or just one.
Also let there be an option to download the report in each tenant dashboard.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Saving to database is now working.
Next thing to do is to create a function which calculates the average of these logs (per month).
Also add the ability to set the sleep timer value by env.
Then create a API endpoint to get the report of the values by tenant.
Also create an API endpoint for admins/auditors to get a report over every tenant (env variable to set the githubteamslug)

Test the Months, which were calculated by the monthly costs. Not sure if they work correctly.