Most of you know Redis as a key-value database, but did you know there is a module that simplifies the use of Redis for time series use cases? In this post I will explain a simple way to store time series data in Redis using Go and visualize it in Grafana. The Go script is designed to be easily adaptable to new use cases, like using a Raspberry Pi to save system metrics (it will reduce the number of write cycles in SD card because the data will be stored in RAM).
This post is part of a series of a simple networking scanning tool named PortScraper. I will explain how to embed the application into Docker image and how to prepare the setup (PortScraper + MariaDB) with docker-compose.
I created this post to explain to you the steps that I did to setup a simple tool to scan a huge range of IPs and store the results in a MYSQL database using Go.