ganglia / monitor-core

Ganglia Monitoring core
BSD 3-Clause "New" or "Revised" License
489 stars 246 forks source link

Is it possible to send metric data to ES instead of RRD #250

Open xmudall opened 8 years ago

xmudall commented 8 years ago

Hi all,

I wonder that can gmetad sends data to elasticsearch other than RRDtool. I'd like to store data on ES and use Kibana as dashboard.

umairpannu commented 8 years ago

Yes you can but you will have to write a custom script for this. I have written a program that gets XML dump from gmetad and pushed the metrics to opentsdb.

xmudall commented 8 years ago

Wonderful! Would you plz give me some hints about the program/script or/and where to start it? Thanks a lots.

在 2016年3月22日,下午8:13,umairpannu notifications@github.com 写道:

Yes you can but you will have to write a custom script for this. I have written a program that gets XML dump from gmetad and pushed the metrics to opentsdb.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/ganglia/monitor-core/issues/250#issuecomment-199784008

umairpannu commented 8 years ago

Mine setup worked as fallowed I installed the monitoring demon on every node and in /etc/conf/gmond configured it to send metrics to the local host only then I installed my custom program on all nodes that takes XML dump from the monitoring demon parse it and then send to opentsdb, if you want I can share the scala code with you. And all the aggregation was done on the opentsdb side.

xmudall commented 8 years ago

I got it. It's most like a custom gmetad. I'm not familiar with scala, i think i'll rewrite it in java or python. So kind you are , thanks a lot~

On Wed, Mar 23, 2016 at 1:04 PM, umairpannu notifications@github.com wrote:

Mine setup worked as fallowed I installed the monitoring demon on every node and in /etc/conf/gmond configured it to send metrics to the local host only then I installed my custom program on all nodes that takes XML dump from the monitoring demon parse it and then send to opentsdb, if you want I can share the scala code with you. And all the aggregation was done on the opentsdb side.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/ganglia/monitor-core/issues/250#issuecomment-200184073

胡游乐 清华大学软件学院 xmudall@gmail.com

hawson commented 8 years ago

While not ElasticSearch, I've been working on sending metrics to InfluxDB. See https://github.com/hawson/monitor-core/tree/influxdb for details.

What format does ElasticSearch use?

The idea of scraping the local XML feed is a clever one, but possibly heavyweight as compared to just sending the data directly, without need for the XML serialization (relatively expensive), parsing and translation (possibly also expensive), and re-sending.