Skip to content

Latest commit

 

History

History
48 lines (34 loc) · 1.31 KB

monitoring.md

File metadata and controls

48 lines (34 loc) · 1.31 KB

Monitoring? Let's do it!

In the next example, we are going to use Helm instead of Kustomize to install our monitoring stack. Have a look at the manifests in the app_kube-prometheus-stack folder, you should recognize the classic Helm structure

To install the monitoring stack we need to:

  • Modify argocd_deploy/apps/kube_prometheus_stack.yaml
  • Include it in the kustomization resources ( argocd_deploy/kustomization.yaml):
resources:
- resources/namespace.yaml
- apps/argocd.yaml
- apps/kube_prometheus_stack.yaml
  • Apply the changes by committing and pushing

Wait a couple of minutes to let ArgoCD pick up the changes or force refresh from the web interface.

Kube-prometheus-stack is now being installed. You can follow the progress with:

kubectl get po -n monitoring -w

Visualize grafana dashboard

Get admin password:

kubectl get secret --namespace monitoring kube-prometheus-stack-grafana -o jsonpath="{.data.admin-password}" | base64 --decode ; echo

Set up port-forward to grafana:

kubectl port-forward -n monitoring svc/kube-prometheus-stack-grafana 10000:80

Login at localhost:10000 with username admin and the password from the previous step

In Grafana you should find a dashboard dedicated to ArgoCD. Take some time to explore its functionalities.