Welcome to the Prometheus setup guide! Prometheus is a powerful open-source monitoring system that helps you collect and query metrics from various sources. Follow these steps to get started:

1. Installation 📦

  • Linux: Use wget https://github.com/prometheus/prometheus/releases/download/v2.34.0/prometheus-2.34.0.linux-amd64.tar.gz to download the latest version.
  • macOS: Try brew install prometheus via Homebrew.
  • Windows: Download the ZIP file from prometheus.io and extract it.

👉 Quickstart Guide for faster setup options

2. Configuration 📝

Edit the prometheus.yml file to define your monitoring targets:

scrape_configs:
  - job_name: "node_exporter"
    static_configs:
      - targets: ["localhost:9090"]

Replace localhost:9090 with your actual server address.

3. Start the Server 🚀

Run Prometheus with:

./prometheus --config.file=prometheus.yml

Access the web UI at http://localhost:9090 to verify it's running.

4. Monitor Targets 📈

Add exporters (e.g., Node Exporter, MySQL Exporter) to scrape metrics.

5. Alerting & Visualization 🚨

Tips ✅

  • 🔍 Always check the official documentation for advanced features.
  • 🔄 Back up your config files regularly.
prometheus_logo
prometheus_config_file
prometheus_monitoring_dashboard