]> arthur.barton.de Git - netdata.git/commitdiff
added heath.d and updated index.html
authorsehraf <sehraf@privatdemail.net>
Wed, 7 Sep 2016 16:55:00 +0000 (18:55 +0200)
committersehraf <sehraf@privatdemail.net>
Wed, 7 Sep 2016 16:55:00 +0000 (18:55 +0200)
conf.d/Makefile.am
conf.d/health.d/retroshare.conf [new file with mode: 0644]
web/index.html

index 46a79e9f40c35f8ee29defa5bddbb6c1c690785c..7e4b500a63313620ae37db35d8c1d6e897f31e90 100644 (file)
@@ -55,6 +55,7 @@ dist_healthconfig_DATA = \
        health.d/qos.conf \
        health.d/ram.conf \
        health.d/redis.conf \
+       health.d/retroshare.conf \
        health.d/swap.conf \
        health.d/squid.conf \
        $(NULL)
diff --git a/conf.d/health.d/retroshare.conf b/conf.d/health.d/retroshare.conf
new file mode 100644 (file)
index 0000000..a2f2ac2
--- /dev/null
@@ -0,0 +1,23 @@
+# make sure RetroShare is running
+
+template: retroshare_last_collected_secs
+      on: retroshare.peers
+    calc: $now - $last_collected_t
+   every: 10s
+    warn: $this > ( 5 * $update_every)
+    crit: $this > (60 * $update_every)
+   units: seconds ago
+    info: number of seconds since the last successful data collection
+      to: sysadmin
+
+# make sure the DHT is fine when active
+
+template: retroshare_dht_working
+      on: retroshare.dht
+    calc: $dht_size_all
+   every: 1m
+    warn: $this < 100
+    crit: $this == 0
+   units: peers
+    info: Checks if the DHT has enough peers to operate
+      to: sysadmin
index d37b2926151aad63f59b2fe4a86a4f2dd859ece0..85d28810746438dbc510a97122761c2bdffe959c 100644 (file)
@@ -1632,6 +1632,11 @@ var menuData = {
         info: undefined
     },
 
+    'retroshare': {
+        title: 'RetroShare',
+        info: undefined
+    },
+
     'ipfs': {
         title: 'IPFS',
         icon: '<i class="fa fa-folder-open" aria-hidden="true"></i>',
@@ -2105,6 +2110,24 @@ var chartData = {
     'netdata.response_time': {
         info: 'The netdata API response time measures the time netdata needed to serve requests. This time includes everything, from the reception of the first byte of a request, to the dispatch of the last byte of its reply, therefore it includes all network latencies involved (i.e. a client over a slow network will influence these metrics).'
     }
+
+    // ------------------------------------------------------------------------
+    // RETROSHARE
+    'retroshare.bandwidth': {
+        info: 'Shows inbound and outbound traffic.',
+        mainheads: [
+            gaugeChart('Received', '12%', 'bandwidth_down_kb'),
+            gaugeChart('Sent', '12%', 'bandwidth_up_kb')
+        ]
+    },
+
+    'retroshare.peers': {
+        info: 'Shows the number of (connected) friends.',
+    },
+
+    'retroshare.dht': {
+        info: 'Shows statistics about RetroShare\'s DHT. These values are estimate!'
+    }
 };
 
 function anyAttribute(obj, attr, key, def) {
@@ -2208,6 +2231,7 @@ function enrichChartData(chart) {
         case 'phpfpm':
         case 'postfix':
         case 'redis':
+        case 'retroshare':
         case 'ipfs':
         case 'smawebbox':
         case 'squid':