electrolux-oss / infrawallet

Backstage plugin that controls your cloud costs just in the way how you control your bank accounts
https://demo.infrawallet.io
Apache License 2.0
57 stars 4 forks source link

Explanation of `infrawallet.io/project` annotation #109

Open faranda26 opened 1 week ago

faranda26 commented 1 week ago

Hello, I'm trying the plugin on my backstage instance, but I cannot find more information related to the project annotation in the entity catalog-info.yaml file.

Could you provide more information on what it means and how it works? I want an example if possible.

Thanks in advance

emillg commented 1 week ago

@faranda26 If you only want to install InfraWallet in your Backstage to see cloud costs from some providers, you only need to complete step 1 to 4 from https://github.com/electrolux-oss/infrawallet/blob/main/docs/getting-started.md#if-backstage-new-backend-system-is-enabled.

Is that your use case?

gluckzhang commented 1 week ago

As some extra information, infrawallet.io/project is mainly used for GCP projects, or the project tags defined in your app-config.yaml. You can take a look at this demo site: https://demo.infrawallet.io/infrawallet where you find project dimension in the filters panel.

Basically how you filter the costs by projects on the InfraWallet main page, is how you use this infrawallet.io/project annotation for the entity card :)

AlanWaiteDSG commented 4 days ago

I would appreciate an additional explanation of this as well. I keep getting a Warning that "No Project Data is available to display the chart"

The issue is I'm using Azure and I don't I have a project defined at all... I don't get a "project" field in the response when I hit the backend api, I'm not sure what "project" should be.

gluckzhang commented 3 days ago

Hi @AlanWaiteDSG, thanks for reporting this. I believe project is specifically used by GCP costs. In the current version of EntityInfraWalletCard, the code always tries to extract project IDs. We will fix it in the near future. For now please use InfraWallet UI to check the costs :)

faranda26 commented 3 hours ago

Thank you for the explanation. I'll also look forward to the implementation for the other cloud providers. Great job, by the way!