Grafana & Prometheus 配置
Grafana 版本是 7.0.4
Prometheus 版本是 2.8.0
1、配置 Prometheus 數據源
Date Sources--> 選擇 Prometheus,配置 Name 和 URL
【注意】Name 必須為首字母大寫的 Prometheus,不能寫成全小寫的 prometheus
2、保存並測試 Prometheus 數據源
點擊“Save & Test”,頁面彈出“Data source is working”信息,表明 Prometheus 數據源是可用的。
3、新建 Dashboard
1)左側加號,Create Dashboard
2) Add new panel
3)配置 Panel tile
4)選擇 Prometheus 數據源
5)選擇指標
6)選擇曲線圖表
7)設置指標單位
8)最終效果