Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explanation of infrawallet.io/project annotation #109

Open
faranda26 opened this issue Oct 14, 2024 · 5 comments
Open

Explanation of infrawallet.io/project annotation #109

faranda26 opened this issue Oct 14, 2024 · 5 comments

Comments

@faranda26
Copy link

faranda26 commented Oct 14, 2024

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

@faranda26 faranda26 changed the title Explanation of infrawallet.io/project-id annotation Explanation of infrawallet.io/project annotation Oct 14, 2024
@emillg
Copy link
Member

emillg commented Oct 16, 2024

@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
Copy link
Member

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
Copy link

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
Copy link
Member

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants