码迷,mamicode.com
首页 > 其他好文 > 详细

Pinpoint 监控

时间:2018-11-09 12:40:32      阅读:18      评论:0      收藏:0      [点我收藏+]

标签:form   osc   python   数据库   profiler   local   false   end   accesslog   

####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

###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数据库############
创建/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

Pinpoint 监控

标签:form   osc   python   数据库   profiler   local   false   end   accesslog   

原文地址:https://www.cnblogs.com/ipyanthony/p/9934402.html

(0)
(0)
   
举报
评论 一句话评论(0
0条  
登录后才能评论!
© 2014 mamicode.com 版权所有 京ICP备13008772号-2
迷上了代码!