Skip to content

Commit

Permalink
Update for logging inboundrtp and outboundrtp
Browse files Browse the repository at this point in the history
  • Loading branch information
alincalinciuc committed Sep 26, 2016
1 parent dd7cbe2 commit 02099fb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/main/java/org/kurento/tutorial/kmsmonitor/SendStats.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,19 @@ public static void main(String[] args) throws InterruptedException {
System.out.println("Sending stats for hostname: " + hostname + " to graphite... ");
dos.writeBytes("server."+hostname+".pipelines " + kmsStats.getNumPipelines() +" "+ System.currentTimeMillis() / 1000L +"\n");
dos.writeBytes("server."+hostname+".elements " + kmsStats.getNumElements() +" "+ System.currentTimeMillis() / 1000L +"\n");
dos.writeBytes("server."+hostname+".inboundrtp "+ kmsStats.getWebRtcStats().getInbound() + " "+ System.currentTimeMillis() / 1000L +"\n");
dos.writeBytes("server."+hostname+".outboundrtp "+ kmsStats.getWebRtcStats().getOutbound() + " "+ System.currentTimeMillis() / 1000L +"\n");

dos.writeBytes("server."+hostname+".inboudJitter "+ kmsStats.getWebRtcStats().getInbound().getJitter() + " "+ System.currentTimeMillis() / 1000L +"\n");
dos.writeBytes("server."+hostname+".inboundByteCount "+ kmsStats.getWebRtcStats().getInbound().getByteCount() + " "+ System.currentTimeMillis() / 1000L +"\n");
dos.writeBytes("server."+hostname+".inboundPacketLost "+ kmsStats.getWebRtcStats().getInbound().getPacketLostCount() + " "+ System.currentTimeMillis() / 1000L +"\n");
dos.writeBytes("server."+hostname+".inboundDeltaNacks "+ kmsStats.getWebRtcStats().getInbound().getDeltaNacks() + " "+ System.currentTimeMillis() / 1000L +"\n");
dos.writeBytes("server."+hostname+".inboundDeltaPlis "+ kmsStats.getWebRtcStats().getInbound().getDeltaPlis() + " "+ System.currentTimeMillis() / 1000L +"\n");
dos.writeBytes("server."+hostname+".inboundFractionLost "+ kmsStats.getWebRtcStats().getInbound().getFractionLost() + " "+ System.currentTimeMillis() / 1000L +"\n");

dos.writeBytes("server."+hostname+".outboundByteCount "+ kmsStats.getWebRtcStats().getOutbound().getByteCount() + " "+ System.currentTimeMillis() / 1000L +"\n");
dos.writeBytes("server."+hostname+".outboundRtt "+ kmsStats.getWebRtcStats().getOutbound().getRtt() + " "+ System.currentTimeMillis() / 1000L +"\n");
dos.writeBytes("server."+hostname+".outboundDeltaPlis "+ kmsStats.getWebRtcStats().getOutbound().getDeltaPlis() + " "+ System.currentTimeMillis() / 1000L +"\n");
dos.writeBytes("server."+hostname+".outboundDeltaNacks "+ kmsStats.getWebRtcStats().getOutbound().getDeltaNacks() + " "+ System.currentTimeMillis() / 1000L +"\n");
dos.writeBytes("server."+hostname+".outboundTargetBitrate "+ kmsStats.getWebRtcStats().getOutbound().getTargetBitrate() + " "+ System.currentTimeMillis() / 1000L +"\n");

conn.close();
} catch (Exception e) {
Expand Down
Binary file modified target/kms-monitoring-java-6.5.0.jar
Binary file not shown.

0 comments on commit 02099fb

Please sign in to comment.