
Prometheus
文章平均质量分 67
TheManba
You can do anything you want to, if you really want it.
展开
-
04. prometheus 监控 Windows 服务器
安装包下载:https://github.com/prometheus-community/windows_exporter/releases。9182` 端口,可以看到采集到的数据。若要在其它服务器上看到采集到的。端口的对外访问权限。版本,上传至要监控的。服务器,双击安装即可,服务器数据,还需开放。原创 2024-10-09 22:00:38 · 650 阅读 · 0 评论 -
03. prometheus 监控 Linux 主机
这里监控的是本机主机;如果要监控远程主机,还需要打开远程主机的 9100 端口才可以访问收集到的信息,可参考后文内容——二、防火墙打开端口。官网:https://prometheus.io/download/上述添加的规则重启后会失效,还需持久化。如:127.0.0.1:9100/metrics。原创 2024-10-09 21:57:26 · 824 阅读 · 0 评论 -
02. 上报自定义数据到 prometheus(使用 Python Client)
暴露端口 9600,并注册到 prometheus,即通过 pull 方式上报指标到 prometheus。重启 prometheus,进入 Targets,看到新监控的节点。原创 2024-10-09 21:45:58 · 616 阅读 · 0 评论 -
1. 安装Prometheus及简单使用
Prometheus启动端口为 9090,可通过 http://localhost:9090/graph 登录。prometheus.yml 是 Prometheus 的配置文件。点击右侧的 Execute,如下,有 Table 和 Graph 两种形式。点击 status --> Targets:里面就是已经监控的节点。点击工具栏中的 Graph,进入如下界面,在搜索框输入要监控的目标。点击 status --> Configuration。访问 localhost:9090/metrics。原创 2024-03-15 11:11:56 · 4431 阅读 · 0 评论