System Requirements
- ⚙️ OS: Linux, macOS, or Windows (with WSL2 support)
- 📦 Dependencies: Go 1.18+ (for building from source), Docker (optional)
- 🧠 Storage: 500MB+ available space for binaries and data
Installation Steps
- 📦 Download Prometheus from official releases
- 📁 Extract the archive:
tar -xzf prometheus-*.tar.gz
- 📝 Configure
prometheus.yml
for scrape targets- Example: Add
scrape_configs
for your services
- Example: Add
- 🚀 Start Prometheus service:
./prometheus --config.file=prometheus.yml
- 🧪 Verify installation:
- Access localhost:9090 in browser
- Check the status of your metrics
Monitoring Setup
- 📈 Add Grafana dashboard for visualization (link: /Documentation/en/Tools/Grafana)
- 🔄 Enable remote write for data persistence
- 🛡️ Set up authentication via Basic Auth or TLS
Best Practices
- 📁 Store config files in
/etc/prometheus
- 🧠 Use
--web.enable-lifecycle
for graceful restarts - 📈 Monitor system metrics first (CPU, memory, disk)
For advanced configuration options, check our complete documentation. 📚