forked from newrelic/nri-flex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrabbitmq-http-example.yml
80 lines (80 loc) · 3.58 KB
/
rabbitmq-http-example.yml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# NOTE: 'metric_parser' is an experimental function at this time
# ref: https://github.com/newrelic/nri-flex/blob/master/docs/experimental/functions.md
### https://www.rabbitmq.com/monitoring.html
### your.rabbit.server/api/index.html
---
integrations:
- name: nri-flex
# interval: 30s
config:
name: rabbitFlex
global:
base_url: http://localhost:32789/
user: user
pass: user
headers:
accept: application/json
apis:
- event_type: rabbitOverviewSample
url: api/overview
snake_to_camel: true
strip_keys: ### we can get rid off additional data earlier before it continues to the internal metrics pipeline for processing
- listeners
- exchange_types
- sample_retention_policies
- contexts
metric_parser: ### Metric Parser Example
namespace: ### Rate & Delta support requires namespacing
existing_attr: ### Use an existing attribute or attributes to namespace
- node
auto_set: true ### switches to using regex rather then direct match
metrics:
.rate$: RATE ### any metrics that match this regex will be set as RATE
- event_type: rabbitQueueSample
url: api/queues
snake_to_camel: true
strip_keys:
- backing_queue_status.delta
- event_type: rabbitExchangeSample
url: api/exchanges
- event_type: rabbitConnSample
url: api/connections
- event_type: rabbitBindingSample
url: api/bindings
- event_type: rabbitConsumerSample
url: api/consumers
- event_type: rabbitChannelSample
url: api/channels
store_lookups:
channels: name
- event_type: rabbitVHostSample
url: api/vhosts
snake_to_camel: true
store_lookups: ### we store all vhost "name" attributes found into the lookupStore to be used later
vhosts: name
- event_type: rabbitAliveTestSample ### as we use the special lookup key, we fetch the vhosts found, and execute the next request(s)
url: api/aliveness-test/${lookup:vhosts} ### if multiple vhosts were stored, this will issue multiple requests
- event_type: rabbitNodeSample
url: api/nodes
snake_to_camel: true
strip_keys: ### we can get rid off additional data earlier before it continues through to the internal metrics pipeline for processing, this also helps avoid any sample splitting
- listeners
- exchange_types
- auth_mechanisms
- applications
- contexts
- log_files
- config_files
- enabled_plugins
metric_parser: ### Metric Parser Example
namespace: ### Rate & Delta support requires namespacing
existing_attr: ### Use an existing attribute or attributes to namespace
- node
auto_set: true ### switches to using regex rather then direct match
metrics:
.rate$: RATE ### any metrics that match this regex will be set as RATE
store_lookups: ### we store all nodes "name" attributes found into the lookupStore to be used later
nodes: name
- event_type: rabbitHealthCheckSample ### as we use the special lookup key, we fetch the nodes that were found, and execute the next request(s)
url: api/healthchecks/node/${lookup:nodes} ### if multiple vhosts were stored, this will issue multiple requests
snake_to_camel: true