Hi all,
I’m trying to collect some stats from MongoDB using PMM2, but according to /targets I’m getting a “context deadline exceeded” and the state of my endpoint is also reported as DOWN.
Let me provide some more info:
[root@prod-vm-mongodb-01 ~]# pmm-admin list
Service type Service name Address and port Service ID
MongoDB prod-vm-mongodb-01 10.142.111.111:27017 /service_id/cce24e09-fbc0-43a0-a595-9fe3afa5ee83
Agent type Status Agent ID Service ID
pmm_agent Connected /agent_id/3f24ffd9-842e-449d-b333-e59ada7cc706
node_exporter Running /agent_id/f2402bf6-edbf-41e6-8924-611e8598605d
mongodb_exporter Running /agent_id/45002916-3d96-4d8c-b1e5-ee3beaa2aec9 /service_id/cce24e09-fbc0-43a0-a595-9fe3afa5ee83
mongodb_profiler_agent Running /agent_id/bba86d44-b654-411d-b7af-ee630cd9259e /service_id/cce24e09-fbc0-43a0-a595-9fe3afa5ee83
[root@prod-vm-mongodb-01 ~]#
I’m able to connect to the mongodb_exporter locally from the client:
[root@prod-vm-mongodb-01 ~]# wget http://10.142.111.111:42002/metrics --no-check-certificate
–2020-09-18 01:38:33-- http://10.142.111.111:42002/metrics
Connecting to 10.142.111.111:42002… connected.
HTTP request sent, awaiting response… 401 Unauthorized
Authorization failed.
[root@prod-vm-mongodb-01 ~]#
I’m also able to connect from the server:
wget http://10.142.111.111:42002/metrics --no-check-certificate
–2020-09-18 01:30:57-- http://10.142.111.111:42002/metrics
Connecting to 10.142.0.60:42002… connected.
HTTP request sent, awaiting response… 401 Unauthorized
Thoughts?
All the best,
– L