Installing Flux monitoring dashboards
Flux itself doesn’t include a graphical user interface for management but integrates some useful dashboards using Prometheus and Grafana to visualize the state of your deployments. These dashboards have to be installed on each cluster. To install this feature, follow the next steps:
- Configure the Git repository that contains monitoring stack definitions for its installation. The configuration will listen for changes every 30 minutes. The code is illustrated here:
$ flux create source git monitoring \ --interval=30m \ --kubeconfig /etc/rancher/k3s/k3s.yaml \ --url=https://github.com/fluxcd/flux2 \ --branch=main
- Install
kube-prometheus-stack
, which is going to be used to configure Prometheus for your dashboards. This stack will be installed in themonitoring
namespace. The code is illustrated in the following snippet:$ flux create kustomization monitoring-stack \ --interval=1h \ --kubeconfig /etc/rancher/k3s/k3s.yaml \ --prune=true...