forked from newrelic/nri-rabbitmq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rabbitmq-config.yml.k8s_sample
36 lines (36 loc) · 1.77 KB
/
rabbitmq-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
rabbitmq-config.yml: |
---
# Run auto discovery to find pods with label "app=rabbitmq"
# 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: rabbitmq
integrations:
- name: nri-rabbitmq
env:
# using the discovered IP as the hostname address
HOSTNAME: ${discovery.ip}
PORT: 15672
USERNAME: <management UI username>
PASSWORD: <management UI password>
MANAGEMENT_PATH_PREFIX: <(Optional) rabbitmq management path prefix>
CA_BUNDLE_DIR: <(Optional) ca bundle directory>
CA_BUNDLE_FILE: <(Optional)ca bundle file>
NODE_NAME_OVERRIDE: <(Optional) local node name>
CONFIG_PATH: <(Optional) /path/to/config/file/rabbitmq.conf>
USE_SSL: <(Optional) bool>
QUEUES: <(Optional) json array of queue names to collect>
QUEUES_REGEXES: <(Optional) json array of regexes, matching queue names will be collected>
EXCHANGES: <(Optional) json array of exchange names to collect>
EXCHANGES_REGEXES: <(Optional) json array of regexes, matching exchange names will be collected>
VHOSTS: <(Optional) json array of vhost names to collect>
VHOSTS_REGGEXES: <(Optional) json array of regexes, entities assigned to vhosts matching a regex will be collected>
labels:
env: production
role: rabbitmq