Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/danesherbs/carbon-emissions-exporter
- Owner: danesherbs
- License: mit
- Created: 2020-02-15T12:33:50.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-04-28T09:55:24.000Z (over 4 years ago)
- Last Synced: 2024-04-21T06:14:58.719Z (7 months ago)
- Topics: carbon-emissions, energy-consumption, power-consumption, prometheus-exporter
- Language: Python
- Homepage:
- Size: 21.5 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```