
Configuring Apache Exporter with Prometheus in Kubernetes (Minikube)
Lab Objectives By completing this lab, you will: Deploy Apache in Kubernetes Deploy Apache Exporter Deploy Prometheus Configure Prometheus to scrape Apache metrics Generate load and observe real-time metrics Clean up the environment Lab Prerequisites Ensure the following are installed: Docker kubectl Minikube Git curl Verify installation: kubectl version --client minikube version docker --version Lab 1 – Start Kubernetes Environment 1. Start Minikube minikube start --driver = docker Verify cluster: kubectl get nodes 2. Create Namespace kubectl create namespace monitoring Set default namespace: kubectl config set-context --current --namespace = monitoring Verify: kubectl get ns Lab 2 – Deploy Apache Web Server 1. Create Apache Deployment Create file: apache-deployment.yaml apiVersion : apps/v1 kind : Deployment metadata : name : apache spec : replicas : 1 selector : matchLabels : app : apache template : metadata : labels : app : apache spec : containers : - name : apache image : httpd:2
Continue reading on Dev.to Tutorial
Opens in a new tab

