]> Cypherpunks.ru repositories - govpn.git/commitdiff
[DOC] Example stats output
authorSergey Matveev <stargrave@stargrave.org>
Thu, 30 Apr 2015 19:10:02 +0000 (22:10 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 30 Apr 2015 19:10:02 +0000 (22:10 +0300)
Signed-off-by: Sergey Matveev <stargrave@stargrave.org>
doc/user.texi

index 193e9456979fb238b2f584598fa21e0ec4827101..d2bc984635b43d7922a3b72401459cdaac855267 100644 (file)
@@ -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