Giter Site home page Giter Site logo

cloud-carbon-footprint / ccf-backstage-plugin Goto Github PK

View Code? Open in Web Editor NEW
42.0 42.0 6.0 167.14 MB

The CCF Backstage Plugin is a tool to estimate energy use (kilowatt-hours) and carbon emissions (metric tons CO2e) from public cloud usage that is meant to be consumed as a plugin into a Backstage application

Home Page: https://www.cloudcarbonfooprint.org/ccf-backstage-plugin

License: Apache License 2.0

JavaScript 26.40% TypeScript 68.82% Shell 4.79%

ccf-backstage-plugin's Introduction

Cloud Carbon Footprint

License CI codecov

Cloud Carbon Footprint is an application that estimates the energy (kilowatt hours) and carbon emissions (metric tons CO2e) of public cloud provider utilization.

If you would like to learn more about the various calculations and constants that we use for the emissions estimates, check out the Methodology page.

Getting Started

The core logic is exposed through 2 applications: a CLI and a website. The CLI resides in packages/cli/, and the website is split between packages/api/ and packages/client/

For instructions on how to get up and running, please visit the Getting Started page.

Project

Please visit the project board to get a glimpse of the roadmap or to submit an issue or bug.

Join Us!

To begin as a contributor, please see the contributing page. Please read through our code of conduct for our expectations around this community.

⭐️Give us a star if you like the project or find this work interesting!

Don’t be shy

If you're using or planning to use CCF in any capacity, please add to our list of adopters. Having an understanding of the use of CCF (what it's being used for, what setup is used, cloud providers used, size of org and data, etc.) will help us better evolve the tool to meet the needs of this community.

Additionally, please fill out our feedback form to provide us more insight about your use of CCF and how we can best support your needs.

Reach out with any questions, support requests, and further discussions in our discussion google group.

License

Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0

© 2021 Thoughtworks, Inc.

ccf-backstage-plugin's People

Contributors

4upz avatar camcash17 avatar ccasher avatar ccasher-seagen avatar cwesterhold avatar dlaird-ovo avatar github-actions[bot] avatar itura avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ccf-backstage-plugin's Issues

Error on Cloud Usage Tab

Preflight Checklist

  • I have read the Contributing Guidelines for this project.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

  • Operating System:
    macOS 11.6.5
  • Browser:
    Chrome

Expected Behaviour

Opening the Cloud Usage tab either shows the error a useful message that no data is available for the given period, or shows a graph of the emissions over the given period.

Actual Behaviour

When navigating to the plugin in our Backstage instance, the page initially loads showing that no data is available for the period, and then immediately refreshes before displaying the error below underneath the plugin nav bars. The data range control is still shown and accessible and it is possible to reduce the date range when running locally. Similarly, when running locally via yarn-start and yarn start-backend, it is possible to navigate to other tabs which appear to be working correctly.

Note that this Backstage instance/plugin has been configured to pull data from AWS only.

Full error message:

VM40291 react_devtools_backend.js:4026 ErrorBoundary, error: TypeError: Cannot read properties of undefined (reading 'map'), info: [object Object]
    at ErrorBoundary2 (eval at ES6ProxyComponentFactory (webpack-internal:///../../node_modules/react-hot-loader/dist/react-hot-loader.development.js), <anonymous>:14:7)
    at div
    at Paper (webpack-internal:///../../node_modules/@material-ui/core/esm/Paper/Paper.js:47:23)
    at WithStyles (webpack-internal:///../../node_modules/@material-ui/styles/esm/withStyles/withStyles.js:61:31)
    at Card (webpack-internal:///../../node_modules/@material-ui/core/esm/Card/Card.js:27:23)
    at WithStyles (webpack-internal:///../../node_modules/@material-ui/styles/esm/withStyles/withStyles.js:61:31)
    at TabbedCard (webpack-internal:///../../node_modules/@backstage/core-components/dist/index.esm.js:6498:5)
    at div
    at Grid (webpack-internal:///../../node_modules/@material-ui/core/esm/Grid/Grid.js:235:35)
    at WithStyles (webpack-internal:///../../node_modules/@material-ui/styles/esm/withStyles/withStyles.js:61:31)
    at div
    at Grid (webpack-internal:///../../node_modules/@material-ui/core/esm/Grid/Grid.js:235:35)
    at WithStyles (webpack-internal:///../../node_modules/@material-ui/styles/esm/withStyles/withStyles.js:61:31)
    at EmissionsTab (webpack-internal:///../../node_modules/@cloud-carbon-footprint/backstage-plugin-frontend/dist/esm/Plugin-74b9ce5b.esm.js:26:3)
    at article
    at Content (webpack-internal:///../../node_modules/@backstage/core-components/dist/index.esm.js:4447:11)
    at RoutedTabs (webpack-internal:///../../node_modules/@backstage/core-components/dist/index.esm.js:4541:11)
    at TabbedLayout (webpack-internal:///../../node_modules/@backstage/core-components/dist/index.esm.js:4581:52)
    at PluginTabs (webpack-internal:///../../node_modules/@cloud-carbon-footprint/backstage-plugin-frontend/dist/esm/Plugin-74b9ce5b.esm.js:88:3)
    at D (webpack-internal:///../../node_modules/react-router/index.js:35:685)
    at FlatRoutes (webpack-internal:///../../node_modules/@backstage/core-app-api/dist/index.esm.js:2547:81)
    at ThemeProvider (webpack-internal:///../../node_modules/@material-ui/styles/esm/ThemeProvider/ThemeProvider.js:41:24)
    at article
    at Content (webpack-internal:///../../node_modules/@backstage/core-components/dist/index.esm.js:4447:11)
    at div
    at ThemeProvider (webpack-internal:///../../node_modules/@material-ui/styles/esm/ThemeProvider/ThemeProvider.js:41:24)
    at Page (webpack-internal:///../../node_modules/@backstage/core-components/dist/index.esm.js:5763:11)
    at Plugin (webpack-internal:///../../node_modules/@cloud-carbon-footprint/backstage-plugin-frontend/dist/esm/Plugin-74b9ce5b.esm.js:142:19)
    at RoutableExtensionWrapper (webpack-internal:///../../node_modules/@backstage/core-plugin-api/dist/index.esm.js:476:13)
    at AnalyticsContext (webpack-internal:///../../node_modules/@backstage/core-plugin-api/dist/index.esm.js:69:11)
    at PluginErrorBoundary (eval at ES6ProxyComponentFactory (webpack-internal:///../../node_modules/react-hot-loader/dist/react-hot-loader.development.js), <anonymous>:14:7)
    at Suspense
    at Result (webpack-internal:///../../node_modules/@backstage/core-plugin-api/dist/index.esm.js:531:21)
    at D (webpack-internal:///../../node_modules/react-router/index.js:35:685)
    at FlatRoutes (webpack-internal:///../../node_modules/@backstage/core-app-api/dist/index.esm.js:2547:81)
    at div
    at SidebarPage (webpack-internal:///../../node_modules/@backstage/core-components/dist/index.esm.js:3329:82)
    at Root (webpack-internal:///./src/components/Root/Root.tsx:81:17)
    at D (webpack-internal:///../../node_modules/react-router/index.js:35:685)
    at E (webpack-internal:///../../node_modules/react-router/index.js:38:820)
    at SignInPageWrapper (webpack-internal:///../../node_modules/@backstage/core-app-api/dist/index.esm.js:2419:18)
    at x (webpack-internal:///../../node_modules/react-router/index.js:37:23)
    at w (webpack-internal:///../../node_modules/react-router-dom/index.js:42:23)
    at AppRouter (webpack-internal:///../../node_modules/@backstage/core-app-api/dist/index.esm.js:2431:26)
    at RoutingProvider (webpack-internal:///../../node_modules/@backstage/core-app-api/dist/index.esm.js:1948:3)
    at CssBaseline (webpack-internal:///../../node_modules/@material-ui/core/esm/CssBaseline/CssBaseline.js:66:31)
    at WithStyles (webpack-internal:///../../node_modules/@material-ui/styles/esm/withStyles/withStyles.js:61:31)
    at ThemeProvider (webpack-internal:///../../node_modules/@material-ui/styles/esm/ThemeProvider/ThemeProvider.js:41:24)
    at Provider (webpack-internal:///./src/App.tsx:112:20)
    at AppThemeProvider (webpack-internal:///../../node_modules/@backstage/core-app-api/dist/index.esm.js:2166:29)
    at AppContextProvider (webpack-internal:///../../node_modules/@backstage/core-app-api/dist/index.esm.js:2057:3)
    at ApiProvider (webpack-internal:///../../node_modules/@backstage/core-app-api/dist/index.esm.js:76:11)
    at Provider (webpack-internal:///../../node_modules/@backstage/core-app-api/dist/index.esm.js:2338:25)
    at App

To Reproduce

  1. Create a new Backstage instance.
  2. Add the plugin to the backstage instance
  3. Setup billing report and AWS Athena as per the instructions here.
  4. Add the following to the app-config file:
cloudCarbonFootprint:
  client:
    dateRangeType: months
    dateRangeValue: 1
    groupBy: week
  aws:
    useBillingData: true
    athenaDbName: ATHENA_DB_NAME
    athenaDbTable: ATHENA_TABLE_NAME
    athenaRegion: AWS_REGION
    athenaQueryResultLocation: ATHENA_QUERY_BUCKET
    billingAccountId: "AWS_ACCOUNT_ID"
    billingAccountName: AWS_ACCOUNT_NAME
    authMode: AWS
  gcp:
    useBillingData: false
  azure:
    useBillingData: false
  1. Navigate to the plugin within the Backstage instance.

Screenshots

image

Additional Information

© 2022 Thoughtworks, Inc.

GCP Carbon foodprint error: Unrecognized name: system_labels

Hi Guys,

I need your help with Carbon plugin, is not working on my Backstage solution.
I installed the Carbon Plugin following the official documentation for Backstage:
https://github.com/cloud-carbon-footprint/ccf-backstage-plugin

Later, I added the config part on app-config.yaml:
cloudCarbonFootprint:
gcp:
useBillingData: true
billingProjectId: gcp-project
billingProjectName: gcp-project
bigQueryTable: Carbon_Footprint.carbon_footprint

And the plugin is failing with the error: Message: Unrecognized name: system_labels at [18:28]

Full Error:

2023-06-08T10:48:41.360Z [api] error: Unable to process footprint request.Error: BigQuery create Query Job failed. Reason: invalidQuery, Location: query, Message: Unrecognized name: system_labels at [18:28]
at BillingExportTable.createQueryJob (/app/node_modules/@cloud-carbon-footprint/gcp/dist/lib/BillingExportTable.js:384:19)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async BillingExportTable.getUsage (/app/node_modules/@cloud-carbon-footprint/gcp/dist/lib/BillingExportTable.js:357:21)
at async BillingExportTable.getEstimates (/app/node_modules/@cloud-carbon-footprint/gcp/dist/lib/BillingExportTable.js:30:27)
at async Object.getCostAndEstimates (/app/node_modules/@cloud-carbon-footprint/app/dist/App.js:52:35)
at async Promise.all (index 0)
at async getEstimatesForMissingDates (/app/node_modules/@cloud-carbon-footprint/app/dist/Cache.js:52:13)
at async App.descriptor.value (/app/node_modules/@cloud-carbon-footprint/app/dist/Cache.js:29:24)
at async FootprintApiMiddleware (/app/node_modules/@cloud-carbon-footprint/api/dist/api.js:34:35)
{"level":"info","message":"::ffff:10.87.96.66 - - [08/Jun/2023:10:48:41 +0000] "GET /api/cloud-carbon-footprint/footprint?start=2023-05-08&end=2023-06-08&ignoreCache=true&groupBy=week HTTP/1.1" 500 21 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36"","service":"backstage","type":"incomingRequest"}

Version:
OS: Darwin 22.4.0 - darwin/arm64
node: v16.19.0
yarn: 1.22.19
cli: 0.22.7 (installed)
backstage: 1.14.1

Dependencies:
@backstage/app-defaults 1.3.1
@backstage/backend-app-api 0.4.3
@backstage/backend-common 0.17.0, 0.18.5
@backstage/backend-dev-utils 0.1.1
@backstage/backend-plugin-api 0.5.2
@backstage/backend-tasks 0.5.2
@backstage/catalog-client 1.4.1
@backstage/catalog-model 1.3.0
@backstage/cli-common 0.1.12
@backstage/cli-node 0.1.0
@backstage/cli 0.22.7
@backstage/config-loader 1.3.0
@backstage/config 1.0.7
@backstage/core-app-api 1.8.0
@backstage/core-components 0.12.5, 0.13.1
@backstage/core-plugin-api 1.5.1
@backstage/dev-utils 1.0.15
@backstage/errors 1.1.5
@backstage/eslint-plugin 0.1.3
@backstage/integration-aws-node 0.1.3
@backstage/integration-react 1.1.13
@backstage/integration 1.4.5
@backstage/plugin-api-docs 0.9.3
@backstage/plugin-app-backend 0.3.45
@backstage/plugin-auth-backend 0.17.4, 0.18.3
@backstage/plugin-auth-node 0.2.14
@backstage/plugin-bitbucket-cloud-common 0.2.6
@backstage/plugin-catalog-backend-module-bitbucket-cloud 0.1.12
@backstage/plugin-catalog-backend-module-bitbucket-server 0.1.10
@backstage/plugin-catalog-backend-module-gitlab 0.2.1
@backstage/plugin-catalog-backend-module-ldap 0.5.12
@backstage/plugin-catalog-backend 1.9.1
@backstage/plugin-catalog-common 1.0.13
@backstage/plugin-catalog-graph 0.2.30
@backstage/plugin-catalog-import 0.9.8
@backstage/plugin-catalog-node 1.3.6
@backstage/plugin-catalog-react 1.6.0
@backstage/plugin-catalog 1.11.0
@backstage/plugin-cost-insights-common 0.1.1
@backstage/plugin-cost-insights 0.12.7
@backstage/plugin-events-node 0.2.6
@backstage/plugin-gcalendar 0.3.14
@backstage/plugin-github-actions 0.5.18
@backstage/plugin-graphiql 0.2.50
@backstage/plugin-home 0.5.2
@backstage/plugin-jenkins-backend 0.2.0
@backstage/plugin-jenkins-common 0.1.15
@backstage/plugin-jenkins 0.8.0
@backstage/plugin-kubernetes-backend 0.11.0
@backstage/plugin-kubernetes-common 0.6.3
@backstage/plugin-kubernetes 0.9.1
@backstage/plugin-org 0.6.8
@backstage/plugin-pagerduty 0.5.11
@backstage/plugin-permission-backend 0.5.20
@backstage/plugin-permission-common 0.7.5
@backstage/plugin-permission-node 0.7.8
@backstage/plugin-permission-react 0.4.12
@backstage/plugin-proxy-backend 0.2.39
@backstage/plugin-scaffolder-backend 1.14.0
@backstage/plugin-scaffolder-common 1.3.0
@backstage/plugin-scaffolder-node 0.1.3
@backstage/plugin-scaffolder-react 1.4.0
@backstage/plugin-scaffolder 1.13.1
@backstage/plugin-search-backend-module-catalog 0.1.1
@backstage/plugin-search-backend-module-pg 0.5.6
@backstage/plugin-search-backend-module-techdocs 0.1.1
@backstage/plugin-search-backend-node 1.2.1
@backstage/plugin-search-backend 1.3.1
@backstage/plugin-search-common 1.2.3
@backstage/plugin-search-react 1.6.0
@backstage/plugin-search 1.3.0
@backstage/plugin-tech-radar 0.6.4
@backstage/plugin-techdocs-backend 1.6.2
@backstage/plugin-techdocs-module-addons-contrib 1.0.13
@backstage/plugin-techdocs-node 1.7.1
@backstage/plugin-techdocs-react 1.1.6
@backstage/plugin-techdocs 1.6.2
@backstage/plugin-user-settings 0.7.3
@backstage/plugin-vault-backend 0.3.1
@backstage/plugin-vault 0.1.12
@backstage/release-manifests 0.0.9
@backstage/test-utils 1.3.1
@backstage/theme 0.2.19, 0.3.0
@backstage/types 1.0.2
@backstage/version-bridge 1.0.4

fix backstage plugin recommendations table

Preflight Checklist

  • I have read the Contributing Guidelines for this project.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

With the recent updates to the backstage plugin - the recommendations table is difficult to see. There may have been a UI related problem with mui when we updated the ccf client package to React 18.

Expected Behavior

When loading the ccf backstage plugin and going to the recommendations page, i should be able to clearly see the table.

Actual Behavior

The table component renders, but is difficult to see with the UI styling

To Reproduce

Create a backstage instance, add the ccf plugin and navigate to the recommendations page

Screenshots

Screenshot 2023-08-03 at 4 36 48 PM

© 2021 Thoughtworks, Inc.

Error when running latest backend plugin version to fetch GCP estimates

Preflight Checklist

When configuring GCP after a fresh plugin install, the following error occurs on the backend when fetching emissions:

Unable to process footprint request.TypeError: Cannot read properties of undefined (reading 'forEach')
[1]     at BillingExportTable.tagNamesToQueryColumns (backstage-test/node_modules/@cloud-carbon-footprint/gcp/dist/lib/BillingExportTable.js:394:18)

This could be a config issue caused by the latest release of GCP tags.

Screenshots

image

Additional Information

© 2022 Thoughtworks, Inc.

no data displayed for onPremise cloud provider

Preflight Checklist

  • [x ] I have read the Contributing Guidelines for this project.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

  • Operating System:
    • Windows 10 (20H2)
  • Browser:
    • Chrome

Expected Behavior

Configured CloudCarbonFootPrint in app.config.local with the following settings according to the schema in ./config.d.ts for On Premise:

# app.config.local:
cloudCarbonFootprint:
  client:
    dateRangeType: months
    dateRangeValue: 1
    groupBy: week
  onPremise:
    cpuUtilizationServer: 50
    avgWattsServer: 1000
  • Expected to get data on the page https:\\localhost:3000\cloud-carbon-footprint
  • Expected to see On Premise in cloud providers filter at the top of the page

Actual Behavior

  • On Premise is not listed in cloud providers filter - (see screenshot below)
  • got the message "There's no data to display!" - (see screenshot below)

To Reproduce

  • Install the plugin by following the official instructions
  • configure app.config.local using the same data as above.

Screenshots

  • Cloud provider filter
    CloudProvides_Dropdown_list

  • message displayed on the page cloud-carbon-footprint
    No_data_message

Additional Information

© 2022 Thoughtworks, Inc.

Backstage Carbon Plugin: Add cache config on app-config.yaml

Hi team,

I am working with the latest carbon footprint version:

@cloud-carbon-footprint/[email protected]
@cloud-carbon-footprint/[email protected]
@cloud-carbon-footprint/common": "^1.11.0

Backstage version:

Version:
OS: Darwin 22.4.0 - darwin/arm64
node: v16.19.0
yarn: 1.22.19
cli: 0.22.7 (installed)
backstage: 1.14.1

Configured backstage:

cloudCarbonFootprint:
      client:
        dateRangeType: years
        dateRangeValue: 1
        groupBy: week
      gcp:
        useBillingData: true
        billingProjectId: xxxxxxxxx
        billingProjectName: xxxxxxxxx
        bigQueryTable: billing.gcp_billing_export_v1_xxxxxxxxx

Is possible add the cache config on app-config.yaml? I want to use a GCS solution for cache storage:
For mongodb is possible, but for GCP is possible too?
https://github.com/cloud-carbon-footprint/ccf-backstage-plugin/tree/trunk/plugins/backend#caching

Kind regards.

Cannot read properties from undefined (reading 'map')

Preflight Checklist

  • I have read the Contributing Guidelines for this project.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

  • Operating System:
    • Azure Web App (I think Ubuntu, but not sure)
  • Browser:
    • Chrome

Expected Behavior

I should have my cloud carbon footprint estimation.

Actual Behavior

I only get an error message withtout any of the estimation. But it seems that my Azure services are fetch correctly, so this could indicate that my Azure configuration is fine.

To Reproduce

  • Use the last Backstage version
  • Use the last ccf-backstage-plugin version
  • Configure the azure connection
cloudCarbonFootprint:
  client:
    dateRangeType: months
    dateRangeValue: 1
    groupBy: week
  azure:
    useBillingData: true
    clientId: ${AZURE_CLIENT_ID}
    clientSecret: ${AZURE_CLIENT_SECRET}
    tenantId: ${AZURE_TENANT_ID}
  • Start the server, and go to the ccf page.

Screenshots

  • The error

image

  • Logs

image

  • The services (which seem to indicate my Azure resources, so the configuration should be fine)

image

Additional Information

© 2022 Thoughtworks, Inc.

Outdated packages when installing package

Preflight Checklist

  • I have read the Contributing Guidelines for this project.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

  • Operating System: Debian 10.1
  • Browser: N/A

Expected Behavior

Cloud carbon footprint plugin should be installed without any warnings.

Actual Behavior

  • When running yarn --cwd packages/backend add @cloud-carbon-footprint/backstage-plugin-backend

image

  • When running yarn --cwd packages/app add @cloud-carbon-footprint/backstage-plugin-frontend
    image

To Reproduce

Just install the cloud carbon footprint plugin

Screenshots

Additional Information

© 2022 Thoughtworks, Inc.

Type errors and deprecation warnings

Preflight Checklist

  • [ x] I have read the Contributing Guidelines for this project.
  • [ x] I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

  • Backstage Version:
    latest
  • CCF Plugin Version:
    latest
  • Browser:
    chrome

Expected Behaviour

plugin to run on local

Actual Behaviour

Plugin not running

Type errors:
Screenshot 2023-12-05 at 13 10 20
Deprecation warnings:
Screenshot 2023-12-05 at 13 09 13

To Reproduce

This is happening on local, I have previously had this working, env variables have not changed.

© 2022 Thoughtworks, Inc.

Type and tsconfig errors relating to GCP

Preflight Checklist

  • [x ] I have read the Contributing Guidelines for this project.
  • [x ] I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

  • Backstage Version:
    1.14.0
  • CCF Plugin Version:
    latest
  • Browser:
    chrome

Expected Behavior

plugin to run without errors

Actual Behavior

I am getting the following console error from gcp:

2023-05-24T13:13:30.781Z [api] error: Unable to process footprint request.TypeError: Cannot read properties of undefined (reading 'forEach') at BillingExportTable.tagNamesToQueryColumns (......./node_modules/@cloud-carbon-footprint/gcp/dist/lib/BillingExportTable.js:394:18) at BillingExportTable.getUsage (.......node_modules/@cloud-carbon-footprint/gcp/dist/lib/BillingExportTable.js:314:52) at BillingExportTable.getEstimates (......./node_modules/@cloud-carbon-footprint/gcp/dist/lib/BillingExportTable.js:30:38) at GCPAccount.getDataFromBillingExportTable (......./node_modules/@cloud-carbon-footprint/gcp/dist/application/GCPAccount.js:47:42) at Object.getCostAndEstimates (......./node_modules/@cloud-carbon-footprint/app/dist/App.js:52:116) at getCostAndEstimates (......./node_modules/@cloud-carbon-footprint/app/dist/Cache.js:22:72) at ......./node_modules/@cloud-carbon-footprint/app/dist/Cache.js:50:16 at Array.map (<anonymous>) at getEstimatesForMissingDates (......./node_modules/@cloud-carbon-footprint/app/dist/Cache.js:49:76) at descriptor.value (......./node_modules/@cloud-carbon-footprint/app/dist/Cache.js:33:38) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async FootprintApiMiddleware (......./node_modules/@cloud-carbon-footprint/api/dist/api.js:34:35)

To Reproduce

happens when running locally

Additional Information

I successfully got this working when first installed, I have come back to it after a few weeks and the errors have just appeared. I have not made any changes inside my gcp account, the auth credentials are correct, and there have been no changes to the project. I have had others test my branch and they get the same error. I have tried removing and reinstalling CCF plugin, node_modules and yarn.lock. I have tried re-cloning the project and then installing fresh, error still occurs.

© 2022 Thoughtworks, Inc.

Unable to see backstage sidebar through CCF plugin

Preflight Checklist

  • I have read the Contributing Guidelines for this project.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

  • Operating System: Windows 10 Enterprise 20H2 build 19042.1706
  • Browser: Chrome

Expected Behavior

After initializing CCF plugin, when going on /cloud-carbon-footprint I should see my backstage sidebar.

Actual Behavior

After initializing CCF plugin, when going on /cloud-carbon-footprint I don't see my backstage sidebar. Only after going on the

To Reproduce

Just install CCF backstage plugin as described in the documentation.

Configure only Azure analysis.

Screenshots

  • First screen

image

  • Screen on Carbon intensity map

image

  • Go again on the first screen

image

Additional Information

Could be related to the problem explained in #9 ?

Cloud-carbon-footprint / backstage-AWS

I am getting error while installing CCF plugin in Backstage trying to fetch details from AWS. Kindly assist

Error: Request failed with status code 500 at createError (webpack-internal:///../../node_modules/@cloud-carbon-footprint/client/node_modules/axios/lib/core/createError.js:16:15) at settle (webpack-internal:///../../node_modules/@cloud-carbon-footprint/client/node_modules/axios/lib/core/settle.js:17:12) at XMLHttpRequest.onloadend (webpack-internal:///../../node_modules/@cloud-carbon-footprint/client/node_modules/axios/lib/adapters/xhr.js:66:7)
CCF-error

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.