编程开源技术交流,分享技术与知识

网站首页 > 开源技术 正文

Zabbix监控系统系列之二十五:配置(Grafana)

wxchong 2024-08-13 12:23:51 开源技术 31 ℃ 0 评论

Grafana介绍

Grafana是一个跨平台的开源的度量分析和可视化工具,可以通过将采集的数据查询然后可视化的展示,并及时通知。它主要有以下六大特点:

1、展示方式:快速灵活的客户端图表,面板插件有许多不同方式的可视化指标和日志,官方库中具有丰富的仪表盘插件,比如热图、折线图、图表等多种展示方式;

2、数据源:Graphite,InfluxDB,OpenTSDB,Prometheus,Elasticsearch,CloudWatch和KairosDB等;

3、通知提醒:以可视方式定义最重要指标的警报规则,Grafana将不断计算并发送通知,在数据达到阈值时通过Slack、PagerDuty等获得通知;

4、混合展示:在同一图表中混合使用不同的数据源,可以基于每个查询指定数据源,甚至自定义数据源;

5、注释:使用来自不同数据源的丰富事件注释图表,将鼠标悬停在事件上会显示完整的事件元数据和标记;

6、过滤器:Ad-hoc过滤器允许动态创建新的键/值过滤器,这些过滤器会自动应用于使用该数据源的所有查询。

grafana安装使用

##下载安装

[root@localhost src]# ls ##提前准备包

debug grafana-7.3.4-1.x86_64.rpm kernels

[root@localhost src]# yum install grafana-7.3.4-1.x86_64.rpm

Repository extras is listed more than once in the configuration

······

xorg-x11-font-utils-1:7.5-41.el8.x86_64

xorg-x11-server-utils-7.7-27.el8.x86_64

完毕!

##启动并设置开机自启

[root@localhost ~]# systemctl daemon-reload

[root@localhost ~]# systemctl start grafana-server

[root@localhost ~]# systemctl enable grafana-server

Synchronizing state of grafana-server.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.

Executing: /usr/lib/systemd/systemd-sysv-install enable grafana-server

Created symlink /etc/systemd/system/multi-user.target.wants/grafana-server.service → /usr/lib/systemd/system/grafana-server.service.

[root@localhost ~]# ss -antl

State Recv-Q Send-Q Local Address:Port Peer Address:Port Process

LISTEN 0 128 0.0.0.0:10050 0.0.0.0:*

LISTEN 0 128 0.0.0.0:10051 0.0.0.0:*

LISTEN 0 128 127.0.0.1:9000 0.0.0.0:*

LISTEN 0 128 0.0.0.0:22 0.0.0.0:*

LISTEN 0 128 *:3000 *:*

LISTEN 0 80 *:3306 *:*

LISTEN 0 128 *:80 *:*

LISTEN 0 128 [::]:22 [::]:*

##安装插件并重启

[root@localhost ~]# grafana-cli plugins list-remote

[root@localhost ~]# grafana-cli plugins install alexanderzobnin-zabbix-app

[root@localhost ~]# service grafana-server restart

Reloading systemd: [ OK ]

Restarting grafana-server (via systemctl): [ OK ]

在浏览器中访问http://192.168.240.60:3000/

————————————————

Tags:

本文暂时没有评论,来添加一个吧(●'◡'●)

欢迎 发表评论:

最近发表
标签列表