1、下载OhmGraphite
https://github.com/nickbabcock/OhmGraphite/releases
2、修改OhmGraphite.exe.config配置(此处使用Prometheus做为数据源)
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="type" value="prometheus" />
<add key="prometheus_port" value="4445" />
<!-- This is the host that OhmGraphite listens on.
`*` means that it will listen on all interfaces.
Consider restricting to a given IP address -->
<add key="prometheus_host" value="*" />
<add key="prometheus_path" value="metrics/" />
</appSettings>
</configuration>
3、安装并启动
# 安装 .\OhmGraphite.exe install # 启动 .\OhmGraphite.exe start
4、Prometheus配置并查看
# vim prometheus.yml
global:
scrape_interval: 15s
scrape_configs:
- job_name: 'ohmgraphite'
static_configs:
- targets: ['10.0.0.200:4445']

5、Grafana配置
# 导入dashboard https://grafana.com/grafana/dashboards/11587-ohm-windows-desktop/



参考:
https://github.com/nickbabcock/OhmGraphite
浙公网安备 33010602011771号