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