1. Grafana 介绍
1.1 什么是Grafana
Grafana是一款近几年比较流行的开源数据绘图工具平台。
Grafana原生支持包括但不限于InfluxDB,MySQL,OpenTSDB,PostgreSQL和Prometheus等多种数据源作为输入源数据。
官方地址:
https://grafana.com/
下载地址:
https://grafana.com/grafana/download
2.2下载并部署Grafana
(1)下载软件包
wget https://dl.grafana.com/oss/release/grafana-8.0.3-1.x86_64.rpm
(2)安装软件
yum -y localinstall grafana-8.0.3-1.x86_64.rpm
(3)启动服务
[root@docker201.oldboyedu.com ~]# systemctl start grafana-server
[root@docker201.oldboyedu.com ~]#
[root@docker201.oldboyedu.com ~]# systemctl enable grafana-server

2. 基于Grafana的WebUI添加Prometheus数据源
2.1 添加数据源