pinpoint-apm / pinpoint

APM, (Application Performance Management) tool for large-scale distributed systems.
https://pinpoint-apm.gitbook.io/
Apache License 2.0
13.29k stars 3.75k forks source link

2.5.3 Version question for URL Statistic #10513

Open ZernGin opened 7 months ago

ZernGin commented 7 months ago

Jar package version:pinpoint-collector-boot-2.5.3.jar、pinpoint-web-starter-boot-2.5.3.jar question:Why does the URL Statistics chart always show no data status after my deployment? After checking, it was found that no data could be pushed to the topic of Kafka.

Kafka log directory : -rw-r--r-- 1 root root 10485760 Nov 15 10:39 00000000000000000000.index -rw-r--r-- 1 root root 0 Nov 15 10:39 00000000000000000000.log -rw-r--r-- 1 root root 10485756 Nov 15 10:39 00000000000000000000.timeindex -rw-r--r-- 1 root root 8 Nov 15 10:39 leader-epoch-checkpoint -rw-r--r-- 1 root root 43 Nov 15 10:39 partition.metadata [root@localhost url-stat-0]# pwd /opt/software/kafka/logs/url-stat-0

Pinpoint collector boot 2.5.3. jar configuration : ` spring.profiles.active=release pinpoint.zookeeper.address=localhost collector.receiver.grpc.agent.port=localhost collector.receiver.grpc.agent.port=9991 collector.receiver.stat.udp.receiveBufferSize=4194304

pinpoint.pinot.jdbc.url=jdbc:pinot://localhost:9000 pinpoint.metric.kafka.bootstrap.servers=localhost:9092 pinpoint.collector.type=ALL collector.stat.uri=true kafka.uri.topic=url-stat pinpoint.pinot.tenantId=DefaultTenant ` images: image

image

ga-ram commented 7 months ago

Please also share your Pinpoint agent properties. With pinpoint.profiler.profiles.active=local, you can see if uri stat logs are being sent as well.

ZernGin commented 7 months ago

Please also share your Pinpoint agent properties. With pinpoint.profiler.profiles.active=local, you can see if uri stat logs are being sent as well.

Java application configuration: JAVA_OPTS="$JAVA_OPTS -Dorg.apache.catalina.security.SecurityListener.UMASK=umask" JAVA_OPTS="-server -Xms512m -Xmx4096m -Xss512K -XX:PermSize=328m -XX:MaxPermSize=800m" export JAVA_OPTS="$JAVA_OPTS -javaagent:/home/pinpoint/pinpoint-agent-2.5.3/pinpoint-bootstrap-2.5.3.jar -Dpinpoint.agentId=test-agent -Dpinpoint.applicationName=test -Dpinpoint.profiler.profiles.active=local -Dpinpoint.config=/home/pinpoint/pinpoint-agent-2.5.3/profiles/local/pinpoint.config"

Some core configurations of pinpoint.config: `

GRPC or THRIFT

profiler.transport.module=GRPC

gRPC Configuration

profiler.transport.grpc.collector.ip=localhost

Thrift Configuration

profiler.collector.ip=localhost

URI Stat

profiler.uri.stat.enable=true profiler.uri.stat.spring.webmvc.enable=true profiler.uri.stat.spring.webmvc.useuserinput=false profiler.uri.stat.vertx.enable=true profiler.uri.stat.vertx.useuserinput=false profiler.uri.stat.spring.webflux.enable=true profiler.uri.stat.spring.webflux.useuserinput=false profiler.uri.stat.tomcat.useuserinput=false `

Part of pinpoint.log: 11-16 14:52:10.010 [ main] INFO c.n.p.p.DefaultAgent -- - profiler.include= 11-16 14:52:10.010 [ main] INFO c.n.p.p.DefaultAgent -- - profiler.jvm.vendor.name= 11-16 14:52:10.010 [ main] INFO c.n.p.p.DefaultAgent -- - profiler.hbase.client.enable=true 11-16 14:52:10.010 [ main] INFO c.n.p.p.DefaultAgent -- - profiler.memcached.async=true 11-16 14:52:10.010 [ main] INFO c.n.p.p.DefaultAgent -- - profiler.transport.grpc.agent.collector.ip=${profiler.transport.grpc.collector.ip} 11-16 14:52:10.010 [ main] INFO c.n.p.p.DefaultAgent -- - profiler.transport.grpc.agent.sender.maxtraceevent=0 11-16 14:52:10.010 [ main] INFO c.n.p.p.DefaultAgent -- - profiler.elasticsearch.recordESVersion=false 11-16 14:52:10.010 [ main] INFO c.n.p.p.DefaultAgent -- - profiler.kafka.enable=true 11-16 14:52:10.010 [ main] INFO c.n.p.p.DefaultAgent -- - profiler.spring.beans.mark.error=false 11-16 14:52:10.010 [ main] INFO c.n.p.p.DefaultAgent -- - profiler.uri.stat.enable=true 11-16 14:52:10.010 [ main] INFO c.n.p.p.DefaultAgent -- - profiler.apache.httpclient4.cookie=true 11-16 14:52:10.010 [ main] INFO c.n.p.p.DefaultAgent -- - profiler.jdbc.informix.commit=true 11-16 14:52:10.010 [ main] INFO c.n.p.p.DefaultAgent -- - profiler.jvm.stat.collect.interval=5000 11-16 14:52:10.010 [ main] INFO c.n.p.p.DefaultAgent -- - profiler.transport.grpc.metadata.collector.ip=${profiler.transport.grpc.collector.ip} 11-16 14:52:10.010 [ main] INFO c.n.p.p.DefaultAgent -- - profiler.uri.stat.vertx.enable=true 11-16 14:52:10.010 [ main] INFO c.n.p.p.DefaultAgent -- - profiler.vertx.bootstrap.main=io.vertx.core.Starter 11-16 14:52:10.010 [ main] INFO c.n.p.p.DefaultAgent -- - profiler.resin.bootstrap.main= 11-16 14:52:10.010 [ main] INFO c.n.p.p.DefaultAgent -- - profiler.activemq.client.destination.exclude= 11-16 14:52:10.010 [ main] INFO c.n.p.p.DefaultAgent -- - profiler.server.excludemethod= 11-16 14:52:10.010 [ main] INFO c.n.p.p.DefaultAgent -- - profiler.transport.grpc.stat.sender.connect.timeout.millis=3000 11-16 14:52:10.010 [ main] INFO c.n.p.p.DefaultAgent -- - profiler.lambda.expressions.support=true 11-16 14:52:10.010 [ main] INFO c.n.p.p.DefaultAgent -- - profiler.mongo.collectjson=true 11-16 14:52:10.010 [ main] INFO c.n.p.p.DefaultAgent -- - profiler.jvm.stat.collect.detailed.metrics=true 11-16 14:52:10.010 [ main] INFO c.n.p.p.DefaultAgent -- - profiler.tcpdatasender.client.write.timeout=3000 11-16 14:52:10.010 [ main] INFO c.n.p.p.DefaultAgent -- - profiler.rabbitmq.client.consumer.enable=true 11-16 14:52:10.010 [ main] INFO c.n.p.p.DefaultAgent -- - profiler.reactor-netty.server.tracerequestparam=true 11-16 14:52:10.010 [ main] INFO c.n.p.p.DefaultAgent -- - profiler.transport.grpc.agent.sender.keepalive.timeout.millis=60000

ga-ram commented 7 months ago

It seems like agent config is correct. Do you see any uri stat send success / fail logs on profiler?

linxiaoJVM commented 3 months ago

try launching the web,collector using the following method:

java -jar -Dspring.profiles.active=release -Dpinpoint.zookeeper.address=your-zookeeper-address pinpoint-collector-starter-boot-2.5.3.jar --pinpoint.collector.type=ALL 
java -jar -Dspring.profiles.active=release -Dpinpoint.zookeeper.address=your-zookeeper-address pinpoint-web-starter-boot-2.5.3.jar

or run in the background
nohup java -jar -Dspring.profiles.active=release -Dpinpoint.zookeeper.address=your-zookeeper-address pinpoint-collector-starter-boot-2.5.3.jar --pinpoint.collector.type=ALL >/dev/null 2>&1 &
nohup java -jar -Dspring.profiles.active=release -Dpinpoint.zookeeper.address=your-zookeeper-address pinpoint-web-starter-boot-2.5.3.jar >/dev/null 2>&1 &
lxxxxxxk commented 2 months ago

大佬这问题解决了吗 怎么解决的 能告知下吗感谢