1、windows版本安装

https://grafana.com/grafana/download?platform=windows

下载msi、并安装

启动

#cmd执行
net start grafana

2、windows版本停止

#停止
net stop grafana
#确认
tasklist | findstr gra
#停不掉
#taskkill /PID 21876 /F
#关闭开机启动
sc config grafana start= demand

3、对接prometheus

3.1 添加数据源

Data sources->Add new data source->prometheus

3.2 添加看板

http://localhost:3000/

Dashboards->New->New Dashboard->Add visualization
在这里插入图片描述
直接使用promQL:
在这里插入图片描述

Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐