Browse Source

redis: add uptime chart

lgz 6 years ago
parent
commit
3b7dc7aa19
1 changed files with 7 additions and 0 deletions
  1. 7 0
      python.d/redis.chart.py

+ 7 - 0
python.d/redis.chart.py

@@ -23,6 +23,7 @@ REDIS_ORDER = [
     'persistence',
     'bgsave_now',
     'bgsave_health',
+    'uptime',
 ]
 
 PIKA_ORDER = [
@@ -33,6 +34,7 @@ PIKA_ORDER = [
     'connections',
     'clients',
     'slaves',
+    'uptime',
 ]
 
 
@@ -113,6 +115,11 @@ CHARTS = {
                     'redis.bgsave_health', 'line'],
         'lines': [
             ['rdb_last_bgsave_status', 'rdb save', 'absolute']
+        ]},
+    'uptime': {
+        'options': [None, 'Uptime', 'seconds', 'uptime', 'redis.uptime', 'line'],
+        'lines': [
+            ['uptime_in_seconds', 'uptime', 'absolute']
         ]}
 }