Skip to content
PowerAPI formula using RAPL counters to provides power consumption information.
Python Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
rapl_formula
tests
.gitignore
Dockerfile
LICENSE
README.md
setup.cfg
setup.py

README.md

RAPL-formula

A powerAPI formula using RAPL counters to provides power consumption information of each socket of the monitored machine.

Use RAPL data collected with the hwpc-sensor and convert it into power consumption measures (in Watt). The power consumption measures are store in a MongoDB database.

Quick start

We detail here how to quickly start rapl-formula and connect it to a hwpc-sensor using a mongoDB instance.

For more detail see our documentation here

Get input data

You have to launch the hwpc-sensor to monitor sockets. The sensor must store its data in a mongoDB database. This database must be accessible by the rapl_formula.

Launch formula

with python(>=3.7):

python3 -m rapl_formula --output mongodb --uri input_mongo_uri --db input_db
	--collection input_collection --input mongodb --uri output_mongo_uri --db output_db
	--collection output_collection

with docker:

docker run powerapi/rapl-formula --output mongodb --uri input_mongo_uri --db input_db
	--collection input_collection --input mongodb --uri output_mongo_uri --db output_db
	--collection output_collection

with the following configuration:

  • input_mongo_uri : uri to the mongoDB used by the hwpc-sensor to store its output data
  • input_db : database used by the hwpc-sensor to store its output data
  • input_collection : collection used by the hwpc-sensor to store its output data
  • output_mongo_uri : uri to the mongoDB used to store the power consumption data
  • output_db : database used to store the power consumption data
  • output_collection : collection used to store the power consumption data
You can’t perform that action at this time.