• Save
opentsdb in a real enviroment
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share

opentsdb in a real enviroment

  • 5,149 views
Uploaded on

setup opentsdb (based on hadoop and hbase) to collection servers' metrics collection.

setup opentsdb (based on hadoop and hbase) to collection servers' metrics collection.

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
  • Very concise and to the point. Great presentation Robert.
    Are you sure you want to
    Your message goes here
No Downloads

Views

Total Views
5,149
On Slideshare
4,310
From Embeds
839
Number of Embeds
6

Actions

Shares
Downloads
0
Comments
1
Likes
3

Embeds 839

http://pupilo.wordpress.com 590
http://www.solaris11.com 236
http://translate.googleusercontent.com 10
url_unknown 1
http://www.docseek.net 1
http://www.docshut.com 1

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. OpentsdbRobert Chenrobertchen117@gmail.com
  • 2. Opentsdb architecture
    TSD
    TSD
    TSD
    Hbase
    hadoop
  • 3. HBase Architecture
  • 4. Opentsdb Architecture II
  • 5. Opentsdb POC
  • 6. How to Start & Stop opentsdb
    Start opentsdb:
    Start hadoop environment
    Start hbase (use internal zookeeper or outside zookeeper)
    Start TSD
    Stop Opentsdb:
    Stop tsd
    Stop hbase
    Stop hadoop
  • 7. Sample scenario
    This scenario is about how to insert CPU metrics of a host to opentsdb:
    Add these metrics to hbase first:
    ./src/tsdbmkmetricproc.loadavg.1m proc.loadavg.5m
    2. Collect on the client and post to the tsd socket:
    cat >loadavg-collector.sh <<EOF #!/bin/bash set -e while true; do awk -v now=`date +%s` -v host=`hostname` '{ print "put proc.loadavg.1m " now " " $1 " host=" host; print "put proc.loadavg.5m " now " " $2 " host=" host }' /proc/loadavg sleep 15 done | nc -w 30 node1 8080 EOF
    chmod+x loadavg-collector.sh
    nohup./loadavg-collector.sh &
    3. Put Metrics data like these:
    [root@node1 /]# ./vendor/stumbleupon-opentsdb-33dff14/src/loadavg-collector-result.sh
    put proc.loadavg.1m 1310023344 0.14 host=node1
    put proc.loadavg.5m 1310023344 0.11 host=node2
  • 8. Need to do:
    Collection metrics scripts: change from saving into RRD to save to Hbase;
    Graphs pages on how to extract data in opentsdb and better looking