--- /dev/null
+# 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
info: undefined
},
+ 'retroshare': {
+ title: 'RetroShare',
+ info: undefined
+ },
+
'ipfs': {
title: 'IPFS',
icon: '<i class="fa fa-folder-open" aria-hidden="true"></i>',
'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) {
case 'phpfpm':
case 'postfix':
case 'redis':
+ case 'retroshare':
case 'ipfs':
case 'smawebbox':
case 'squid':