
tions. Key concepts, features and functionalities of
PowerAPIDocker-Cloud related to the measurement
and estimation of energy consumption of software
applications in real time were identified, since the
HWPC sensor and the Smartwatts formula are config-
ured as part of its architecture, in addition to the Mon-
goDB, influxDB and Grafana services. To validate the
architecture proposed by PowerAPIDocker-Cloud, 33
experiments were designed for two different contexts
to demonstrate that it is able to measure effectively
different MVC applications programmed in different
languages and deployed in a different way: deskop,
web, web service and microservices. In addition, this
paper analyzes in detail the power consumption pat-
terns of the application under measurement, provid-
ing relevant findings to software engineers about the
IDEs’ consumption, the kind of CRUD operation and
the execution times that can be applied during soft-
ware development.
The features and functionalities identified in Pow-
erAPI are numerous; however, they are not yet fully
developed in relation to the measurement and estima-
tion of energy consumption in real time. This will al-
low future research to achieve a deeper understanding
of the capabilities of PowerAPI and take advantage
of its potential to optimize the energy consumption
of microservices. To replicate the PowerAPIDocker-
Cloud setup for estimating microservices power con-
sumption, it is suggested to carefully study the in-
formation related to the middleware, which provides
a solid foundation for understanding the importance
and implications of using PowerAPI, which can help
make informed decisions about its implementation
and utilization.
ACKNOWLEDGEMENTS
This work is partially supported by Universi-
dad T
´
ecnica Particular de Loja (Computer Sci-
ence Department) and the Spanish Ministry of Sci-
ence and Innovation (MICINN) through “SIoTCom:
Sustainability-Aware IoT Systems Driven by Social
Communities” (PID2020-118969RB-I00).
REFERENCES
Agarwal, S., Nath, A., and Chowdhury, D. (2012). Sustain-
able approaches and good practices in green software
engineering. International Journal of Research and
Reviews in Computer Science, 3(1):1425.
Bozzelli, P., Gu, Q., and Lago, P. (2013). A systematic
literature review on green software metrics. VU Uni-
versity, Amsterdam.
David, H., Gorbatov, E., Hanebutte, U. R., Khanna, R., and
Le, C. (2010). Rapl: Memory power estimation and
capping. In Proceedings of the 16th ACM/IEEE in-
ternational symposium on Low power electronics and
design, pages 189–194.
Fieni, G., Acero, D. R., Rust, P., and Rouvoy, R. (2024).
Powerapi: A python framework for building software-
defined power meters. Journal of Open Source Soft-
ware, 9(98):6670.
Grant, R. E., Levenhagen, M., Olivier, S. L., DeBonis,
D., Pedretti, K., and Laros, J. H. (2016). Over-
coming challenges in scalable power monitoring with
the power api. In 2016 IEEE International Paral-
lel and Distributed Processing Symposium Workshops
(IPDPSW), pages 1094–1097. IEEE.
Guam
´
an, D., P
´
erez, J., D
´
ıaz, P. V., and Canas, N. (2022).
Estimating the energy consumption of software com-
ponents from size, complexity and code smells met-
rics. In Hong, J., Bures, M., Park, J. W., and Cern
´
y,
T., editors, SAC ’22: The 37th ACM/SIGAPP Sympo-
sium on Applied Computing, Virtual Event, April 25 -
29, 2022, pages 1456–1459. ACM.
Guam
´
an, D., P
´
erez, J., and Valdiviezo-Diaz, P. (2023).
Estimating the energy consumption of model-view-
controller applications. The Journal of Supercomput-
ing, 79(12):13766–13793.
Kocak, S. A. (2013). Green software development and de-
sign for environmental sustainability. In 11th Inter-
national Doctoral Symposium an Empirical Software
Engineering (IDOESE 2013). Baltimore, Maryland,
volume 9.
Liu, K., Pinto, G., and Liu, Y. D. (2015). Data-oriented
characterization of application-level energy optimiza-
tion. In Fundamental Approaches to Software Engi-
neering: 18th International Conference, FASE 2015,
Held as Part of the European Joint Conferences on
Theory and Practice of Software, ETAPS 2015, Lon-
don, UK, April 11-18, 2015, Proceedings 18, pages
316–331. Springer.
Mancebo, J., Garcia, F., and Calero, C. (2021). A process
for analysing the energy efficiency of software. Infor-
mation and Software Technology, 134:106560.
Pazowski, P. et al. (2015). Green computing: latest practices
and technologies for ict sustainability. In managing
intellectual capital and innovation for sustainable and
inclusive society, joint international conference, Bari,
Italy, pages 1853–1860.
Pedregosa, F., Varoquaux, G., Gramfort, A., Michel, V.,
Thirion, B., Grisel, O., Blondel, M., Prettenhofer, P.,
Weiss, R., Dubourg, V., et al. (2011). Scikit-learn:
Machine learning in python. the Journal of machine
Learning research, 12:2825–2830.
Rad, B. B., Bhatti, H. J., and Ahmadi, M. (2017). An in-
troduction to docker and analysis of its performance.
International Journal of Computer Science and Net-
work Security (IJCSNS), 17(3):228.
Torvekar, N. and Pravin, S. G. (2019). Microservices and
it’s applications: An overview. International Jour-
nal of Computer Sciences and Engineering, 7(4):803–
809.
Containerizing the PowerAPI Architecture to Estimate Energy Consumption of Software Applications
335