Pinpoint 监控

####Hbase数据################
参考:
然而没有卵用:
https://blog.csdn.net/iamlihongwei/article/details/52882749?utm_source=blogxgwz2
https://my.oschina.net/LaravelShao/blog/1803428
####访问地址################
Hbase数据库地址:http://192.168.2.165:16010/master-status
Pinpoint WEB:http://192.168.2.165:18081/pinpoint-web-1.8.0/


###Tomcat配置###############
注意端口号是否重复
日志切割脚本:catalina.sh

###Tomcat访问日志切割##################
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs"
        prefix="tomcat_access_log" suffix=".log"
        pattern="{&quot;clientip&quot;:&quot;%h&quot;,&quot;ClientUser&quot;:&quot;%l&quot;,&quot;authenticated&quot;:&quot;%u&quot;,&quot;AccessTime&quot;:&quot;%t&quot;,&quot;method&quot;:&quot;%r&quot;,&quot;status&quot;:&quot;&quot;,&quot;SendBytes&quot;:&quot;%b&quot;,&quot;Query?string&quot;:&quot;%q&quot;,&quot;partner&quot;:&quot;%{Referer}i&quot;,&quot;AgentVersion&quot;:&quot;%{User-Agent}i&quot;}"
/>


###Pinpoint监控##############
Hbase: 1.2.8
pinpoint:1.8.0


###探针配置##################
profiler.applicationservertype=SPRING_BOOT
profiler.tomcat.conditional.transform=false
profiler.collector.ip=172.17.149.107

###Web配置##################
路径:/data/server/apache-tomcat-pinpoint-web/webapps/pinpoint-web-1.8.0/WEB-INF/classes

cluster.zookeeper.address=localhost
config.enable.serverMapRealTime=true

###收集器##################
cluster.zookeeper.address=localhost
cluster.listen.ip=
cluster.listen.port=


###Hbase数据库############
Hbase重启失败:https://blog.csdn.net/liudi1993/article/details/77871303
创建/data/server/hbase/data目录
1. vim hbase-env.sh
		export JAVA_HOME=/data/server/jdk1.8.0_112

2. vim hbase-site.xml
		<property>
		    <name>hbase.zookeeper.property.clientPort</name>
		    <value>2181</value>
		</property>
		<property>
		        <name>hbase.rootdir</name>
		        <value>file:///data/server/hbase/data</value>
		</property>

		<property>
	                <name>hbase.cluster.distributed</name>
	                <value>true</value>
		</property>

		<property>
		        <name>hbase.master.info.port</name>
		        <value>16010</value>
		</property>

3. 创建数据表
	./hbase shell hbase-create.hbase
##zookeeper####################
在/data/server/zookeeper目录下创建
data目录
logs目录

vim zoo.cfg
	
	tickTime=2000
	initLimit=10
	syncLimit=5
	dataDir=/data/server/zookeeper/data
	dataLogDir=/data/server/zookeeper/logs
	clientPort=2182
	autopurge.snapRetainCount=50
	autopurge.purgeInterval=7
posted @ 2018-11-09 12:18  Done、  阅读(662)  评论(0编辑  收藏  举报