mackerel-plugin-mongodb

command
v0.72.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

README

mackerel-plugin-mongodb

MongoDB custom metrics plugin for mackerel.io agent.

Synopsis

mackerel-plugin-mongodb [-host=<host>] [-port=<port>] [-username=<username>] [-password=<password>] [-tempfile=<tempfile>] [-source=<authenticationDatabase>]

Example of mackerel-agent.conf

[plugin.metrics.mongodb]
command = "/path/to/mackerel-plugin-mongodb"

Add Role

newer mongodb requre clusterMonitor role when executed db.serverStatus() command.

so add role clusterMonitor to reporter.

db.grantRolesToUser(
  "user_id",
  [
  { role: "clusterMonitor", db:"admin"}
  ]
 );

see https://dba.stackexchange.com/questions/121832/db-serverstatus-got-not-authorized-on-admin-to-execute-command

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL