Company
Date Published
Author
Wojciech Kocjan
Word count
1769
Language
English
Hacker News points
None

Summary

The author of this article, Wojciech Kocjan, aimed to improve his setup for monitoring power outages and connectivity issues that were causing his laptop battery to drain. He used InfluxDB, an open-source time-series database, along with Telegraf, a data collection agent, to store data locally on his laptop when connected to the internet but replicate it to a central location whenever possible. The author created a local instance of InfluxDB 2.0 and configured Edge Data Replication (EDR) to automatically send data from the local bucket to an instance of InfluxDB Cloud. He also added networking data, such as connectivity checks for his router and ISP, and power data, including battery state and charging information. By gathering this data, the author was able to identify the root cause of his issues, which were related to power outages affecting his switch and internet connection. With these insights, he improved his setup by running the local switch and printer behind an uninterrupted power supply (UPS), resolving most of the issues and making his friend's life easier. The author also learned how to set up EDR and monitor Windows devices using WMI.