Difference between revisions of "Monitoring Solution"

Jump to navigation Jump to search
489 bytes added ,  12:41, 16 June 2023
no edit summary
Line 124: Line 124:


c. Configure MongoDB
c. Configure MongoDB
Open with a text editor mongod.cfg file located in mongodb folder, default : "C:\Program Files\MongoDB\Server\6.0\bin\mongod.cfg"
We need to enable zstd compression, find wiredTiger block and edit it as followed :
<code>
  wiredTiger:
    collectionConfig:
      blockCompressor: zstd
</code>
Configure the net part as needed, example with port 27017 and allowing any external IP address :
<code>
# network interfaces
net:
  port: 27017
  bindIpAll: true
  #  bindIp: 127.0.0.1
</code>


Copy file Windows\mongod.cfg to MongoDB directory "C:\Program Files\MongoDB\Server\6.0\bin\mongod.cfg". It enables compression which is needed for Monitoring. If you want to secure the connection to MongoDB, allowing specific IP address or change port ''etc''., you can edit this file. Documentation is available on official website: https://www.mongodb.com/docs/manual/reference/configuration-options/
Copy file Windows\mongod.cfg to MongoDB directory "C:\Program Files\MongoDB\Server\6.0\bin\mongod.cfg". It enables compression which is needed for Monitoring. If you want to secure the connection to MongoDB, allowing specific IP address or change port ''etc''., you can edit this file.  
 
 
Documentation is available on official website: https://www.mongodb.com/docs/manual/reference/configuration-options/


d. MongoDB Shell installation
d. MongoDB Shell installation

Navigation menu