forked from newrelic/nri-flex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcd-redis.yml
33 lines (33 loc) · 1.09 KB
/
cd-redis.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
# NOTE: 'dial' is an experimental function at this time
# ref: https://github.com/newrelic/nri-flex/blob/master/docs/experimental/dial.md
# NOTE: 'metric_parser' is an experimental function at this time
# ref: https://github.com/newrelic/nri-flex/blob/master/docs/experimental/functions.md
---
name: redisFlex
apis:
- name: redis
entity: ${auto:ip}
commands:
- dial: ${auto:ip}:${auto:port}
run: "info\r\n"
split_by: ":"
remove_keys: # remove any keys that contain any of the following strings
- human
snake_to_camel: true
perc_to_decimal: true
sub_parse:
- type: prefix
key: db
split_by:
- ","
- "="
metric_parser:
metrics:
totalNetInputBytes: RATE
rate$: RATE
namespace: # you can create a namespace with a custom attribute, or chain together existing attributes, else it will default
# custom_attr: "mySpecialRedisServer"
existing_attr:
- redisVersion
- tcpPort
auto_set: true ### switches metric parser to use regex rather then direct match