Coder Social home page Coder Social logo

azure / kubernetes-carbon-intensity-exporter Goto Github PK

View Code? Open in Web Editor NEW
32.0 65.0 8.0 178 KB

Kubernetes Carbon Intensity Exporter

License: MIT License

Makefile 2.17% Go 90.90% Dockerfile 2.01% Shell 3.03% Smarty 1.88%
carbon-intensity kubernetes sustainable

kubernetes-carbon-intensity-exporter's People

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

Watchers

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

kubernetes-carbon-intensity-exporter's Issues

Container hardening - Helm chart upgrades

Hi there,

I've taken a quick peek at the docker container that is currently here and I'd like to propose a couple of steps to add some security to the image! Especially when it comes to the usage of the username and password.

Are you okay with me picking that up and coming up with a PR in the near future?

kind regards,
Tom

Consider changing region in helm values to westus

Hi @helayoty @Fei-Guo,
first of all thanks for creating this project! ๐Ÿ’š I've been interested in carbon aware scaling for a while so I was excited to see this project.

I hit an error installing the exporter in kind when using eastus as the region in the helm values.

fail: CarbonAware.DataSources.WattTime.Client.WattTimeClient[0]
      Error getting data from WattTime.  StatusCode: Forbidden. Response: StatusCode: 403, ReasonPhrase: 'Forbidden', Version: 1.1, Content: System.Net.Http.HttpConnectionResponseContent, Headers:
      {
        Date: Fri, 19 May 2023 10:23:29 GMT
        Transfer-Encoding: chunked
        Connection: keep-alive
        Server: nginx
        Content-Type: application/json
      }
fail: CarbonAware.WebApi.Filters.HttpResponseExceptionFilter[0]
      Exception: Error requesting forecast?ba=PJM_ROANOKE

Changing the region to westus prevents the error because it maps to the CAISO_NORTH balancing authority for which WattTime kindly provide data for free.

Is it worth changing the region in the helm values and docs?

Users would still need a WattTime license to access other regions but they can get started with westus without hitting errors. I'm happy to submit a PR if you think this is useful.

Add support for Electricitymaps

Hi there,

I recently heard about this project here: https://rossfairbanks.com/2023/06/05/carbon-aware-temporal-shifting-with-keda/, and first off, amazing initiative, this is exactly what we need, big fan! :)

Now, would it perhaps be an idea to support Electricitymaps next to Wattime as well? They do seem to boast different numbers, but generally offer a more granular and greater coverage of the world in general. Also, in Europe they are known to be quite accurate.

Let me know, curious to hear your answer! Judging from the current code, we could achieve this by adding a little bit of data wrangling before processing it further as is.

kind regards,
Tom

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.