当前位置: 首页> 健康> 知识 > windows下以服务方式安装prometheus和grafana

windows下以服务方式安装prometheus和grafana

时间:2025/7/9 16:28:47来源:https://blog.csdn.net/qq_36437991/article/details/136828893 浏览次数:0次

grafana

找到confi下的defaults.ini,找到http_port修改端口号

# The HTTP port  to use
http_port = 3000

在这里插入图片描述

启动

grafana-server.exe

访问localhost:8601即可
下载winsw
https://github.com/winsw/winsw
在这里插入图片描述
新建grafanaservice.xml

<service><id>grafana</id><name>grafana</name><description>grafana</description><logpath>D:\Software\prometheus\grafana-v10.4.0\logs</logpath><executable>D:\Software\prometheus\grafana-v10.4.0\bin\grafana-server.exe</executable>
</service>

WinSW-x64.exe修改为grafanaservice.exe
以管理员身份执行grafanaservice.exe install
在这里插入图片描述

在这里插入图片描述

prometheus

prometheus的安装和grafana类似,可以参考上面的方法实现

参考
参考
https://grafana.com/docs/grafana/latest/setup-grafana/configure-grafana/enterprise-configuration/
https://grafana.com/docs/grafana/latest/setup-grafana/configure-grafana/

关键字:windows下以服务方式安装prometheus和grafana

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

责任编辑: