---
title: "Kibana插件Timelion介绍"
author: "corejava2008"
date: "2016-06-24T09:55:18Z"
tags: []
categories: ["Web前端"]
slug: "kibana-timelion"
draft: false
lastmod: "2016-06-24T09:55:18Z"
id: 2307039
url: "https://corejava2008.iteye.com/blog/2307039"
---

Kibana插件Timelion介绍

 

Timelion是一个kibana时间序列展示组件

效果图如下：

![Screen Shot 2015-11-12 at 2.27.39 PM.png](https://www.elastic.co/assets/blt9117e105b1535caf/Screen%20Shot%202015-11-12%20at%202.27.39%20PM.png)

## The time series composer for Kibana

Kibana4.5安装方式：

 `./bin/kibana plugin -i elastic/timelion`

 

Kibana5安装方式

./bin/kibana-plugin install timelion

 

安装完成后可以在kibana看到这个插件！如果没有显示，请尝试重启kibanba服务。

![Screen Shot 2015-11-12 at 5.33.20 PM.png](https://www.elastic.co/assets/bltb6b576d300d1ae45/Screen%20Shot%202015-11-12%20at%205.33.20%20PM.png)

 

 

 

查询语法：

```
    .es(q="querystring", metric="cardinality:uid", index="qmonitor-*", offset="-3d")
    .graphite(metric="path.to.*.data", offset="-1d")
    .quandl()
    .worldbank_indicators() 
    .wbi() 
    .worldbank()
    .wb()
    .abs(): 绝对值
    .precision($number): 浮点数精度
    .testcast($count, $alpha, $beta, $gamma)
    .cusum($base) 
    .derivative()
    .divide($divisor)
    .multiply($multiplier)
    .subtract($term)
    .sum($term)
    .add()
    .plus()
    .first()
    .movingaverage($window)
    .mvavg()
    .movingstd($window)
    .mvstd()
    .bars($width)
    .lines($width, $fill, $show, $steps)
    .points()
    .color("#c3c2c3")
    .hide()
    .label("今天数据")
    .legend($position, $column)
    .yaxis($yaxis_number, $min, $max, $position)


```

 

## The time series composer for Kibana

 

## The time series composer for Kibana