Grafana = visual analysis to monitor alarms +

Grafana is a perfect analysis and monitoring of the development platform

Can Grafana understood as a visual panel (Dashboard), in fact Kibana also an analysis and visualization platform,
but in everyone's daily use Kibana is followed Logstash, use ElasticSearch and other components together to do the log display, index, analysis, resulting in Kibana only an illusion that this usage of, Kibana can also access other data sources, but we are still the most commonly used to show the log.

basic concept

Data Source

Grafana for your time-series data (Data Source) supports many different storage backend. Each data source has a specific query editor, which editor to customize for a particular data source features and functionality disclosed.

Officially supported data sources: Graphite, InfluxDB, OpenTSDB, Prometheus, Elasticsearch, CloudWatch

Query language and function of each data source has significantly different. You can combine data from multiple sources into a dashboard, but each panel is bound to a particular data source belonging to a specific organization.

Organization

Grafana different organizations support different display models. (PS: in fact, personalized display, data show different groups are not the same)

User

A user is an account of Grafana. A user can belong to one or more of the organization, and can assign different levels of permissions by role.

Row

The dashboard is a logical line separator, it is used to group the panel (or called classification).

Row has 12 cells (the equivalent of 12), the level of these cells automatically retractable. (PS: Similar Bootstrap grid layout)

Panel

Grafana panel is the most basic visual building blocks. Each panel provides a query editor (depending on the selected data source in the panel), you can extract the data you want to show through the query editor and a fine display on the panel. Each panel offers a variety of styles and formatting options to help you create the perfect picture.

Panel can be dragged and rearranged on the dashboard. They can also adjust the size.

目前有5种面板类型: Graph , Singlestat , Dashlist , Table , Text

Query Editor

类似于MySQL的查询编辑器,用于抓取数据的

Dashboard

仪表盘是所有信息汇集的地方。仪表板可以看作是由一个或多个面板组成并排列而成的一行或多行。

 

安装&使用

通过YUM仓库安装

https://grafana.com/docs/installation/rpm/

启动以后,访问http://localhost:3000/  默认用户名和密码是admin/admin

接下来就安装步骤,先添加数据源,然后添加仪表盘和面板,配置查询编辑器

Grafana提供了很多插件,一般我们都会再安装Zabbix插件

安装Zabbix后,重启Grafana,并启用Zabbix,配置Zabbix

Grafana还可以设置告警,可以推钉钉消息……

这里我没有事先准备数据源,而且抛开业务去谈监控也没有什么意义,就瞅一眼线上的配置吧,来几张截图过过瘾

文档

https://grafana.com/docs/

https://www.zabbix.com/

https://blog.51cto.com/13447608/2299747

 

Guess you like

Origin www.cnblogs.com/cjsblog/p/11288530.html