powerapi-ng / rapl-formula

PowerAPI formula using RAPL counters to provides power consumption information.
http://powerapi.org
BSD 3-Clause "New" or "Revised" License
6 stars 4 forks source link

Problem with database OUTPUT name #14

Open MohamedMesk opened 4 years ago

MohamedMesk commented 4 years ago

Hi, i'm currently working with POWERAPI to estimate the power consumption. But actually i've got a little problem with influxDB output to display these data in Grafana. I'm using a docker with powerapi-sensor, all is working at this point. I use another docker for rapl-formula. I use this command : docker run -td --net=host --name powerapi-formula powerapi/rapl-formula -s --input mongodb -u mongodb://localhost:8425 -d powerapi -c sensor --output influxdb --uri localhost --port 8086 --db power_consumption --name grafana_output All is working with this command. But when i change the --db option to another name like --db test It doesn't work. The database is created but get no data. Do we have to name our database "power_consumption"?

altor commented 4 years ago

Hi ! What input data did you use ? Does the powerapi-sensor is running while rapl-formula is executed or do you use a dataset created by powerapi-sensor ? (in this case how much items this dataset contains ?)

MohamedMesk commented 4 years ago

Hi, thanks for your answer. Powerapi-sensor is running while rapl-formula is executed. So rapl-formula take data from the mongoDB.

altor commented 4 years ago

I can't achieve to reproduce the bug.

The behavior that you describe could appears when you use rapl-formula in stream mode (with -s parameter) on a dataset previously generated by powerapi-sensor.

Could you send me the output of the command docker ps -a and docker logs powerapi-formula after launching the sensor and the formula ?

roda82 commented 2 years ago

Hello,

Do you have still problems with RALP Formula ?