This check collects TokuMX metrics, including:
- Opcounters.
- Replication lag.
- Cache table utilization and storage size.
The TokuMX check is included in the Datadog Agent package. No additional installation is needed on your server.
-
Install the Python MongoDB module on your MongoDB server using the following command:
sudo pip install --upgrade "pymongo<3.0"
-
You can verify that the module is installed using this command:
python -c "import pymongo" 2>&1 | grep ImportError && \ echo -e "\033[0;31mpymongo python module - Missing\033[0m" || \ echo -e "\033[0;32mpymongo python module - OK\033[0m"
-
Start the Mongo shell. In the shell, create a read-only user for the Datadog Agent in the
admin
database:# Authenticate as the admin user. use admin db.auth("admin", "<YOUR_TOKUMX_ADMIN_PASSWORD>") # Add a user for Datadog Agent db.addUser("datadog", "<UNIQUEPASSWORD>", true)
-
Verify that you created the user with the following command (not in the Mongo shell).
python -c 'from pymongo import Connection; print Connection().admin.authenticate("datadog", "<UNIQUEPASSWORD>")' | \ grep True && \ echo -e "\033[0;32mdatadog user - OK\033[0m" || \ echo -e "\033[0;31mdatadog user - Missing\033[0m"
For more details about creating and managing users in MongoDB, see the MongoDB Security documentation.
To configure this check for an Agent running on a host:
-
Edit the
tokumx.d/conf.yaml
file in theconf.d/
folder at the root of your Agent's configuration directory. See the sample tokumx.d/conf.yaml for all available configuration options:init_config: instances: - server: "mongodb://<USER>:<PASSWORD>@localhost:27017"
-
Restart the Agent to start sending TokuMX metrics to Datadog.
For containerized environments, see the Autodiscovery Integration Templates for guidance on applying the parameters below.
Parameter | Value |
---|---|
<INTEGRATION_NAME> |
tokumx |
<INIT_CONFIG> |
blank or {} |
<INSTANCE_CONFIG> |
{"server": "mongodb://<USER>:<PASSWORD>@%%host%%:27017"} |
Run the Agent's status
subcommand and look for tokumx
under the Checks section.
See metadata.csv for a list of metrics provided by this check.
Replication state changes:
This check emits an event each time a TokuMX node has a change in its replication state.
See service_checks.json for a list of service checks provided by this integration.
Need help? Contact Datadog support.