[英]Grafana with elasticsearch data source
I am currently running the latest (master) of grafana which supports elasticsearch as data source. 我目前正在运行grafana的最新版本(主版本),该版本支持elasticsearch作为数据源。 I am able to connect to elasticsearch but cannot find docs on structure for storing metrics in elasticsearch.
我能够连接到elasticsearch,但是找不到用于在Elasticsearch中存储指标的结构文档。
I know it's not officially released yet but since I am already running elasticserach it would be nice not to setup another data source like influxDB. 我知道它尚未正式发布,但是由于我已经在运行elasticserach,所以最好不要设置其他数据源(如influxDB)。
Does anybody has experience with this setup? 有人对这种设置有经验吗?
ok found it, basically you can use whatever structure you want as long as there is and @timestamp
attribute. 好的,基本上可以使用任何想要的结构,只要有
@timestamp
属性即可。 Example: 例:
{ @timestamp: '2015-10-22T12:00:00.000 +0200',
name: 'my event',
load: 0.5,
cpu: 50
}
Now you can filter, group or search these attributes in grafana. 现在,您可以在grafana中过滤,分组或搜索这些属性。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.