Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to see MongoDB connection and traces #72

Open
anantsaraswat opened this issue Apr 13, 2021 · 7 comments
Open

Unable to see MongoDB connection and traces #72

anantsaraswat opened this issue Apr 13, 2021 · 7 comments
Assignees
Milestone

Comments

@anantsaraswat
Copy link

anantsaraswat commented Apr 13, 2021

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,

@feelform
Copy link
Collaborator

feelform commented Apr 15, 2021

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 feelform self-assigned this Apr 15, 2021
@feelform feelform added this to the 0.9.0 milestone Apr 15, 2021
@devsazz
Copy link

devsazz commented Apr 19, 2021

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

@feelform feelform modified the milestones: 0.9.0, 1.0.0 Feb 21, 2022
@PIYUSHRAJ24
Copy link

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

@jaehong-kim
Copy link

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

@PIYUSHRAJ24
Copy link

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
Copy link

Please update.

@PIYUSHRAJ24
Copy link

Any update, please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants