From: Sergey Matveev Date: Thu, 30 Apr 2015 19:10:02 +0000 (+0300) Subject: [DOC] Example stats output X-Git-Tag: 3.0^2~19 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b4b999b6c070f2c2f08175f06599f3afa2c034db;p=govpn.git [DOC] Example stats output Signed-off-by: Sergey Matveev --- diff --git a/doc/user.texi b/doc/user.texi index 193e945..d2bc984 100644 --- a/doc/user.texi +++ b/doc/user.texi @@ -144,3 +144,30 @@ Client will exit if won't finish handshake during @code{-timeout}. If no packets are received from remote side during timeout, then daemon will stop sending packets to the client and client will exit. In all cases you have to rehandshake again. + +To view stats you should make GET request on a stats port and receive +JSON in the response. For example: + +@verbatim +% curl http://localhost:5678/ | jq . +[ + { + "HeartbeatSent": 1, + "HeartbeatRecv": 2, + "FramesDup": 0, + "FramesUnauth": 0, + "Addr": { + "Zone": "igb1", + "Port": 12989, + "IP": "fe80::221:ccff:feb9:ba7f" + }, + "Id": "stargrave", + "LastPing": "2015-04-30T22:05:49.426616166+03:00", + "LastSent": "2015-04-30T22:05:49.426704138+03:00", + "BytesIn": 1392774, + "BytesOut": 17228877, + "FramesIn": 12412, + "FramesOut": 16588 + } +] +@end verbatim