From 573c7af1710cf884f84427366855f405c9c9c5f9 Mon Sep 17 00:00:00 2001 From: Ole Troan Date: Wed, 5 Sep 2018 14:16:54 +0200 Subject: [PATCH] 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 --- src/vpp/app/vpp_prometheus_export.c | 2 +- test/framework.py | 2 +- 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 /* 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: -- 2.16.6