elasticsearch 在ElasticSearch/Kibana 5.0中使用Timelon
我试图在Timelion中形象化timeseries。我在elasticsearch中有几百个数据点采用这种格式——我手动删除了一些我从未打算在timeseries绘图中使用的字段elasticsearch 在ElasticSearch/Kibana 5.0中使用Timelon,elasticsearch,kibana,timelion,elasticsearch,Kibana,Timelion,我试图在Timelion中形象化timeseries。我在elasticsearch中有几百个数据点采用这种格式——我手动删除了一些我从未打算在timeseries绘图中使用的字段 "_index": "foo-2016-11-06", "_type": "bar", "_id": "7239171989271733678", "_score": 1, "_source": { "timesta
"_index": "foo-2016-11-06",
"_type": "bar",
"_id": "7239171989271733678",
"_score": 1,
"_source": {
"timestamp": "2016-11-06T15:27:37.123581+00:00",
"rank": 2,
}
我想要的是非常简单地绘制随着时间的推移排名的变化。我发现这篇文章似乎描述了同样的事情,我知道我应该可以只做.es(metric='sum:rank')
我的问题是,无论我如何定义我的timelion查询(甚至只是调用.es(*)),我最终只得到一条y=0的水平线
到目前为止我已经尝试过的事情:
- 将timelon.json中的timefield从@timefield更改为刚才的timefield
- 扩展timeseries窗口(甚至扩展到未来)
- 将timelion.json中的默认索引设置为_all
- 我知道包含数据的查询特定索引
{
"quandl": {
"key": ""
},
"es": {
"timefield": "timestamp",
"default_index": "_all",
"allow_url_parameter": false
},
"graphite": {
"url": "https://www.hostedgraphite.com/UID/ACCESS_KEY/graphite"
},
"default_interval": "1h",
"max_buckets": 2000
}
将粒度设置为“自动”,并使用上述timelon查询:.es(index='foo-2016-11-06',metric='max:rank')
如上所述设置timelon.json:
{
"quandl": {
"key": ""
},
"es": {
"timefield": "timestamp",
"default_index": "_all",
"allow_url_parameter": false
},
"graphite": {
"url": "https://www.hostedgraphite.com/UID/ACCESS_KEY/graphite"
},
"default_interval": "1h",
"max_buckets": 2000
}
将粒度设置为“自动”,并使用上面的timelon查询:.es(index='foo-2016-11-06',metric='max:rank')