Grafana & Prometheus 配置


 

Grafana 版本是 7.0.4

Prometheus 版本是 2.8.0

1、配置 Prometheus 数据源

Date Sources--> 选择 Prometheus,配置 Name 和 URL

注意Name 必须为首字母大写的 Prometheus,不能写成全小写的 prometheus

Grafana & Prometheus 配置

 

Grafana & Prometheus 配置

 Grafana & Prometheus 配置

 

Grafana & Prometheus 配置

 

2、保存并测试 Prometheus 数据源

点击“Save & Test”,页面弹出“Data source is working”信息,表明 Prometheus 数据源是可用的。

Grafana & Prometheus 配置

 

3、新建 Dashboard

1)左侧加号,Create Dashboard

Grafana & Prometheus 配置

 

 2) Add new panel

Grafana & Prometheus 配置

 

3)配置 Panel tile

Grafana & Prometheus 配置

 

4)选择 Prometheus 数据源

Grafana & Prometheus 配置

 

5)选择指标

Grafana & Prometheus 配置

 

6)选择曲线图表

Grafana & Prometheus 配置

 

7)设置指标单位

Grafana & Prometheus 配置

 

8)最终效果

Grafana & Prometheus 配置

 

相关文章: