opencost icon indicating copy to clipboard operation
opencost copied to clipboard

Usage of carbon metrics

Open nicolasdonato opened this issue 4 months ago • 1 comments

Hello,

I search the way to display carbon metric into OpenCost. When I activated the carbon cost flag, I did not see a column which display the carbon cost.

How can I display it ?

I thank you in advance.

nicolasdonato avatar Sep 17 '25 16:09 nicolasdonato

Hello,

I try to show the carbon cost and I found the way for that. I should set the env var "KUBERNETES_PORT" and "CARBON_ESTIMATE_ENABLE".

But I can not have the cost and I saw a file named "carbonlookupdata.csv". I think it is used to write a wrapper for carbon cost but I would have the cost for OVH server.

How can I add some data for the ovh server ?.

Thank you in advance

nicolasdonato avatar Sep 24 '25 14:09 nicolasdonato

Hi,

We welcome contributions

To add OVH support, you'll need:

Carbon coefficient data from OVH - kWh/CO2e values per region and instance type Code changes to recognize OVH as a provider

Either: Submit a PR adding OVH to the embedded CSV, OR a new feature to support external carbon data files

peatey avatar Dec 19 '25 21:12 peatey