1. 系统要求 📋

2. 安装步骤 🛠

方法一:源码编译 🧪

  1. 下载源码包:
    Prometheus_源码下载
  2. 解压并进入目录:
    tar -xzf prometheus-*.tar.gz
    cd prometheus-*
    
  3. 编译安装:
    make
    sudo make install
    

方法二:使用包管理器 📦

  • Debian/Ubuntu
    sudo apt-get install prometheus
    
  • CentOS/RHEL
    sudo yum install prometheus
    
  • macOS(Homebrew)
    brew install prometheus
    

3. 配置与启动 🚀

  1. 编辑配置文件:
    Prometheus_配置文件结构
  2. 启动服务:
    prometheus --config.file=/etc/prometheus/prometheus.yml
    

4. 验证安装 🧾

5. 常见问题 🚨

Prometheus_安装流程图