Kibana可视化数据分析
Posted 云服务飞行团
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Kibana可视化数据分析相关的知识,希望对你有一定的参考价值。
![Kibana可视化数据分析](https://image.cha138.com/20210402/f26adb4651394379bf6f8c75738ce4b9.jpg)
Kibana可视化数据分析
![Kibana可视化数据分析](https://image.cha138.com/20210402/055d2d64f7fe4827876ed2b32139df99.jpg)
![Kibana可视化数据分析](https://image.cha138.com/20210402/8f2ce64f85a54d06bad67ec928ddd330.jpg)
Kibana 是一个开源的数据分析与可视化平台,可以配合elasticsearch一起使用,通过kibana搜索、查看存放在Elasticsearch中的数据,将数据转化为直观的图表、表格、地图等多种可视化组件,并将各种可视化组件集合成大屏,实现高级的数据分析与可视化的目的。
![Kibana可视化数据分析](https://image.cha138.com/20210402/70936443d44640d682e88d624baff95c.jpg)
kibana安装配置和启动
kibana版本:https://www.elastic.co/cn/downloads/past-releases#kibana-oss
下载:wget https://artifacts.elastic.co/downloads/kibana/kibana-oss-6.5.4-linux-x86_64.tar.gz
解压:tar -zxf kibana-oss-6.5.4-linux-x86_64.tar.gz
配置配置文件:vi kibana-6.5.4-linux-x86_64/config/kibana.yml
配置文件内容:
# Specifies the address to which the Kibana server will bind. IP addresses and host names are both valid values.
# The default is 'localhost', which usually means remote machines will not be able to connect.
# To allow connections from remote users, set this parameter to a non-loopback address.
server.host: "0.0.0.0"
# Enables you to specify a path to mount Kibana at if you are running behind a proxy.
# Use the `server.rewriteBasePath` setting to tell Kibana if it should remove the basePath
# from requests it receives, and to prevent a deprecation warning at startup.
# This setting cannot end in a slash.
#server.basePath: ""
# Specifies whether Kibana should rewrite requests that are prefixed with
# `server.basePath` or require that they are rewritten by your reverse proxy.
# This setting was effectively always `false` before Kibana 6.3 and will
# default to `true` starting in Kibana 7.0.
#server.rewriteBasePath: false
# The maximum payload size in bytes for incoming server requests.
#server.maxPayloadBytes: 1048576
# The Kibana server's name. This is used for display purposes.
#server.name: "your-hostname"
# The URL of the Elasticsearch instance to use for all your queries.
elasticsearch.url: "http://es-nlb-es-7v0rfdu41h.jvessel-open-hb.jdcloud.com:9200"
# When this setting's value is true Kibana uses the hostname specified in the server.host
# setting. When the value of this setting is false, Kibana uses the hostname of the host
# that connects to this Kibana instance.
#elasticsearch.preserveHost: true
# Kibana uses an index in Elasticsearch to store saved searches, visualizations and
# dashboards. Kibana creates a new index if the index doesn't already exist.
kibana.index: ".kibana"
执行kibana:cd ../bin/ && ./kibana
访问kibana:http://ip:5601
![Kibana可视化数据分析](https://image.cha138.com/20210402/b7e23ee66e384a139c13af46641294f4.jpg)
![Kibana可视化数据分析](https://image.cha138.com/20210402/bcaecac05d0f48d19cebdbb45312a4be.jpg)
![Kibana可视化数据分析](https://image.cha138.com/20210402/0e63e0ec75f94ba8bce48f7f514a580d.jpg)
![Kibana可视化数据分析](https://image.cha138.com/20210402/70936443d44640d682e88d624baff95c.jpg)
Kibana可视化数据分析
我们通过kibana分析cdn客户的业务的质量数据入手,看看kibana是如何实现高效的数据分析功能。
Discover:可以从Discover页面交互式的探索elasticsearch中的数据。实现查看和搜索、统计、过滤数据等功能。
下图可以看到我们可以通过筛选error不为0,过滤出存在错误的数据,有利于我们分析该客户请求中的错误原因。
Visualize:可以利用一系列的 slasticsearch 查询聚合功能来提取和处理数据,为elasticsearch数据创建可视化控件,更直观的呈现数据的分布和趋势。
下图可以看到visualize为我们提供了多样的可视化组件:
选择折线图绘制出北京电信区域的各个厂商的首帧趋势图对比图,可以清晰的看出各个厂商的质量趋势变化和排名。
Dashboard:能够将各种可视化组件集合成大屏,实现高级的可视化数据仪表盘。
我们使用dashboard将使用visualize画出的各区域运营商的质量图组成分区域运营商的质量数据大屏,可以清晰的看出各个区域运营商的质量情况。
![Kibana可视化数据分析](https://image.cha138.com/20210402/bcaecac05d0f48d19cebdbb45312a4be.jpg)
![Kibana可视化数据分析](https://image.cha138.com/20210402/0e63e0ec75f94ba8bce48f7f514a580d.jpg)
![Kibana可视化数据分析](https://image.cha138.com/20210402/802ce18e29fc405787fbdc6e7b0e8fdf.jpg)
![Kibana可视化数据分析](https://image.cha138.com/20210402/294bfc05fc8f49cba0ff431f07ac40ff.jpg)
![Kibana可视化数据分析](https://image.cha138.com/20210402/e66dccee40ac4572ac69f4cd5840614d.jpg)
以上是关于Kibana可视化数据分析的主要内容,如果未能解决你的问题,请参考以下文章