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.
Feel free to share your thoughts.