Monitoring Setup with Grafana and Prometheus
This is the definitive “Remote Monitoring” guide. You will have two separate machines communicating with each other. The Architecture Server A (Target): Runs your apps + lightweight “Exporters” (agents) that expose metrics. Server B (Monitoring): Runs Prometheus (database) & Grafana (dashboard). It reaches out to Server A to “scrape” data. Step 1: Prepare the Target Server (Your App Server) Do this on the server running your actual applications. Create a folder: mkdir -p ~/monitoring-agent ...