Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/danesherbs/carbon-emissions-exporter

Calculate physical quantities and metrics for CPU, GPU and DRAM. Expose them via HTTP for Prometheus consumption.
https://github.com/danesherbs/carbon-emissions-exporter

carbon-emissions energy-consumption power-consumption prometheus-exporter

Last synced: 4 days ago
JSON representation

Calculate physical quantities and metrics for CPU, GPU and DRAM. Expose them via HTTP for Prometheus consumption.

Awesome Lists containing this project

README

        

# 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
```python
import meters
import metrics
```
### Start server for Prometheus
```bash
python export.py
```