当前位置:网站首页>Time series analysis using kibana timelion
Time series analysis using kibana timelion
2022-07-01 19:41:00 【51CTO】
Concept
First understand > A concept : What is year-on-year and month on month ?
Year on year and month on month :
(1) Year on year : Compare this period with the same period .
(2) Chain ratio : Compare this period with the previous period .
To put it simply , Year on year and month on month are used to indicate the direction and degree of development and change of something during the comparison period .
Year on year : It usually refers to the... Of this year n Month and the... Of last year n Monthly ratio . The year-on-year growth rate is mainly to eliminate the impact of seasonal changes , It is used to explain the relative development speed achieved by comparing the development level of this period with that of the same period last year . It is often used to analyze the long-term trend of data .
Chain ratio : It usually means continuous 2 One unit period ( Like two months in a row ) The change of the quantity in is more than . The chain comparison includes two types : Month on month growth rate and month on month development rate . It is often used to analyze the short-term trend of data .
Comparison of two adjacent same time periods in the statistical cycle ( for example 6 The month and 7 Month comparison ,8 The month and 9 Month comparison )---- Chain ratio , The same location time period between multiple statistical cycles ( Every day at noon 12 spot )---- Year on year
What's the difference between the two ?
(1) The month on month comparison is generally used for 、 Days are seldom used for years , It is mainly to compare the degree of increase in a very short time , However, due to industry differences , Such as tourism , It will be affected by the low and peak seasons .
(2) Year on year is generally used in the next two years , In the same period of time , View the increase degree , It is usually used in the same month of two years , Rarely used on the same date in two months .
Example 1:
for example , last year 6 month , Xiao Wang lacks exercise because of the epidemic and often stays at home to eat potato chips , As a result, the weight soared to 100 kg , This year, , In order to maintain his sunny image , Start exercising , As of this year 6 month , Xiao Wang's weight fell to 80 kg . Due to the development of the company's business , Xiao Wang works overtime and stays up late every day , To 7 The weight will be left in August 60 kg . So at this point , We can say that Xiao Wang's weight fell year-on-year 40%, It's down on a month on month basis 25%. Year on year :(100-60)/100; Chain ratio :(80-60)/80
2021 6 month 100kg
2022 6 month 80kg
2022 7 month 60kg
(100-60)/100 Year-on-year decline in 40%,(80-60)/80 fell 25%
Example 2:
Another example is ,2020 Total per capita income 2 Ten thousand yuan ,2019 Total per capita income 1 Ten thousand yuan , It can be expressed as 2020 Annual per capita income increased year on year 1 Ten thousand yuan , although 2020 and 2019 Are two adjacent time periods of equal length , But for two statistical cycles , Not month on month . First, determine the statistical period , Comparison of two adjacent same time periods in the statistical cycle ---- Chain ratio , The same location time period between multiple statistical cycles ---- Year on year
2020 2w
2019 1w
Conclusion :
2020 Year-on-year growth 1w
After knowing the concept of year-on-year and month on month comparison, you can continue to look down
What is? Kibana Timelion?
Timelion yes Kibana Visualization tool of time series in . Time series visualization is the visualization of analyzing data in time order .Timelion It can be used to draw two-dimensional graphics , Time is plotted on x On the shaft .
What are the advantages over using only ordinary bars or line visualization ?Timelion Took a different approach . You don't need to use a visual editor to create charts , But by using timelion Specific syntax links functions together to define graphics . this sytnax Some functions not provided by classic point series charts are enabled - For example, draw data from different indexes or data sources into a chart .
timelion You can aggregate data from completely independent and completely different data sources , Blend into the same picture , Make some presentation and analysis .(kibana Generally, it only shows es One of the index Of )
Some of the following questions are kibana Can't handle , and timelion Tolerable :
- Look at the daily crawling volume this month and the daily crawling volume last month in a picture
- Cumulative sum of crawling quantity this month
- Compared with the crawling volume last month , The growth rate this month
- Show the stock 30 Average distribution chart
- …
Timelion expression
timelion Expression with . start , A bunch of parameters will follow in the middle .timelion Expressions support chained calls , Such as es(q=site:yd).lable(yd)
You can also draw multiple curves in a graph , To compare , Separate with commas . This blog mainly records some common methods and their parameters .
边栏推荐
- Introduction and installation of crunch, and making password dictionary with crunch
- Remove line breaks from MySQL query results
- 精耕渠道共謀發展 福昕攜手偉仕佳傑開展新產品培訓大會
- Solidity - contract structure - error - ^0.8.4 NEW
- Proxy in ES6
- 面试题 16.16. 部分排序-双指针法
- Why must we move from Devops to bizdevops?
- The key to the success of digital transformation enterprises is to create value with data
- Transaction isolation level gap lock deadlock
- Native JS creates a calendar - supports mouse wheel scrolling to select months - and can be ported to any framework
猜你喜欢
任务:拒绝服务DoS
SIP protocol of gb28181
Dom4j parsing XML, XPath retrieving XML
What must be done in graduation season before going to Shanhai
The key to the success of digital transformation enterprises is to create value with data
Thesis reading [distinctive late semantic graph for video capturing]
XML syntax, constraints
Wireshark packet analysis TCP, FTP
Shell advanced
118. Yanghui triangle
随机推荐
Interview questions for audio and video positions in Dachang -- today's headline
Optaplanner learning notes (I) case cloud balance
安装sharp报错
奔赴山海之前,毕业季一定要做的那些事情
大厂音视频职位面试题目--今日头条
Shell advanced
OpenCV视频质量诊断----视频遮挡诊断
wireshark报文分析tcp,ftp
Brpc understanding
测试自学人必看:软件测试如何找测试项目?
Case sharing: basic networking configuration of QinQ
[SQL optimization] the difference between with as and temporary tables
OpenCV视频质量检测--清晰度检测
Test self-study people must see: how to find test items in software testing?
torch.nn.functional.interpolate函数
精耕渠道共谋发展 福昕携手伟仕佳杰开展新产品培训大会
Regular expression =regex=regular expression
mysql 报错 Can‘t create table ‘demo01.tb_Student‘ (errno: 150)*
703. 数据流中的第 K 大元素
Wechat applet navigator has a shadow after clicking. Remove the shadow effect of navigator