The following tutorial will guide you to install and use Tcollector.
Tcollector is a child project of OpenTSDB.
Opentsdb will start saving some points, we have to use tcollector (plugin) to store some useful information about system components like ram and disk space
git clone git://github.com/OpenTSDB/tcollector.git
Now go in this tcollector folder and edit 'startstop' and change this variable
TSD_HOST=something something
after changing it should look like
TSD_HOST=127.0.0.1
here 127.0.0.1 is the DNS name of my server
Start the tcollector
sh startstop start
To stop the tcollector
sh startstop stop
Now to query it through restful api these are some of the useful links
http://www.euphoriaaudio.com/opentsdb/querying_examples.html
http://www.euphoriaaudio.com/opentsdb/http-api-q.html
Run this in the browser
http://localhost:4242/api/query?start=1h-ago&m=sum:rate:proc.stat.cpu
you should see a json format returned as a result.
cheers
0 comments:
Post a Comment