nri-mongodb

module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2019 License: MIT

README

New Relic Infrastructure Integration for MongoDB

Reports status and metrics for MongoDB service

Requirements

None

Installation

  • Download an archive file for the MongoDB Integration
  • Extract mongodb-definition.yml and the bin directory into /var/db/newrelic-infra/newrelic-integrations
  • Add execute permissions for the binary file nr-mongodb (if required)
  • Extract mongodb-config.yml.sample into /etc/newrelic-infra/integrations.d

Usage

To run the MongoDB integration, you must have the agent installed (see agent installation).

To use the MongoDB integration, first rename mongodb-config.yml.sample to mongodb-config.yml, then configure the integration by editing the fields in the file.

You can view your data in Insights by creating your own NRQL queries. To do so, use the MongoSample, MongodSample, MongosSample, MongoConfigServerSample, and MongoCollectionSample event types.

Compatibility

  • Supported OS: No limitations
  • MongoDB versions: 3.0+

Integration Development usage

Assuming you have the source code, you can build and run the MongoDB integration locally

  • Go to the directory of the MongoDB Integration and build it
$ make
  • The command above will execute tests for the MongoDB integration and build an executable file called nr-mongodb in the bin directory
$ ./bin/nr-mongodb --help

For managing external dependencies, the govendor tool is used. It is required to lock all external dependencies to a specific version (if possible) in the vendor directory.

Directories

Path Synopsis
src
filter
Package filter contains a small helper that represents a whitelist of databases and collections to collect from
Package filter contains a small helper that represents a whitelist of databases and collections to collect from

Jump to

Keyboard shortcuts

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