Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Opentsdb installation and configuration

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

1. Introduction

openTSDB (see figure) uses hbase as storage center, it does not need sampling, can collect and store hundreds of millions of data points completely, support second-level data monitoring, thanks to hbase distributed column storage, hbase can flexibly support the increase of metrics, can support the collection of tens of thousands of machines and hundreds of millions of data points. In openTSDB, TSD is a daemon program for hbase to communicate externally. There is no master/slave distinction and no shared state, so using this and the characteristics of hbase clustering can eliminate single points. Users can access the TSD interface directly through telnet or http protocols, or through rpc. Each Server that needs metrics needs to set up a Collector to collect time-series data. This Collector is the script you use to collect data.

Install JDK and configure JAVA_HOME

JAVA_HOME=/usr/java/latest

3. Install hbase of single node

a. Download hbase-0.94.7.tar.gz and unzip it

tar -zxf hbase-0.94.7.tar.gz#cd hbase-0.94.7/conf#vim hbase-site.xmlhbase.tmp.dir/tmp/hbasehbase.rootdirfile:///opt/hbase/hbase-\${user.name}/hbase#mkdir -p /opt/hbase

b. Configure HBASE_HOME

#export HBASE_HOME=/root/OpenTSDB/hbase-0.94.7

C. Start hbase

#/bin/start-hbase.sh

d. View the hbase process

jps Check if there is an HMaster

ps aux| grep hbase

4. Install some software required for openTSDB

yum install gnuplot autoconf git -y

5. Install openTSDB

a. Download opentsdb-1.1.0.tar.gz

#tar -zxf opentsdb-1.1.0.tar.gz#cd opentsdb-1.1.0#./ build.sh

6. Run opneTSDB

Configure environment variables and build hbase table

#env COMPRESSION=none HBASE_HOME=/root/OpenTSDB/hbase-0.94.7 /root/OpenTSDB/opentsdb-1.1.0/src/create_table.sh#./ build/tsdb tsd --port=4242--staticroot=staticroot --cachedir=/tmp/tsdtmp &

The following commands can be run by tsdb

usage: tsdb [args] Valid commands: fsck, import, mkmetric, query, tsd, scan, uid

7. Testing

Collect system load:

cat >loadavg-collector.sh

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report