Testing client writes to whisper DB

We can see carbon cache is running and which configuration file it uses.

[root@cx-node2 Wrt_Bytes_Dev]# ps -ef|grep carbon

apache   15909 21236  0 00:01 ?        00:02:26 /opt/quantum/python27/bin/python /opt/graphite/bin/carbon-cache.py --config /opt/graphite/conf/carbon.conf --debug start

 

This is the line receiver port we’re listening on.

 

[root@cx-node2 Wrt_Bytes_Dev]# grep 2003 /opt/graphite/conf/carbon.conf

LINE_RECEIVER_PORT = 2003

 

From my MAC we can pass the domain path, variable, the date to a .wsp file with the nc command.

 

SPSs-Mac-mini:~ spssupport$ date;echo "domain.default.cluster.default.host.spss-mac-mini.client.kernel.fs.mac_snfs.sg.sg1.io.san.Wrt_Bytes_Dev.count 10000 `date +%s`" | nc -c 10.20.232.42 2003

Fri May 20 12:09:37 MDT 2016

 

Way down in the directory where the count.wsp file resides we can use the whisper-fetch.py script to see the update.

 

[root@cx-node2 Wrt_Bytes_Dev]# whisper-fetch.py --pretty count.wsp | tail -n5

Fri May 20 12:06:00 2016        None

Fri May 20 12:07:00 2016        None

Fri May 20 12:08:00 2016        None

Fri May 20 12:09:00 2016        10000.000000

Fri May 20 12:10:00 2016        None

 

 



This page was generated by the BrainKeeper Enterprise Wiki, © 2018