Details
-
Bug
-
Status: Done
-
High
-
Resolution: Fixed
-
2.12.0
-
5
-
Yes
-
Yes
-
[obsolete] C/S Core
Description
Problem:
Since v.2.10 till now MongoDB ReplSet Summary Dashbord shows incorrect replset member's state: STARTUP instead of PRIMARY
After downgrade to pmm2-client 2.9.1 everything is fine
How to test
1. Start a sandbox like mongodb_exporter's sandbox.
cd /tmp/ git clone https://github.com/percona/mongodb_exporter.git cd mongodb_exporter/ # get your host LAN IP address hostname -I | awk '{print $1}' make test-cluster
2. Start the feature build's pmm server:
IMAGE='perconalab/pmm-server-fb:PR-2102-5fb2f62' docker create -v /srv --name pmm-data ${IMAGE} /bin/true docker run -d \ -p 80:80 \ -p 443:443 \ --volumes-from pmm-data \ --name pmm-server \ -e PERCONA_TEST_DBAAS=1 \ -e PERCONA_TEST_VERSION_SERVICE_URL=https://check-dev.percona.com/versions/v1 \ ${IMAGE}
3. Add MongoDB instances to pmm
docker exec -ti pmm-server bash # this step is optional to avoid passing --server-insecure-tls --server-url=https://admin:[email protected]:443 to all requests pmm-admin config --server-insecure-tls --server-url=https://admin:[email protected]:443 # Add the instances pmm-admin add mongodb --host <host_ip_address_from_step_1> --port 17001 --service-name=mongors1-1 --skip-connection-check pmm-admin add mongodb --host <host_ip_address_from_step_1> --port 17002 --service-name=mongors1-2 --skip-connection-check pmm-admin add mongodb --host <host_ip_address_from_step_1> --port 17003 --service-name=mongors1-3 --skip-connection-check
h3. 4. Wait a couple of minutes to collect some metrics
5. Stop a mongodb instance
From the docker host (your local machine)
docker stop mongo-1-1
6. Check replicaset status dashboard
In PMM's replicaset dashboard (http://localhost/graph/d/mongodb-replicaset-summary/mongodb-replset-summary) the state for the instance we took down in step 5 should say "Exporter is not connected"
Attachments
Issue Links
- is duplicated by
-
PMM-9020 MongoDB ReplSet Summary Dashboard showing NULL for secondary
-
- Done
-
- relates to
-
PMM-9348 mongodb_exporter Crashing while db goes down
-
- Open
-
-
PMM-8954 mongodb_up metrics gives no data when db goes down? it should respond with zero
-
- Done
-
-
PMM-7152 delay in collecting metrics for an unreachable service
-
- Done
-
-
PMM-9862 Bogus "Exporter is not Connected" for MongoDB ReplicaSet status
-
- Done
-