Integration of TCollect and OpenTSDB
TCollect can be understood as the data collection front-end of OpenTSDB. Tcollect collects monitoring data and sends it to the backend OpenTSDB for storage.
Running instructions:
Before installing TCollect, ensure that OpenTSDB is correctly installed. For the installation process, see: installation and testing of opentsdb-2.0.1 RPM package
Download tcollector
Configure tcollector
Modify the tcollector/startstop File
TSD_HOST = localhost # specify the tsd ip address or HostName
TCOLLECTOR_PATH =/usr/hadoop/tcollector
Preparations for first running
When Opentsdb performs data operations, Metric is verified because tcollect needs to create a large number of Metric during the first operation, therefore, during the first running, you can specify that Opentsd runs in -- auto-metric mode. In this mode, metric is automatically created.
./Build/tsdb tsd ---- auto-metric
To ensure the validity of metric, remove the -- auto-metric parameter to start metric for the first time.
Run tcollector
Cd tcollector
./Startstop start
Verify
View hbase table records
Scan 'tsdb-uid'
Scan 'tsdb
View the OpenTSDB Interface