{"repo":"fluxcd/flux2-monitoring-example","free":true,"listed":false,"github":"https://github.com/fluxcd/flux2-monitoring-example","clone":"git clone https://github.com/fluxcd/flux2-monitoring-example.git","description":"Prometheus monitoring for the Flux control plane","language":"Shell","stars":96,"topics":["gitops","monitoring"],"license":"Apache-2.0","category":"analytics","readme_excerpt":"flux2-monitoring-example This repository is an example of how to make use of kube-prometheus-stack and loki to monitor Flux. Components: kube-state-metrics - generates metrics about the state of the Flux objects Prometheus Operator - manages Prometheus clusters atop Kubernetes Prometheus - collects and stores metrics from the Flux controllers and kube-state-metrics Promtail - collects the logs from the Flux controllers Loki - stores the logs collected by Promtail Grafana dashboards - displays the Flux control plane resource usage, reconciliation stats and logs Quickstart Create a Kubernetes cluster For a quick local test, you can use Kubernetes kind. Any other Kubernetes setup will work as well though. Create a cluster called test with the kind CLI: Fork the GitHub repository In order to follow this guide you'll need a GitHub account and a personal access token that can create repositories (check all permissions under repo ). Add the GitHub PAT and username to your shell environment: Fork this repository on your personal account and clone it locally: Bootstrap Flux Install the Flux controllers on the test cluster: Wait for Flux to deploy the monitoring stack with: After Flux has finished reconciling, you can list the pods in the monitoring namespace with: Accessing Grafana To access Grafana, start port forward in a separate shell: Navigate to http://localhost:3000 in your browser and login with user admin and password flux . Flux dashboards: - Reconciliation stats - Control p","default_branch":null,"files":null,"tree":[],"storefront":"/r/fluxcd","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fluxcd/flux2-monitoring-example/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}