Skip to content

Commit

Permalink
Merge branch 'v3' into PMM7-Framework
Browse files Browse the repository at this point in the history
  • Loading branch information
saikumar-vs committed Mar 26, 2024
2 parents a642db4 + 42d716a commit 3263a6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pmm_psmdb-pbm_setup/configure-agents.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ for node in $nodes
do
echo "congiguring pmm agent on $node"
docker-compose -f docker-compose-rs.yaml exec -T $node pmm-agent setup
if [[ $mongo_setup_type == "psa" ]]; then
if [[ $mongo_setup_type == "psa" && $node == "rs103" ]]; then
docker-compose -f docker-compose-rs.yaml exec -T $node pmm-admin add mongodb --enable-all-collectors --cluster=replicaset --replication-set=rs $node 127.0.0.1:27017
else
docker-compose -f docker-compose-rs.yaml exec -T $node pmm-admin add mongodb --enable-all-collectors --cluster=replicaset --replication-set=rs --username=${pmm_mongo_user} --password=${pmm_mongo_user_pass} $node 127.0.0.1:27017
Expand Down
2 changes: 1 addition & 1 deletion pmm_psmdb-pbm_setup/configure-extra-agents.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ for node in $nodes
do
echo "configuring pmm agent on $node"
docker-compose -f docker-compose-rs.yaml exec -T $node pmm-agent setup
if [[ $mongo_setup_type == "psa" ]]; then
if [[ $mongo_setup_type == "psa" && $node == "rs203" ]]; then
docker-compose -f docker-compose-rs.yaml exec -T $node pmm-admin add mongodb --enable-all-collectors --cluster=replicaset --replication-set=rs1 $node 127.0.0.1:27017
else
docker-compose -f docker-compose-rs.yaml exec -T $node pmm-admin add mongodb --enable-all-collectors --cluster=replicaset --replication-set=rs1 --username=${pmm_mongo_user} --password=${pmm_mongo_user_pass} $node 127.0.0.1:27017
Expand Down

0 comments on commit 3263a6b

Please sign in to comment.