DEV Community

Lui Yong Sheng
Lui Yong Sheng

Posted on • Originally published at luiyongsheng.Medium

Monitor M1 MacBook Air Power Use with InfluxDB®

image

For some reasons, I want to monitor the power usage of my M1 MacBook Air. The quickest way to grab power related system information directly from the macOS Terminal is actually using the powermetrics command. However, printing out the results on screen doesn’t meet my monitoring requirements, therefore, I try to think of a better solution to store and visualise the data.

After a quick search on Google, I decided to use InfluxDB as my Time-Series Database to record the power usage signal because it provides an easy-to-use and easy-to-configure dashboard feature.

Read more

Top comments (0)