8

I want use ganglia's data to analyze our cluster, But I don't know where is the ganglia's database.

Anyone had do this before?

Julian.zhang
  • 709
  • 1
  • 7
  • 11

2 Answers2

4

It is rrd files that stores metrics data on gmetad. usually the default path is /var/lib/ganglia/rrds/<cluster-name>/<node-name>/ where each metric is stored in a single rrd file like bytes_in.rrd

Please refer to command rrdfetch or this question to see how to fetch data from rrd file (this is pure rrdtool question which is out of ganglia technology)

Community
  • 1
  • 1
shawnzhu
  • 7,233
  • 4
  • 35
  • 51
4

To get data from ganglia .rrd files and save it in .xml file, you can use rddtool.

rrdtool dump filename.rrd [filename.xml] [--header|-h {none,xsd,dtd}] [--no-header] [--daemon address] > filename.xml

example:

sudo rrdtool dump bytes_out.rrd > data.xml
Brian Mains
  • 50,520
  • 35
  • 148
  • 257
krzysiek.ste
  • 2,246
  • 1
  • 26
  • 24