Windows OhmGraphite 配置
转载自:https://www.oiox.cn/index.php/archives/390/
Windows OhmGraphite 配置
由于windows_exporter无法监控温度相关的指标,那么就需要使用OhmGraphite进行监控该指标。
下载
访问 https://github.com/nickbabcock/OhmGraphite/releases/ 地址进行下载最新的版本,下载后解压到你自己放的目录
修改配置
编辑OhmGraphite.exe.config文件,增加prometheus作为接收数据源。
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="host" value="localhost" />
<add key="port" value="2003" />
<add key="interval" value="5" />
<!--开启prometheus-->
<add key="type" value="prometheus" />
<add key="prometheus_port" value="4445" />
<add key="prometheus_host" value="*" />
</appSettings>
</configuration>
安装
执行安装将OhmGraphite以服务的方式运行。打开Windows PowerShell (管理员版本),cd到你刚刚解压的目录。运行安装命令。
.\OhmGraphite.exe install
启动
.\OhmGraphite.exe start
访问
启动后用浏览器打开:http://127.0.0.1:4445/metrics 查看是否能够读取到数据。看到数据后,说明配置成功了。然后在配置prometheus接收数据。
Prometheus增加配置
global:
scrape_interval: 15s
scrape_configs:
- job_name: 'ohmgraphite'
static_configs:
- targets: ['127.0.0.1:4445']
添加配置之后,重启服务即可
Grafana面版配置
https://grafana.com/grafana/dashboards/11587-ohm-windows-desktop/添加此面版即可,查看所需的参数。
分类:
Prometheus
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 上周热点回顾(2.24-3.2)
2020-08-20 jumpserver 2222端口的使用
2020-08-20 安装jumpserver 2.1.2版本遇到的坑
2020-08-20 python中限定导入的子模块
2019-08-20 在线修改大表结构pt-online-schema-change
2019-08-20 jumpserver-1.4.8安装步骤