pinpoint-node-agent icon indicating copy to clipboard operation
pinpoint-node-agent copied to clipboard

Unable to see MongoDB connection and traces

Open anantsaraswat opened this issue 3 years ago • 7 comments

Hi There,

I am trying to setup node pinpoint agent in our application and installed it using NPM module (https://www.npmjs.com/package/pinpoint-node-agent ).

The environment variable in Node container looks like this.

PINPOINT_COLLECTOR_IP=XX.XX.XX.XX
YARN_VERSION=1.22.5
PINPOINT_LOG_LEVEL=DEBUG
TZ=Europe/London
HOSTNAME=d61295eec157
PINPOINT_SAMPLING_RATE=10
NODE_DIR=/opt/node-server
NODE_ENV=production
PWD=/opt/node-server
HOME=/home/node
PINPOINT_APPLICATION_NAME=NODE-APP
PORT=3001
PINPOINT_ENABLE=true
NODE_VERSION=14.16.0
PINPOINT_CONTAINER=true
PINPOINT_AGENT_ID=NODEJS-V3

Now, I can see the node container in pinpoint web GUI and can see the user connections coming to the node server, But I am unable to trace those connections afterward ( like where it's connecting Example - MongoDB ) and how much time it is taking there,etc.

I have used pinpoint with other Java applications and I usually see if it's connected to DB node and how much time it is taking for each call, and I am expecting the same with Node module, So I wanted to check is it supported?

Many thanks,

anantsaraswat avatar Apr 13 '21 11:04 anantsaraswat

Hello, @anantsaraswat

First of all, thank you very much for the detailed explanation.

Node agent only supports 'mongodb-core' module in mongoDB. We plan to support the'Mongoose' module in v0.9(maybe May). Could you please share the mongodb module you use?

Thanks, Yongseok Kang

feelform avatar Apr 15 '21 03:04 feelform

Hello, @anantsaraswat

First of all, thank you very much for the detailed explanation.

Node agent only supports 'mongodb-core' module in mysql. We plan to support the'Mongoose' module in v0.9(maybe May). Could you please share the mysql module you use?

Thanks, Yongseok Kang

Tried to use this packages to track node & mongo on pinpoint : "express": "^4.17.1", "mongodb": "^3.6.4 "mongodb-core": "~1.0", "pinpoint-node-agent": "^0.7.2"

But unable to track the mongo. Please let me know if mongo is supported by pinpoint-node-agent module. Thanks

devsazz avatar Apr 19 '21 08:04 devsazz

Hi I am also trying to make a connection to MongoDB. My Java applications are running on different servers and my MongoDB clusters are running on different servers and all the interconnected applications are showing on the servermap except MongoDB and elastic search. please guide me on how can I resolve this issue.

-javaagent:/opt/pinpoint-agent-2.5.0/pinpoint-bootstrap-2.5.0.jar -Dpinpoint.applicationName=LM-Web -Dpinpoint.mongodb.host=10.136.182.126,10.136.166.126,10.136.166.127,10.136.182.127 -Dpinpoint.mongodb.port=27017 -Dpinpoint.agentId=LM-Web-5 -Dprofiler.transport.grpc.collector.ip=10.136.184.102 -Dprofiler.collector.ip=10.136.184.102

I am passing these with JVM arguments.

please help. It would be very helpful.

Thanks

PIYUSHRAJ24 avatar Apr 21 '23 08:04 PIYUSHRAJ24

@PIYUSHRAJ24 Please tell me the version and environment of the Mongodb library you use.

jaehong-kim avatar Apr 21 '23 08:04 jaehong-kim

mongo

MongoDB shell version v3.6.8 connecting to: mongodb://127.0.0.1:27017 MongoDB server version: 3.6.8 lm-web-prod:SECONDARY> db.version() 3.6.8 lm-web-prod:SECONDARY> db.runCommand({whatsmyuri : 1}) { "you" : "127.0.0.1:42274", "ok" : 1, "operationTime" : Timestamp(1682067529, 47), "$clusterTime" : { "clusterTime" : Timestamp(1682067529, 47), "signature" : { "hash" : BinData(0,"h9Las+0vdra15MxG3g7yowQfAtA="), "keyId" : NumberLong("7173774597655887878") } } } Please tell me if you require something else.

PIYUSHRAJ24 avatar Apr 21 '23 09:04 PIYUSHRAJ24

Please update.

PIYUSHRAJ24 avatar Apr 24 '23 11:04 PIYUSHRAJ24

Any update, please?

PIYUSHRAJ24 avatar May 11 '23 10:05 PIYUSHRAJ24