Skip to content

Monitoring your cluster using Loki

Overview

This user journey guides you to set up a monitoring facility for the Accuknox control plane cluster and its workloads.

Step 1: Create a NodePool

  • Create a node pool on GKE / EKS / AKS (or) on-premises worker nodes with below Requirements
NodePool Name Logging
No of Nodes 3
Machine Type E2 / ec2 / vm (vmware / Cloud based VM)
Image Type Any Linux based OS with Container support ( EG: GCP COS-Containerd)
CPU Per Node 6
Memory Per Node 16
Disk Size Per Node 50
Total CPU 18
Total Memory 48
Total Disk Size 150
Taints & Lables logging:true
Node Pool Name logging

Step 2: Install Loki

Install Helm:

  • Helm binary is required to proceed further. To install Click here

  • Add accuknox repository to install Loki helm package:

helm repo add accuknox-onprem-logging https://USERNAME:[email protected]/repository/accuknox-onprem-logging 
helm repo update
helm search repo accuknox-onprem-logging
helm pull accuknox-onprem-logging/loki-stack  --untar 
kubectl create namespace accuknox-loki-logging 
kubectl config set-context --current --namespace=accuknox-loki-logging 
helm install loki loki-stack/

kubectl get pods -n accuknox-loki-logging
Alt

Step 3: Grafana Login

Alt

Note:

Username: admin

Password: prom-operator

To Change Password:

  • Scroll Down Below → Click on Admin Icon → Change Password

Alt

Add Endpoint in Grafana Data source:

  • Click on Configuration Icon → Data source → Add data source → Select loki

Alt

  • Update loki FQDN on loki data source UI

  • Click on save and test.

Alt

  • Click on explore section → Select the namespace and click → show logs

Alt

Back to top