Pinpoint 监控

Posted ipyanthony

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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

###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 监控的主要内容,如果未能解决你的问题,请参考以下文章

APM链路监控:PinPoint使用手册

APM链路监控:PinPoint使用手册

APM链路监控:PinPoint使用手册

1,pinpoint全链路监控

1,pinpoint全链路监控

Pinpoint监控tomcat