Expand pinpoint query function
Support pinpoint precise search
You can query the request list by application, agent_id, request path, exec range, time range, Exception, as shown in the following figure:
Support to click Transaction ID to directly link to pinpoint request.
JDK 8
-
Need to configure
hbase.properties
inpinpoint-search-web
module, same aspinpoint-web
configuration。 -
Need to configure
pinpoint.properties
inpinpoint-search-web
module-
pinpointWebUrl
pinpointWebUrl
Configure your pinpoint web host address, for example:http://localhost:9000
-
history
configurepinpoint-web
HTML5 History mode,history = true
Transaction ID url will not have#
:http://localhost:9000/transactionList/TestApp@STAND_ALONE/5m/2020-04-12-11-19-48/192.168.2.2%5E1586661708402%5E54-1586661847211-39
-
query.limit
Configure the maximum number of queries -
hbase.num.parallel.threads
configures the number of threads for multi-threaded queries
-
mvn clean package -Dmaven.test.skip=true
Build and generate pinpoint-search-web-1.0.0-SNAPSHOT.war
In order to support Pinpoint server-side search, a simple modification of Pinpoint is required
- Modify pinpoint-collector module Class com.navercorp.pinpoint.collector.dao.hbase.HbaseApplicationTraceIndexDao
Add the code in the red box to the insert
method, as shown below:
- Modify pinpoint-web module Class com.navercorp.pinpoint.web.mapper.TransactionIdMapper
Modify the red box in the mapRow
method and add exception handling
- Modify pinpoint-web module Class com.navercorp.pinpoint.web.mapper.TraceIndexScatterMapper3
Modify the red box in the mapRow
method and add exception handling
- Class com.navercorp.pinpoint.web.mapper.TraceIndexScatterMapper2
- Class com.navercorp.pinpoint.web.mapper.TraceIndexScatterMapper
Do the same
- In
pinpoint
project recompilepinpoint-web
andpinpoint-collector
two modules
mvn clean package -Dmaven.test.skip=true -pl web -am
mvn clean package -Dmaven.test.skip=true -pl collector -am
pinpoint1.6.x - pinpoint2.0.x
Apache License
github issues
QQ Group : 1045635366