So in lieu of getting a clean new version.. I tried it with the old one I have and get :
Dec 26, 2019 7:52:49 AM com.ca.apm.mongo.Collector main
INFO: APM MongoDB Collector version: 1.0
Dec 26, 2019 7:52:49 AM com.ca.apm.mongo.Collector discoverTopology
INFO: Discovering Topology for host: xxx1:27,017
Dec 26, 2019 7:52:50 AM com.mongodb.diagnostics.logging.JULLogger log
INFO: Cluster created with settings {hosts=[xxx1:27017], mode=SINGLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms', maxWaitQueueSize=500}
Dec 26, 2019 7:52:50 AM com.mongodb.diagnostics.logging.JULLogger log
INFO: Cluster description not yet available. Waiting for 30000 ms before timing out
Dec 26, 2019 7:52:51 AM com.mongodb.diagnostics.logging.JULLogger log
INFO: Opened connection [connectionId{localValue:1, serverValue:56193}] to xxx1:27017
Dec 26, 2019 7:52:51 AM com.mongodb.diagnostics.logging.JULLogger log
INFO: Monitor thread successfully connected to server with description ServerDescription{address=xxx1:27017, type=REPLICA_SET_PRIMARY, state=CONNECTED, ok=true, version=ServerVersion{versionList=[4, 0, 6]}, minWireVersion=0, maxWireVersion=7, maxDocumentSize=16777216, logicalSessionTimeoutMinutes=30, roundTripTimeNanos=43929808, setName='replsetAFS_perf', canonicalAddress=xxx1:27017, hosts=[xxx4:27017, xxx1:27017, xxx2:27017, xxx3:27017], passives=[], arbiters=[xxx1:27017], primary=xxx1:27017', tagSet=TagSet{[]}, electionId=7fffffff000000000000000e, setVersion=2, lastWriteDate=Thu Dec 26 07:52:44 EST 2019, lastUpdateTimeNanos=1233854190788161}
Dec 26, 2019 7:52:51 AM com.mongodb.diagnostics.logging.JULLogger log
INFO: Opened connection [connectionId{localValue:2, serverValue:56195}] to xxx1:27017
Dec 26, 2019 7:52:51 AM com.mongodb.diagnostics.logging.JULLogger log
INFO: Closed connection [connectionId{localValue:2, serverValue:56195}] to xxx1:27017 because the pool has been closed.
Exception in thread "main" java.lang.NoSuchMethodError: com/mongodb/CommandResult.getServerUsed()Lcom/mongodb/ServerAddress; (loaded from file:/opt/caapm/mongodb/mongo-java-driver-3.12.0.jar by sun.misc.Launcher$AppClassLoader@3cbfa62a) called from class com.ca.apm.mongo.Collector (loaded from file:/opt/caapm/mongodb/ca-apm-fieldpack-mongodb-1.0.jar by sun.misc.Launcher$AppClassLoader@3cbfa62a).
at com.ca.apm.mongo.Collector.getMyself(Collector.java:682)
at com.ca.apm.mongo.Collector.isInShardCluster(Collector.java:580)
at com.ca.apm.mongo.Collector.discoverTopology(Collector.java:561)
at com.ca.apm.mongo.Collector.<init>(Collector.java:176)
at com.ca.apm.mongo.Collector.collect(Collector.java:144)
at com.ca.apm.mongo.Collector.main(Collector.java:105)
From reading the API Doc it appears that that method may be deprecated? (com/mongodb/CommandResult.getServerUsed) . Is anyone monitoring MongoDB with this who can comment or assist please?
Original Message:
Sent: 12-26-2019 07:35 AM
From: Lee Barton
Subject: GitHub CA-APM-FIELDPACK-MONGODB
Hi
I went to the GitHub for the mongodb fieldpack, and in the RELEASENOTES.md it mentions :
INSTALLATIONUnzip ca-apm-fieldpack-mongodb-1.0.zip into a directory with suitable read/write access. Configure your setup.
But I cannot find that zip file in the GitHub repository. Am I missing something?
I have one I downloaded a while ago but wanted to get a clean one for testing some new MongoDB monitoring requirments
Thanks
Lee