简体   繁体   中英

Grafana with elasticsearch data source

I am currently running the latest (master) of grafana which supports elasticsearch as data source. I am able to connect to elasticsearch but cannot find docs on structure for storing metrics in 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.

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. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM