akash-network / console

Deploy docker containers on the Akash Network
https://console.akash.network
Apache License 2.0
86 stars 55 forks source link

feat: add provider stats endpoint #402

Closed Redm4x closed 2 weeks ago

Redm4x commented 1 month ago

Add stats api for provider console (#307)

Added the /internal/provider-dashboard/{owner} endpoint that returns similar stats as stats.akash.network, but filtered for a single provider. The logic and response structure was kept similar to make it easy to reuse the same code/components.

Persistent and ephemeral storage were split into separate values so that they can be represented in different tiles if necessary.

This PR only adds the endpoint for the dashboard, a separate PR will include the endpoint for the graphs.