|
8 | 8 | # NOTE: In newer versions of the Datadog Agent, the ssl parameters will be deprecated in favor the tls variants |
9 | 9 | # |
10 | 10 | # Parameters: |
| 11 | +# $hosts |
| 12 | +# Array of hosts host (and optional port number) where the mongod instance is running |
| 13 | +# $dbm |
| 14 | +# Enable the Database Monitoring feature |
| 15 | +# $database_autodiscovery |
| 16 | +# Enable the Database Autodiscovery feature |
| 17 | +# $reported_database_hostname |
| 18 | +# Optional database hostname override the mongodb hostname detected by the Agent from mongodb admin command serverStatus |
11 | 19 | # $additional_metrics |
12 | 20 | # Optional array of additional metrics |
13 | 21 | # $database |
14 | 22 | # Optionally specify database to query. Defaults to 'admin' |
15 | | -# $host: |
16 | | -# The host mongo is running on. Defaults to '127.0.0.1' |
17 | 23 | # $password |
18 | 24 | # Optionally specify password for connection |
19 | | -# $port |
20 | | -# The port mongo is running on. Defaults to 27017 |
21 | 25 | # $ssl |
22 | 26 | # Optionally enable SSL for connection |
23 | 27 | # $ssl_ca_certs |
|
40 | 44 | # Optional array of tags |
41 | 45 | # $username |
42 | 46 | # Optionally specify username for connection |
| 47 | +# $host: |
| 48 | +# Deprecated use $hosts instead |
| 49 | +# The host mongo is running on. Defaults to '127.0.0.1' |
| 50 | +# $port |
| 51 | +# Deprecated use $hosts instead |
| 52 | +# The port mongo is running on. Defaults to 27017 |
43 | 53 | # |
44 | 54 | # Sample Usage (Older Agent Versions): |
45 | 55 | # |
|
76 | 86 | # { |
77 | 87 | # 'additional_metrics' => ['top'], |
78 | 88 | # 'database' => 'database_name', |
79 | | -# 'host' => 'localhost', |
| 89 | +# 'hosts' => ['localhost:27017'], |
80 | 90 | # 'password' => 'mongo_password', |
81 | | -# 'port' => '27017', |
82 | 91 | # 'tls' => true, |
83 | 92 | # 'tls_ca_file' => '/path/to/ca.pem', |
84 | 93 | # 'tls_allow_invalid_certificates' => false, |
85 | 94 | # 'tls_certificate_key_file' => '/path/to/combined.pem', |
86 | 95 | # 'tags' => ['optional_tag1', 'optional_tag2'], |
87 | 96 | # 'username' => 'mongo_username', |
| 97 | +# 'dbm' => true, |
| 98 | +# 'database_autodiscovery' => {'enabled' => true}, |
| 99 | +# 'reported_database_hostname' => 'mymongodbhost', |
88 | 100 | # }, |
89 | 101 | # { |
90 | | -# 'host' => 'localhost', |
91 | | -# 'port' => '27018', |
| 102 | +# 'hosts' => ['localhost:27017'], |
92 | 103 | # 'tags' => [], |
93 | 104 | # 'additional_metrics' => [], |
94 | 105 | # 'collections' => [], |
|
0 commit comments