-
Notifications
You must be signed in to change notification settings - Fork 124
/
Copy pathredis-cmd-dial-example.yml
36 lines (36 loc) · 1.29 KB
/
redis-cmd-dial-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
# 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' and 'sub_parse' are experimental functions at this time
# ref: https://github.com/newrelic/nri-flex/blob/master/docs/experimental/functions.md
---
integrations:
- name: nri-flex
# interval: 30s
config:
name: redisFlex
apis:
- name: redis
commands:
- dial: 127.0.0.1:6379
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