Skip to content

Commit 35f1e28

Browse files
committed
Merge pull request #790 from arthtux/master
Add README.md for redis
2 parents b4b1866 + 2099997 commit 35f1e28

File tree

1 file changed

+86
-0
lines changed

1 file changed

+86
-0
lines changed

plugins/inputs/redis/README.md

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
# Telegraf Plugin: Redis
2+
3+
### Configuration:
4+
5+
```
6+
# Read Redis's basic status information
7+
[[inputs.redis]]
8+
## specify servers via a url matching:
9+
## [protocol://][:password]@address[:port]
10+
## e.g.
11+
## tcp://localhost:6379
12+
13+
##
14+
## If no servers are specified, then localhost is used as the host.
15+
## If no port is specified, 6379 is used
16+
servers = ["tcp://localhost:6379"]
17+
```
18+
19+
### Measurements & Fields:
20+
21+
- Measurement
22+
- uptime_in_seconds
23+
- connected_clients
24+
- used_memory
25+
- used_memory_rss
26+
- used_memory_peak
27+
- used_memory_lua
28+
- rdb_changes_since_last_save
29+
- total_connections_received
30+
- total_commands_processed
31+
- instantaneous_ops_per_sec
32+
- instantaneous_input_kbps
33+
- instantaneous_output_kbps
34+
- sync_full
35+
- sync_partial_ok
36+
- sync_partial_err
37+
- expired_keys
38+
- evicted_keys
39+
- keyspace_hits
40+
- keyspace_misses
41+
- pubsub_channels
42+
- pubsub_patterns
43+
- latest_fork_usec
44+
- connected_slaves
45+
- master_repl_offset
46+
- repl_backlog_active
47+
- repl_backlog_size
48+
- repl_backlog_histlen
49+
- mem_fragmentation_ratio
50+
- used_cpu_sys
51+
- used_cpu_user
52+
- used_cpu_sys_children
53+
- used_cpu_user_children
54+
55+
### Tags:
56+
57+
- All measurements have the following tags:
58+
- port
59+
- server
60+
61+
### Example Output:
62+
63+
Using this configuration:
64+
```
65+
[[inputs.nginx]]
66+
## specify servers via a url matching:
67+
## [protocol://][:password]@address[:port]
68+
## e.g.
69+
## tcp://localhost:6379
70+
71+
##
72+
## If no servers are specified, then localhost is used as the host.
73+
## If no port is specified, 6379 is used
74+
servers = ["tcp://localhost:6379"]
75+
```
76+
77+
When run with:
78+
```
79+
./telegraf -config telegraf.conf -input-filter redis -test
80+
```
81+
82+
It produces:
83+
```
84+
* Plugin: redis, Collection 1
85+
> redis,port=6379,server=localhost clients=1i,connected_slaves=0i,evicted_keys=0i,expired_keys=0i,instantaneous_ops_per_sec=0i,keyspace_hitrate=0,keyspace_hits=0i,keyspace_misses=2i,latest_fork_usec=0i,master_repl_offset=0i,mem_fragmentation_ratio=3.58,pubsub_channels=0i,pubsub_patterns=0i,rdb_changes_since_last_save=0i,repl_backlog_active=0i,repl_backlog_histlen=0i,repl_backlog_size=1048576i,sync_full=0i,sync_partial_err=0i,sync_partial_ok=0i,total_commands_processed=4i,total_connections_received=2i,uptime=869i,used_cpu_sys=0.07,used_cpu_sys_children=0,used_cpu_user=0.1,used_cpu_user_children=0,used_memory=502048i,used_memory_lua=33792i,used_memory_peak=501128i,used_memory_rss=1798144i 1457052084987848383
86+
```

0 commit comments

Comments
 (0)