-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(configV4): migrate config file to v4 (#69)
- feat(configV4): migrate config file to v4 (#69)
- Loading branch information
1 parent
14d7843
commit 51a208f
Showing
7 changed files
with
61 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,47 @@ | ||
integration_name: com.newrelic.mongodb | ||
integrations: | ||
- name: nri-mongodb | ||
env: | ||
# The mongos to connect to | ||
HOST: my-mongos.company.localnet | ||
# The port the mongos is running on | ||
PORT: "27017" | ||
|
||
instances: | ||
- name: all | ||
# Available commands are "all", "metrics", and "inventory" | ||
command: all | ||
arguments: | ||
# The mongos to connect to | ||
host: my-mongos.company.localnet | ||
# The port the mongos is running on | ||
port: 27017 | ||
# The username of the user created to monitor the cluster. | ||
# This user should exist on the cluster as a whole as well | ||
# as on each of the individual mongods. | ||
username: monitor | ||
# The password for the monitoring user | ||
password: password | ||
# The database on which the monitoring user is stored | ||
auth_source: admin | ||
# A user-defined cluster name. Required. | ||
mongodb_cluster_name: testcluster | ||
# Connect using SSL | ||
ssl: true | ||
# Skip verification of the certificate sent by the host. | ||
# This can make the connection susceptible to man-in-the-middle attacks, | ||
# and should only be used for testing | ||
ssl_insecure_skip_verify: true | ||
# Path to the CA certs file | ||
ssl_ca_certs: /sample/path/to/ca_certs | ||
# Client Certificate to present to the server (optional) | ||
pem_key_file: /sample/file.pem | ||
# Passphrase to decrypt PEMKeyFile file (optional) | ||
passphrase: secret | ||
# A JSON map of database names to an array of collection names. If empty, | ||
# defaults to all databases and collections. If the list of collections is null, | ||
# collects all collections for the database. | ||
filters: '{"db1":null,"db2":["collection1","collection2"],"db3":[]}' | ||
# The number of entities to collect metrics for concurrently. Tunable to | ||
# limit CPU and memory usage | ||
concurrent_collections: 50 | ||
labels: | ||
env: production | ||
label: mongo-cluster-1 | ||
# The username of the user created to monitor the cluster. | ||
# This user should exist on the cluster as a whole as well | ||
# as on each of the individual mongods. | ||
USERNAME: monitor | ||
# The password for the monitoring user | ||
PASSWORD: password | ||
# The database on which the monitoring user is stored | ||
AUTH_SOURCE: admin | ||
|
||
# A user-defined cluster name. Required. | ||
MONGODB_CLUSTER_NAME: testcluster | ||
|
||
# Connect using SSL | ||
SSL: "true" | ||
# Path to the CA certs file | ||
SSL_CA_CERTS: /sample/path/to/ca_certs | ||
# Skip verification of the certificate sent by the host. | ||
# This can make the connection susceptible to man-in-the-middle attacks, | ||
# and should only be used for testing | ||
SSL_INSECURE_SKIP_VERIFY: "true" | ||
# Passphrase to decrypt PEMKeyFile file (optional) | ||
PASSPHRASE: secret | ||
# Client Certificate to present to the server (optional) | ||
PEM_KEY_FILE: /sample/file.pem | ||
|
||
# The number of entities to collect metrics for concurrently. Tunable to | ||
# limit CPU and memory usage | ||
CONCURRENT_COLLECTIONS: "50" | ||
|
||
# A JSON map of database names to an array of collection names. If empty, | ||
# defaults to all databases and collections. If the list of collections is null, | ||
# collects all collections for the database. | ||
FILTERS: '{"db1":null,"db2":["collection1","collection2"],"db3":[]}' | ||
|
||
interval: 15s | ||
labels: | ||
env: production | ||
label: mongo-cluster-1 | ||
inventory_source: config/mongodb |