MongoDB custom metrics plugin for mackerel.io agent.
mackerel-plugin-mongodb [-host=<host>] [-port=<port>] [-username=<username>] [-password=<password>] [-tempfile=<tempfile>] [-source=<authenticationDatabase>]mackerel-plugin-mongodb [-url=<mongodb://.....>] [-tempfile=<tempfile>][plugin.metrics.mongodb]
command = "/path/to/mackerel-plugin-mongodb"
newer mongodb requre clusterMonitor role when executed db.serverStatus() command.
so add role clusterMonitor to reporter.
db.grantRolesToUser(
"user_id",
[
{ role: "clusterMonitor", db:"admin"}
]
);
v1.1.0mongodb 3.6, 4.0, 4.2, 4.4, 5.0, 6.0 or laterv1.0.0mongodb 2.2, 2.6, 3.0, 3.2, 3.4, 3.6, 4.0, 4.2
- Linux