added heath.d and updated index.html
sehraf committed
Sep 7, 2016 at 18:55 UTC
0f5fb33b164651ce9c5dacd0a834d61c4128077c
3 files changed
+48
conf.d/Makefile.am
+1
@@ -55,6 +55,7 @@ dist_healthconfig_DATA = \
55
health.d/qos.conf \
56
health.d/ram.conf \
57
health.d/redis.conf \
58
+ health.d/retroshare.conf \
59
health.d/swap.conf \
60
health.d/squid.conf \
61
$(NULL)
conf.d/health.d/retroshare.conf
new
+23
@@ -0,0 +1,23 @@
1
+# make sure RetroShare is running
2
+
3
+template: retroshare_last_collected_secs
4
+ on: retroshare.peers
5
+ calc: $now - $last_collected_t
6
+ every: 10s
7
+ warn: $this > ( 5 * $update_every)
8
+ crit: $this > (60 * $update_every)
9
+ units: seconds ago
10
+ info: number of seconds since the last successful data collection
11
+ to: sysadmin
12
+
13
+# make sure the DHT is fine when active
14
+
15
+template: retroshare_dht_working
16
+ on: retroshare.dht
17
+ calc: $dht_size_all
18
+ every: 1m
19
+ warn: $this < 100
20
+ crit: $this == 0
21
+ units: peers
22
+ info: Checks if the DHT has enough peers to operate
23
+ to: sysadmin
web/index.html
+24
@@ -1632,6 +1632,11 @@ var menuData = {
1632
info: undefined
1633
},
1634
1635
+ 'retroshare': {
1636
+ title: 'RetroShare',
1637
+ info: undefined
1638
+ },
1639
+
1640
'ipfs': {
1641
title: 'IPFS',
1642
icon: '<i class="fa fa-folder-open" aria-hidden="true"></i>',
@@ -2105,6 +2110,24 @@ var chartData = {
2110
'netdata.response_time': {
2111
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).'
2112
}
2113
+
2114
+ // ------------------------------------------------------------------------
2115
+ // RETROSHARE
2116
+ 'retroshare.bandwidth': {
2117
+ info: 'Shows inbound and outbound traffic.',
2118
+ mainheads: [
2119
+ gaugeChart('Received', '12%', 'bandwidth_down_kb'),
2120
+ gaugeChart('Sent', '12%', 'bandwidth_up_kb')
2121
+ ]
2122
+ },
2123
+
2124
+ 'retroshare.peers': {
2125
+ info: 'Shows the number of (connected) friends.',
2126
+ },
2127
+
2128
+ 'retroshare.dht': {
2129
+ info: 'Shows statistics about RetroShare\'s DHT. These values are estimate!'
2130
+ }
2131
};
2132
2133
function anyAttribute(obj, attr, key, def) {
@@ -2208,6 +2231,7 @@ function enrichChartData(chart) {
2231
case 'phpfpm':
2232
case 'postfix':
2233
case 'redis':
2234
+ case 'retroshare':
2235
case 'ipfs':
2236
case 'smawebbox':
2237
case 'squid':