正常にインストールされ、稼働中です
http://54.72.4.157:4242/
サーバーの 1 つで tcollector を実行しており、startstop.sh でホストを設定しました。
TSD_HOST=54.72.4.157
やった
./startstop start
すべての統計コレクターを実行します。tsdbコンソールログでさえ気づいた
[id: 0x5fc4bb31, /54.184.79.13:60203 => /172.31.14.125:4242] CONNECTED: /54.184.79.13:60203
私のtcollectorノードで、
ps axl | grep tcollector
そして私は見ることができます
0 0 16796 16795 20 0 183712 8000 poll_s Sl ? 2:17 /usr/bin/python /home/mithralaya/tcollector/tcollector.py -c /home/mithralaya/tcollector/collectors -H 54.72.4.157 -t host=ip-172-31-12-203 -P /var/run/tcollector.pid
4 65534 16806 16796 20 0 39864 3748 poll_s Ss ? 0:08 /usr/bin/python /home/mithralaya/tcollector/collectors/0/procstats.py
4 65534 16808 16796 39 19 39700 3380 poll_s SNs ? 0:07 /usr/bin/python /home/mithralaya/tcollector/collectors/0/procnettcp.py
4 65534 16816 16796 20 0 39648 3240 poll_s Ss ? 0:00 /usr/bin/python /home/mithralaya/tcollector/collectors/0/iostat.py
4 65534 16818 16796 20 0 39648 3400 poll_s Ss ? 0:01 /usr/bin/python /home/mithralaya/tcollector/collectors/0/ifstat.py
4 65534 16822 16796 20 0 41848 3676 poll_s Ss ? 0:05 /usr/bin/python /home/mithralaya/tcollector/collectors/0/netstat.py
4 65534 16824 16796 20 0 39648 3524 poll_s Ss ? 0:00 /usr/bin/python /home/mithralaya/tcollector/collectors/0/dfstat.py
0 0 26617 26171 20 0 8108 940 pipe_w S+ pts/0 0:00 grep --color=auto tcollector
/var/log/tcollector の tcollector ログに重大なエラーが表示されません。最新ログ
2014-04-15 08:59:40,630 tcollector[16796] WARNING: haproxy.py: Error: HAProxy is not running
2014-04-15 08:59:55,090 tcollector[16796] INFO: removing redis-stats.py from the list of collectors (by request)
2014-04-15 08:59:55,091 tcollector[16796] INFO: removing nfsstat.py from the list of collectors (by request)
2014-04-15 08:59:55,091 tcollector[16796] WARNING: collector hbase_master.py terminated after 16 seconds with status code 1, marking dead
2014-04-15 08:59:55,091 tcollector[16796] INFO: removing udp_bridge.py from the list of collectors (by request)
2014-04-15 08:59:55,091 tcollector[16796] INFO: removing elasticsearch.py from the list of collectors (by request)
2014-04-15 08:59:55,092 tcollector[16796] INFO: removing zfsiostats.py from the list of collectors (by request)
2014-04-15 08:59:55,092 tcollector[16796] INFO: removing varnishstat.py from the list of collectors (by request)
2014-04-15 08:59:55,092 tcollector[16796] INFO: removing mongo.py from the list of collectors (by request)
2014-04-15 08:59:55,093 tcollector[16796] INFO: removing couchbase.py from the list of collectors (by request)
2014-04-15 08:59:55,093 tcollector[16796] INFO: removing graphite_bridge.py from the list of collectors (by request)
2014-04-15 08:59:55,093 tcollector[16796] INFO: removing zfskernstats.py from the list of collectors (by request)
2014-04-15 08:59:55,094 tcollector[16796] INFO: removing smart-stats.py from the list of collectors (by request)
2014-04-15 08:59:55,094 tcollector[16796] WARNING: collector mysql.py terminated after 16 seconds with status code 1, marking dead
2014-04-15 08:59:55,094 tcollector[16796] WARNING: collector hbase_regionserver.py terminated after 16 seconds with status code 1, marking dead
2014-04-15 08:59:55,095 tcollector[16796] INFO: removing postgresql.py from the list of collectors (by request)
2014-04-15 08:59:55,095 tcollector[16796] INFO: removing haproxy.py from the list of collectors (by request)
2014-04-15 08:59:55,095 tcollector[16796] INFO: removing riak.py from the list of collectors (by request)
2014-04-15 08:59:55,095 tcollector[16796] INFO: removing zookeeper.py from the list of collectors (by request)
2014-04-15 08:59:55,096 tcollector[16796] INFO: removing opentsdb.sh from the list of collectors (by request)
2014-04-15 09:09:40,651 tcollector[16796] INFO: Heartbeat (6 collectors running)
2014-04-15 09:19:41,217 tcollector[16796] INFO: Heartbeat (6 collectors running)
2014-04-15 09:29:41,794 tcollector[16796] INFO: Heartbeat (6 collectors running)
2014-04-15 09:39:43,586 tcollector[16796] INFO: Heartbeat (6 collectors running)
しかし、どの統計も収集されていません。hbase では、tsdb と tsdb-uid の両方が空です。
hbase(main):002:0> scan 'tsdb'
ROW COLUMN+CELL
0 row(s) in 0.2890 seconds
hbase(main):003:0>
こちらでも見られますが、
http://54.72.4.157:60010/
誰かがこれで私を助けることができれば、大歓迎です。
Hadoop ベースのテクノロジはすべて、インストールと構成が非常に困難です。これを理解するのに1週間かかりました。tcollectorを24時間実行していますが、TSDBにはまだデータがありません。
どうもありがとう、
カーシック