forked from newrelic/nri-mongodb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mongodb-config.yml.k8s_sample
48 lines (48 loc) · 2.19 KB
/
mongodb-config.yml.k8s_sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
mongodb-config.yml: |
---
# Run auto discovery to find pods with label "app=mongodb"
# https://docs.newrelic.com/docs/integrations/host-integrations/installation/container-auto-discovery
discovery:
command:
# Use the following optional arguments:
# --namespaces: Comma separated list of namespaces to discover pods on
# --tls: Use secure (TLS) connection
# --port: Port used to connect to the kubelet. Default is 10255
exec: /var/db/newrelic-infra/nri-discovery-kubernetes
match:
label.app: mongodb
integrations:
- name: nri-mongodb
env:
# The mongos to connect to. Using the discovered IP as the host address
HOST: ${discovery.ip}
# 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: <my_cluster>
# 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: <my_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":[]}'
labels:
env: production