I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 83801c9f authored by zzz's avatar zzz
Browse files

* Stats:

       - Remove unused tunnel.buildSuccess and tunnel.buildFailure
       - Remove tunnel.buildRequestTime and 5m rate stats from
         netDb, effective in next release
parent 152f8247
No related branches found
No related tags found
No related merge requests found
...@@ -50,7 +50,7 @@ public class StatManager { ...@@ -50,7 +50,7 @@ public class StatManager {
"tunnel.acceptLoad,tunnel.buildRequestTime,tunnel.rejectOverloaded,tunnel.rejectTimeout" + "tunnel.acceptLoad,tunnel.buildRequestTime,tunnel.rejectOverloaded,tunnel.rejectTimeout" +
"tunnel.buildClientExpire,tunnel.buildClientReject,tunnel.buildClientSuccess," + "tunnel.buildClientExpire,tunnel.buildClientReject,tunnel.buildClientSuccess," +
"tunnel.buildExploratoryExpire,tunnel.buildExploratoryReject,tunnel.buildExploratorySuccess," + "tunnel.buildExploratoryExpire,tunnel.buildExploratoryReject,tunnel.buildExploratorySuccess," +
"tunnel.buildRatio.*,tunnel.buildFailure,tunnel.buildSuccess,tunnel.corruptMessage," + "tunnel.buildRatio.*,tunnel.corruptMessage," +
"tunnel.decryptRequestTime,tunnel.fragmentedDropped,tunnel.participatingMessageCount,"+ "tunnel.decryptRequestTime,tunnel.fragmentedDropped,tunnel.participatingMessageCount,"+
"tunnel.participatingTunnels,tunnel.testFailedTime,tunnel.testSuccessTime," + "tunnel.participatingTunnels,tunnel.testFailedTime,tunnel.testSuccessTime," +
"tunnel.participatingBandwidth,udp.sendPacketSize,udp.packetsRetransmitted" ; "tunnel.participatingBandwidth,udp.sendPacketSize,udp.packetsRetransmitted" ;
......
...@@ -91,6 +91,8 @@ public class StatisticsManager implements Service { ...@@ -91,6 +91,8 @@ public class StatisticsManager implements Service {
} }
} }
static final boolean CommentOutIn065 = RouterVersion.VERSION.equals("0.6.4");
/** Retrieve a snapshot of the statistics that should be published */ /** Retrieve a snapshot of the statistics that should be published */
public Properties publishStatistics() { public Properties publishStatistics() {
Properties stats = new Properties(); Properties stats = new Properties();
...@@ -139,9 +141,6 @@ public class StatisticsManager implements Service { ...@@ -139,9 +141,6 @@ public class StatisticsManager implements Service {
//includeRate("tunnel.smallFragments", stats, new long[] { 10*60*1000, 3*60*60*1000 }); //includeRate("tunnel.smallFragments", stats, new long[] { 10*60*1000, 3*60*60*1000 });
//includeRate("tunnel.testFailedTime", stats, new long[] { 10*60*1000 }); //includeRate("tunnel.testFailedTime", stats, new long[] { 10*60*1000 });
includeRate("tunnel.buildFailure", stats, new long[] { 60*60*1000 });
includeRate("tunnel.buildSuccess", stats, new long[] { 60*60*1000 });
//includeRate("tunnel.batchDelaySent", stats, new long[] { 10*60*1000, 60*60*1000 }); //includeRate("tunnel.batchDelaySent", stats, new long[] { 10*60*1000, 60*60*1000 });
//includeRate("tunnel.batchMultipleCount", stats, new long[] { 10*60*1000, 60*60*1000 }); //includeRate("tunnel.batchMultipleCount", stats, new long[] { 10*60*1000, 60*60*1000 });
//includeRate("tunnel.corruptMessage", stats, new long[] { 60*60*1000l, 3*60*60*1000l }); //includeRate("tunnel.corruptMessage", stats, new long[] { 60*60*1000l, 3*60*60*1000l });
...@@ -187,6 +186,7 @@ public class StatisticsManager implements Service { ...@@ -187,6 +186,7 @@ public class StatisticsManager implements Service {
//includeRate("udp.packetDequeueTime", stats, new long[] { 60*1000 }); //includeRate("udp.packetDequeueTime", stats, new long[] { 60*1000 });
//includeRate("udp.packetVerifyTime", stats, new long[] { 60*1000 }); //includeRate("udp.packetVerifyTime", stats, new long[] { 60*1000 });
if(CommentOutIn065)
includeRate("tunnel.buildRequestTime", stats, new long[] { 10*60*1000 }); includeRate("tunnel.buildRequestTime", stats, new long[] { 10*60*1000 });
includeRate("tunnel.buildClientExpire", stats, new long[] { 10*60*1000 }); includeRate("tunnel.buildClientExpire", stats, new long[] { 10*60*1000 });
includeRate("tunnel.buildClientReject", stats, new long[] { 10*60*1000 }); includeRate("tunnel.buildClientReject", stats, new long[] { 10*60*1000 });
...@@ -280,7 +280,7 @@ public class StatisticsManager implements Service { ...@@ -280,7 +280,7 @@ public class StatisticsManager implements Service {
private void includeThroughput(Properties stats) { private void includeThroughput(Properties stats) {
RateStat sendRate = _context.statManager().getRate("bw.sendRate"); RateStat sendRate = _context.statManager().getRate("bw.sendRate");
if (sendRate != null) { if (sendRate != null) {
if (_context.router().getUptime() > 5*60*1000) { if (CommentOutIn065 && _context.router().getUptime() > 5*60*1000) {
Rate r = sendRate.getRate(5*60*1000); Rate r = sendRate.getRate(5*60*1000);
if (r != null) if (r != null)
stats.setProperty("stat_bandwidthSendBps.5m", num(r.getAverageValue()) + ';' + num(r.getExtremeAverageValue()) + ";0;0;"); stats.setProperty("stat_bandwidthSendBps.5m", num(r.getAverageValue()) + ';' + num(r.getExtremeAverageValue()) + ";0;0;");
...@@ -294,7 +294,7 @@ public class StatisticsManager implements Service { ...@@ -294,7 +294,7 @@ public class StatisticsManager implements Service {
RateStat recvRate = _context.statManager().getRate("bw.recvRate"); RateStat recvRate = _context.statManager().getRate("bw.recvRate");
if (recvRate != null) { if (recvRate != null) {
if (_context.router().getUptime() > 5*60*1000) { if (CommentOutIn065 && _context.router().getUptime() > 5*60*1000) {
Rate r = recvRate.getRate(5*60*1000); Rate r = recvRate.getRate(5*60*1000);
if (r != null) if (r != null)
stats.setProperty("stat_bandwidthReceiveBps.5m", num(r.getAverageValue()) + ';' + num(r.getExtremeAverageValue()) + ";0;0;"); stats.setProperty("stat_bandwidthReceiveBps.5m", num(r.getAverageValue()) + ';' + num(r.getExtremeAverageValue()) + ";0;0;");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment