redis config
paulfantom committed
Jul 13, 2016 at 01:25 UTC
737577a30d2377dfcc1f0929fadc33f977051b12
3 files changed
+16
-1
conf.d/Makefile.am
+1
@@ -29,6 +29,7 @@ dist_pythonconfig_DATA = \
29
python.d/nginx.conf \
30
python.d/phpfpm.conf \
31
python.d/postfix.conf \
32
+ python.d/redis.conf \
33
python.d/sensors.conf \
34
python.d/squid.conf \
35
python.d/tomcat.conf \
conf.d/python.d/redis.conf
new
+14
@@ -0,0 +1,14 @@
1
+# Example configuration of redis.chart.py
2
+# YAML format
3
+
4
+update_every: 1
5
+retries: 10
6
+
7
+socket:
8
+ name : 'local'
9
+ socket : '/tmp/redis.sock'
10
+
11
+tcp:
12
+ name : 'local'
13
+ host : 'localhost'
14
+ port : '6379'
\ No newline at end of file
python.d/python_modules/base.py
+1
-1
@@ -502,7 +502,7 @@ class SocketService(SimpleService):
502
else:
503
self.name = str(self.name)
504
try:
505
- self.unix_socket = int(self.configuration['unix_socket'])
505
+ self.unix_socket = int(self.configuration['socket'])
506
except (KeyError, TypeError):
507
self.error("No unix socket specified. Trying TCP/IP socket.")
508
try: