diff --git a/README.md b/README.md index eeb2920..3984ec0 100644 --- a/README.md +++ b/README.md @@ -124,9 +124,18 @@ View the metrics with curl. $ curl -s http://localhost:8000/metrics | grep grid # HELP grid_intensity_carbon_average Average carbon intensity for the electricity grid in this location. # TYPE grid_intensity_carbon_average gauge -grid_intensity_carbon_average{provider="Ember",location="FR",units="gCO2 per kWh"} 67.781 +grid_intensity_carbon_average{provider="Ember",location="FR",units="gCO2 per kWh"} 67.781 1718258400000 ``` +**Note about Prometheus and samples in the past** + +If you are using the exporter with the ElectricityMaps provider, it will return a value for estimated, which will be the most recent one, and another value for the real value, which can be a few hours in the past. Depending on your Prometheus installation, it could be that the metrics that have a timestamp in the past are not accepted, with an error such as this: + +`Error on ingesting samples that are too old or are too far into the future` + +In that case, you can configure the property `tsdb.outOfOrderTimeWindow` to extend the time window accepted, for example to `3h`. + + ### Docker Image Build the docker image to deploy the exporter.