aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2018-09-05 14:16:54 +0200
committerFlorin Coras <florin.coras@gmail.com>2018-09-05 23:43:21 +0000
commit573c7af1710cf884f84427366855f405c9c9c5f9 (patch)
tree28103cf46b446987373a4169ee3a05537e6eddb4
parent3f812aaf63c622bada7eae45e5b1cb14e89ba7ea (diff)
STATS: Update Prometheus port
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>
-rw-r--r--src/vpp/app/vpp_prometheus_export.c2
-rw-r--r--test/framework.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/vpp/app/vpp_prometheus_export.c b/src/vpp/app/vpp_prometheus_export.c
index cc85b817063..4fd749af24a 100644
--- a/src/vpp/app/vpp_prometheus_export.c
+++ b/src/vpp/app/vpp_prometheus_export.c
@@ -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)
diff --git a/test/framework.py b/test/framework.py
index 789ec1be9b9..74cc7ff3a26 100644
--- a/test/framework.py
+++ b/test/framework.py
@@ -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: