Difference between revisions of "Monitoring Solution"

Jump to navigation Jump to search
36 bytes removed ,  12:49, 16 June 2023
no edit summary
Line 127: Line 127:


We need to enable zstd compression, find wiredTiger block and edit it as followed :
We need to enable zstd compression, find wiredTiger block and edit it as followed :
<code>
<code>
   wiredTiger:
   wiredTiger:
Line 133: Line 132:
       blockCompressor: zstd
       blockCompressor: zstd
</code>
</code>
Configure the net part as needed, example with port 27017 and allowing any external IP address :<code>
Configure the net part as needed, example with port 27017 and allowing any external IP address :<code>
   # network interfaces
   # network interfaces
Line 141: Line 141:
</code>
</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.  
If you want to secure the connection to MongoDB, only allow know IP address.
 


Documentation is available on official website: https://www.mongodb.com/docs/manual/reference/configuration-options/
Documentation is available on official website: https://www.mongodb.com/docs/manual/reference/configuration-options/
Line 211: Line 210:


c. Configure MongoDB
c. Configure MongoDB
Open with a text editor mongod.cfg file : /etc/mongod.conf
We need to enable zstd compression, find wiredTiger block and edit it as followed :
<code>
  wiredTiger:
    collectionConfig:
      blockCompressor: zstd
</code>


Copy file from package folder debian/mongod.conf to /etc/mongod.conf. 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/
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>
 
Documentation is available on official website: https://www.mongodb.com/docs/manual/reference/configuration-options/


d. Enable MongoDB as a service
d. Enable MongoDB as a service

Navigation menu