Internet of Things (IoT) provides large-scale solutions for efficient resource monitoring and management. As such, the technology has been heavily integrated into domains such as manufacturing, healthcare, agriculture, and utilities, which led to the emergence of sustainable smart cities. The success of smart cities depends on the availability of data, as well as the quality of the data management infrastructure. IoT introduced numerous new software, hardware, and networking technologies designed for efficient and low-cost data transport, storage, and processing. However, proper selection and integration of the correct technologies is crucial to ensuring a positive return on investment for such systems. This paper presents a novel end-to-end infrastructure for solar energy analysis and prediction via edge-based analytics.