Powerapi

Join the chat at https://gitter.im/Spirals-Team/powerapi

License: AGPL v3 Build Status Coverage Status

PowerAPI is a middleware toolkit for building software-defined power meters. Software-defined power meters are configurable software libraries that can estimate the power consumption of software in real-time. PowerAPI supports the acquisition of raw metrics from a wide diversity of sensors (eg., physical meters, processor interfaces, hardware counters, OS counters) and the delivery of power consumptions via different channels (including file system, network, web, graphical). As a middleware toolkit, PowerAPI offers the capability of assembling power meters «à la carte» to accommodate user requirements.

About

PowerAPI is an open-source project developed by the Spirals research group (University of Lille 1 and Inria) and fully managed with sbt.

The documentation is available here.

Mailing list

You can follow the latest news and asks questions by subscribing to our mailing list.

Contributing

If you would like to contribute code you can do so through GitHub by forking the repository and sending a pull request.

When submitting code, please make every effort to follow existing conventions and style in order to keep the code as readable as possible.

Publications

Use Cases

PowerAPI is used in a variety of projects to address key challenges of GreenIT:

  • GenPack provides a Docker Swarm strategy to minimize the energy footprint of Docker containers deployed in a cluster
  • BitWatts provides process-level power estimation of applications running in virtual machines
  • Web Energy Archive ranks popular websites based on the energy footpring they imposes to browsers
  • Greenspector optimises the power consumption of software by identifying potential energy leaks in the source code.

Acknowledgments

We all stand on the shoulders of giants and get by with a little help from our friends. PowerAPI is written in Scala (version 2.12.1 under 3-clause BSD license) and built on top of:

License

This software is licensed under the GNU Affero General Public License, quoted below.

Copyright (C) 2011-2017 Inria, University of Lille 1.

PowerAPI is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

PowerAPI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with PowerAPI. If not, please consult http://www.gnu.org/licenses/agpl-3.0.html.