├── .github └── workflows │ ├── docker-integration-test.yaml │ ├── docker-release.yaml │ ├── go-releaser.yaml │ ├── go-unit-test.yaml │ ├── kubernetes-integration-test.yaml │ └── nomad-integration-test.yaml ├── .gitignore ├── .gitpod.yml ├── .goreleaser.yaml ├── CHANGELOG.md ├── Dockerfile ├── LICENSE ├── README.md ├── cmd ├── client.go ├── config.go ├── exporter.go ├── provider.go ├── provider_list.go └── root.go ├── docs ├── github_app.png ├── github_app_id.png ├── github_app_install.png ├── github_app_install_repo.png ├── github_app_private_key.png ├── github_repo_secret.png ├── homebrew.md ├── process_ember_data.md └── release.md ├── examples ├── carbonintensityuk │ └── main.go ├── electricitymap │ └── main.go ├── ember │ └── main.go └── watttime │ └── main.go ├── go.mod ├── go.sum ├── hack ├── countries.csv └── country_codes.go ├── helm └── grid-intensity-exporter │ ├── Chart.yaml │ ├── templates │ ├── configmap.yaml │ ├── deployment.yaml │ ├── secret.yaml │ ├── service-account.yaml │ └── service.yaml │ └── values.yaml ├── install.sh ├── integration └── test │ └── exporter │ └── metric_test.go ├── main.go ├── nomad └── grid-intensity-exporter.nomad └── pkg ├── internal └── data │ ├── co2-intensities-ember-2021.csv │ ├── ember.go │ └── schema.go └── provider ├── cache.go ├── carbon_intensity_uk.go ├── carbon_intensity_uk_test.go ├── electricity_maps.go ├── electricity_maps_test.go ├── ember.go ├── ember_test.go ├── error.go ├── provider.go ├── watt_time.go └── watt_time_test.go /.github/workflows/docker-integration-test.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/.github/workflows/docker-integration-test.yaml -------------------------------------------------------------------------------- /.github/workflows/docker-release.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/.github/workflows/docker-release.yaml -------------------------------------------------------------------------------- /.github/workflows/go-releaser.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/.github/workflows/go-releaser.yaml -------------------------------------------------------------------------------- /.github/workflows/go-unit-test.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/.github/workflows/go-unit-test.yaml -------------------------------------------------------------------------------- /.github/workflows/kubernetes-integration-test.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/.github/workflows/kubernetes-integration-test.yaml -------------------------------------------------------------------------------- /.github/workflows/nomad-integration-test.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/.github/workflows/nomad-integration-test.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitpod.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/.gitpod.yml -------------------------------------------------------------------------------- /.goreleaser.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/.goreleaser.yaml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/README.md -------------------------------------------------------------------------------- /cmd/client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/cmd/client.go -------------------------------------------------------------------------------- /cmd/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/cmd/config.go -------------------------------------------------------------------------------- /cmd/exporter.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/cmd/exporter.go -------------------------------------------------------------------------------- /cmd/provider.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/cmd/provider.go -------------------------------------------------------------------------------- /cmd/provider_list.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/cmd/provider_list.go -------------------------------------------------------------------------------- /cmd/root.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/cmd/root.go -------------------------------------------------------------------------------- /docs/github_app.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/docs/github_app.png -------------------------------------------------------------------------------- /docs/github_app_id.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/docs/github_app_id.png -------------------------------------------------------------------------------- /docs/github_app_install.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/docs/github_app_install.png -------------------------------------------------------------------------------- /docs/github_app_install_repo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/docs/github_app_install_repo.png -------------------------------------------------------------------------------- /docs/github_app_private_key.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/docs/github_app_private_key.png -------------------------------------------------------------------------------- /docs/github_repo_secret.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/docs/github_repo_secret.png -------------------------------------------------------------------------------- /docs/homebrew.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/docs/homebrew.md -------------------------------------------------------------------------------- /docs/process_ember_data.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/docs/process_ember_data.md -------------------------------------------------------------------------------- /docs/release.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/docs/release.md -------------------------------------------------------------------------------- /examples/carbonintensityuk/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/examples/carbonintensityuk/main.go -------------------------------------------------------------------------------- /examples/electricitymap/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/examples/electricitymap/main.go -------------------------------------------------------------------------------- /examples/ember/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/examples/ember/main.go -------------------------------------------------------------------------------- /examples/watttime/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/examples/watttime/main.go -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/go.sum -------------------------------------------------------------------------------- /hack/countries.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/hack/countries.csv -------------------------------------------------------------------------------- /hack/country_codes.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/hack/country_codes.go -------------------------------------------------------------------------------- /helm/grid-intensity-exporter/Chart.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/helm/grid-intensity-exporter/Chart.yaml -------------------------------------------------------------------------------- /helm/grid-intensity-exporter/templates/configmap.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/helm/grid-intensity-exporter/templates/configmap.yaml -------------------------------------------------------------------------------- /helm/grid-intensity-exporter/templates/deployment.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/helm/grid-intensity-exporter/templates/deployment.yaml -------------------------------------------------------------------------------- /helm/grid-intensity-exporter/templates/secret.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/helm/grid-intensity-exporter/templates/secret.yaml -------------------------------------------------------------------------------- /helm/grid-intensity-exporter/templates/service-account.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/helm/grid-intensity-exporter/templates/service-account.yaml -------------------------------------------------------------------------------- /helm/grid-intensity-exporter/templates/service.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/helm/grid-intensity-exporter/templates/service.yaml -------------------------------------------------------------------------------- /helm/grid-intensity-exporter/values.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/helm/grid-intensity-exporter/values.yaml -------------------------------------------------------------------------------- /install.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/install.sh -------------------------------------------------------------------------------- /integration/test/exporter/metric_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/integration/test/exporter/metric_test.go -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/main.go -------------------------------------------------------------------------------- /nomad/grid-intensity-exporter.nomad: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/nomad/grid-intensity-exporter.nomad -------------------------------------------------------------------------------- /pkg/internal/data/co2-intensities-ember-2021.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/pkg/internal/data/co2-intensities-ember-2021.csv -------------------------------------------------------------------------------- /pkg/internal/data/ember.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/pkg/internal/data/ember.go -------------------------------------------------------------------------------- /pkg/internal/data/schema.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/pkg/internal/data/schema.go -------------------------------------------------------------------------------- /pkg/provider/cache.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/pkg/provider/cache.go -------------------------------------------------------------------------------- /pkg/provider/carbon_intensity_uk.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/pkg/provider/carbon_intensity_uk.go -------------------------------------------------------------------------------- /pkg/provider/carbon_intensity_uk_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/pkg/provider/carbon_intensity_uk_test.go -------------------------------------------------------------------------------- /pkg/provider/electricity_maps.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/pkg/provider/electricity_maps.go -------------------------------------------------------------------------------- /pkg/provider/electricity_maps_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/pkg/provider/electricity_maps_test.go -------------------------------------------------------------------------------- /pkg/provider/ember.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/pkg/provider/ember.go -------------------------------------------------------------------------------- /pkg/provider/ember_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/pkg/provider/ember_test.go -------------------------------------------------------------------------------- /pkg/provider/error.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/pkg/provider/error.go -------------------------------------------------------------------------------- /pkg/provider/provider.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/pkg/provider/provider.go -------------------------------------------------------------------------------- /pkg/provider/watt_time.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/pkg/provider/watt_time.go -------------------------------------------------------------------------------- /pkg/provider/watt_time_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegreenwebfoundation/grid-intensity-go/HEAD/pkg/provider/watt_time_test.go --------------------------------------------------------------------------------