Your SlideShare is downloading. ×
  • Like
  • Save
opentsdb in a real enviroment
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Now you can save presentations on your phone or tablet

Available for both IPhone and Android

Text the download link to your phone

Standard text messaging rates apply

opentsdb in a real enviroment

  • 4,802 views
Published

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

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

Published in Technology , News & Politics
  • 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
4,802
On SlideShare
0
From Embeds
0
Number of Embeds
7

Actions

Shares
Downloads
0
Comments
1
Likes
3

Embeds 0

No embeds

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