当前位置: 首页 > news >正文

Windows 环境下 Prometheus 安装指南

目录

确认系统环境

下载 Prometheus

解压安装包

配置 Prometheus

启动 Prometheus

访问 Prometheus Web 界面


确认系统环境

确保你的 Windows 系统满足 Prometheus 的运行要求(推荐 Windows 10 或更高版本)。

下载 Prometheus

打开 Prometheus 官方下载页面,找到适用于 Windows 的最新版本。
下载 prometheus-<版本号>.windows-amd64.zip 文件,例如 prometheus-2.45.4.windows-amd64.zip

解压安装包

D:\ 盘根目录下创建一个名为 prometheus 的文件夹,路径为 D:\prometheus

将下载的 prometheus-<版本号>.windows-amd64.zip 文件解压到 D:\prometheus 文件夹中。

配置 Prometheus

打开 D:\prometheus\prometheus.yml 文件,根据需要修改配置内容。以下是一个简单的示例配置:

global:
  scrape_interval: 15s  # 数据抓取间隔
  evaluation_interval: 15s  # 规则评估间隔

scrape_configs:
  - job_name: 'prometheus'  # 监控 Prometheus 自身
    static_configs:
      - targets: ['localhost:9090']

启动 Prometheus

打开 PowerShell,切换到 D:\prometheus

cd D:\prometheus

运行 prometheus.exe   

.\prometheus.exe

访问 Prometheus Web 界面

在浏览器地址栏输入 http://localhost:9090,访问 Prometheus 的 Web 界面。
在 Prometheus 界面中,点击左侧菜单栏的 Status -> Targets,查看已配置的监控目标是否正常抓取数据。

相关文章:

  • python爬虫系列课程1:初识爬虫
  • 【基础架构篇五】《DeepSeek计算图解析:动静态图融合设计原理》
  • 五档历史Level2行情数据:期货市场的信息宝库
  • spconv 安装测试
  • VScode运行C语言提示“#Include错误,无法打开源文件stdio.h”
  • [实现Rpc] 消息抽象层的具体实现
  • 火锅店点餐系统的设计与实现(ssm论文源码调试讲解)
  • 百度api填写
  • 算法12--栈
  • 在Nodejs中使用kafka(四)消息批量发送,事务
  • 栈回溯基础
  • python学opencv|读取图像(七十四)人脸识别:EigenFaces算法
  • 一周学会Flask3 Python Web开发-request请求对象与url传参
  • TCP通讯-客户端链接
  • python 快速实现链接转 word 文档
  • 蓝桥杯题目(生日蜡烛)
  • ARM中断流程思考。
  • 【核心算法篇五】《DeepSeek时间序列预测:Transformer+ARIMA融合》
  • 文件分片上传 python
  • 2024亚马逊数据分析!
  • 彭丽媛同巴西总统夫人罗桑热拉参观中国国家大剧院
  • 白天气温超30℃的北京,晚间下起了冰雹
  • 河南信阳拟发文严控预售许可条件:新出让土地开发的商品房一律现房销售
  • 通化市委书记孙简升任吉林省副省长
  • 王毅谈中拉论坛十年成果
  • 兰州大学教授安成邦加盟复旦大学中国历史地理研究所