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/