mlco2 / mlco2/codecarbon

Prometheus total Energy export

Open
#975 3 comments 0 reactions 1 assignee View on GitHub

@inimaz is already working on this.

Since Nov 19, 2025.

enhancement
Dominant language
Python
Stars
1.9k
Forks
323
Avg merge
1d 12h
Merged PRs (30d)
12

Description

Is your feature request related to a problem? Please describe.
Prometheus exporter does only provide current power and energy consumption between each push. As far as I know the prometheus push gateway only caches a single values. Therefore if prometheus querys not often enough it is possible to miss values.

Describe the solution you'd like
Export the total energy since start of the application

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.