Embedded devices are no longer ship and forget products. Once deployed, a connected embedded device is updated and provide with services and not just functionality. This paradigm shift requires adopting DevOps practices and requires monitoring devices' operation to mitigate production issues. Once you monitor your entire distributed embedded system, you can run analytics for product improvements and predictive maintenance.
The link below outlines a cookbook for building monitoring and analytics system for connected embedded devices. We've included a working sample for nRF52 based devices that use BLE GATT and a GW. We used services that are open source, and the only costs are for cloud hosting.
https://medium.com/jumperiot/how-to-build-a-monitoring-and-analytics-system-for-your-iot-embedded-devices-87f73eda3497
Feel free to share your thoughts.