write_mongodb plugin¶
| Plugin name | write_mongodb |
| Type | read |
| Callbacks | config, init, read, shutdown |
| Status | in development |
| Since | 5.1 |
| Copyright | 2010 Ryan Cox |
| License | GPLv2 |
| Configuration | collectd.conf(5) |
The MongoDB plugin connects to MongoDB, a schema-less "NoSQL" database, and queries statistics about connections, operations, indexes, memory and so on.
This plugin is in development. The code currently lives at octo/collectd/rc/mongodb on Github.
Synopsis¶
<Plugin "mongodb">
Host "localhost"
Port "27017"
Database "admin"
User "collectd"
Password "oquu9Zow"
</Plugin>
Example graphs¶
None yet. Add one now!
Dependencies¶
See also¶
Configuration¶
Configuration options · from collectd.conf(5)
See this section in the full configuration reference
The write_mongodb plugin will send values to MongoDB, a schema-less NoSQL database.
Synopsis:
<Plugin "write_mongodb">
<Node "default">
Host "localhost"
Port "27017"
Timeout 1000
StoreRates true
</Node>
</Plugin>
The plugin can send values to multiple instances of MongoDB by specifying one Node block for each instance. Within the Node blocks, the following options are available:
- Host Address
- Hostname or address to connect to. Defaults to
localhost. - Port Service
- Service name or port number to connect to. Defaults to
27017. - Timeout Milliseconds
- Set the timeout for each operation on MongoDB to Timeout milliseconds. Setting this option to zero means no timeout, which is the default.
- StoreRates false|true
- If set to true (the default), convert counter values to rates. If set to false counter values are stored as is, i.e. as an increasing integer number.
- Database Database
- User User
- Password Password
- Sets the information used when authenticating to a MongoDB database. The fields are optional (in which case no authentication is attempted), but if you want to use authentication all three fields must be set.