GitXplorerGitXplorer
d

carbon-emissions-exporter

public
3 stars
1 forks
0 issues

Commits

List of commits on branch master.
Unverified
f30ab879f578bb26a96cc7bb1227d5943ace66bf

Change meters.py to quantities.py

ddanesherbs committed 4 years ago
Verified
c978de87557ba5cb688ec3a4f5b2cb09b9755a86

Update README.md

ddanesherbs committed 4 years ago
Verified
c11dceafc99f6aa43c129bf6729944e89d3a2715

Update README.md

ddanesherbs committed 4 years ago
Verified
771c0e13ea85c79926af6872a519f754b84481a3

Merge pull request #1 from danesherbs/min/metrics

ddanesherbs committed 4 years ago
Unverified
2f18e33502293fb69f209cdaa6b8a4049724f414

Update sources and fix carbon_offset_cost

ddanesherbs committed 4 years ago
Unverified
c10ae4c5cb0838e9658fd0874f1a5b730642d65c

Added 2 metrics with source

llocalminimum committed 4 years ago

README

The README file for this repository.

Carbon emissions exporter

A simple Python package that:

  • Calculates physical quantities of your device meters.py
  • Calculates useful metrics metrics.py

Also includes a server that exports these via HTTP for Prometheus consumption export.py

Features

Physical quantities

  • Power (kW)
  • Energy (kWh)
  • CO2e emissions (kg)

Metrics

  • Donation to offset carbon emissions (USD)
  • Number of one-way flights from London to New York

Devices monitored

  • CPU
  • DRAM
  • GPU

Setup

Use as a library

import meters
import metrics

Start server for Prometheus

python export.py