STATS: Update Prometheus port 70/14670/3
authorOle Troan <ot@cisco.com>
Wed, 5 Sep 2018 12:16:54 +0000 (14:16 +0200)
committerFlorin Coras <florin.coras@gmail.com>
Wed, 5 Sep 2018 23:43:21 +0000 (23:43 +0000)
Update temporary port allocation with fixed allocated from:
https://github.com/prometheus/prometheus/wiki/Default-port-allocations

Change-Id: I99a7e069fb95d00884458aeacaba06e4713fbb76
Signed-off-by: Ole Troan <ot@cisco.com>
src/vpp/app/vpp_prometheus_export.c
test/framework.py

index cc85b81..4fd749a 100644 (file)
@@ -34,7 +34,7 @@
 #include <ctype.h>
 
 /* https://github.com/prometheus/prometheus/wiki/Default-port-allocations */
-#define SERVER_PORT 9477
+#define SERVER_PORT 9482
 
 static char *
 prom_string (char *s)
index 789ec1b..74cc7ff 100644 (file)
@@ -390,8 +390,8 @@ class VppTestCase(unittest.TestCase):
             else:
                 hook = PollHook(cls)
             cls.vapi.register_hook(hook)
-            cls.statistics = VPPStats(socketname=cls.tempdir+'/stats.sock')
             cls.sleep(0.1, "after vpp startup, before initial poll")
+            cls.statistics = VPPStats(socketname=cls.tempdir+'/stats.sock')
             try:
                 hook.poll_vpp()
             except VppDiedError: