Installing Prometheus, a time series database
Prometheus is a time series database that you can use to store your weather data. It’s open source and it’s suitable for edge devices. It can be deployed on ARM devices and it’s very flexible to manage metrics and alerts. In this use case, we use Prometheus because of how flexible it is and the support it provides to store and visualize metrics. But we are going to use Grafana for visualizing data later. Now let’s install Prometheus in our Kubernetes cloud cluster, following these steps:
- Create the
monitoring
namespace, which will be used to install Prometheus and Grafana:$ cat <<EOF | kubectl apply -f - apiVersion: v1 kind: Namespace metadata: name: monitoring EOF
- Create a ConfigMap that contains static configurations for Prometheus. In this case, we are going to create two services that insert data into Prometheus: one stores a counter and the weather data. The first service is...