forked from newrelic/nri-flex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
redis-extra-flags-example.yml
42 lines (42 loc) · 1.56 KB
/
redis-extra-flags-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
# 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
---
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: ":"
- run: echo "zHost:$(hostname)"
split_by: ":"
remove_keys: # remove any keys that contain any of the following strings
- human
snake_to_camel: true
perc_to_decimal: true
rename_keys:
Host: opSystem # replaces Host > opSystem (contains match replace within key) # useful for updating multiple keys
sub_parse:
- type: prefix
key: db
split_by:
- ","
- "="
custom_attributes:
myCustomAttr: theValue
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