Installing Grafana to create dashboards
Grafana is a web application that you can use to visualize data from different data sources; it can also create alerts based on the data that you are visualizing. In our use case, Grafana will be used to visualize data that comes from Prometheus. Let’s remember that Prometheus is listening to service1
, to get data that comes from Mosquitto at the far edge. To deploy Grafana, follow these steps:
- First, create a ConfigMap to configure your Grafana deployment:
$ cat <<EOF | kubectl apply -f - apiVersion: v1 kind: ConfigMap metadata: name: grafana-datasources namespace: monitoring data: prometheus.yaml: |- { "apiVersion": 1, "datasources": [ { "access":"proxy...