Change in docker-playground[master]: ttcn3-pcu-test: Change config to support statsd

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

daniel gerrit-no-reply at lists.osmocom.org
Mon Sep 21 12:10:43 UTC 2020


daniel has uploaded this change for review. ( https://gerrit.osmocom.org/c/docker-playground/+/20228 )


Change subject: ttcn3-pcu-test: Change config to support statsd
......................................................................

ttcn3-pcu-test: Change config to support statsd

Change-Id: I2779cdb4ec7cac891aa86e3fefa739e61f867691
Depends: osmo-ttcn3-hacks.git Change-Id I90964b32fa11ed2582afc5fb56bd302b06606f86
Related: SYS#4877
---
M ttcn3-pcu-test/PCU_Tests.cfg
M ttcn3-pcu-test/jenkins.sh
M ttcn3-pcu-test/osmo-pcu.cfg
3 files changed, 23 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/docker-playground refs/changes/28/20228/1

diff --git a/ttcn3-pcu-test/PCU_Tests.cfg b/ttcn3-pcu-test/PCU_Tests.cfg
index 17ab6c6..300937b 100644
--- a/ttcn3-pcu-test/PCU_Tests.cfg
+++ b/ttcn3-pcu-test/PCU_Tests.cfg
@@ -7,9 +7,13 @@
 [TESTPORT_PARAMETERS]
 *.PCUVTY.CTRL_HOSTNAME := "172.18.13.101"
 *.PCUVTY.PROMPT1 := "OsmoPCU> "
+*.STATSVTY.CTRL_HOSTNAME := "172.18.13.101"
+*.STATSVTY.PROMPT1 := "OsmoPCU> "
+
 
 [MODULE_PARAMETERS]
 PCU_Tests.mp_pcu_sock_path := "/data/unix/pcu_bts"
+PCU_Tests.mp_pcu_statsd_ip := "172.18.13.10"
 SGSN_Components.mp_nsconfig := {
 	local_ip := "172.18.13.10",
 	local_udp_port := 23000,
@@ -19,6 +23,7 @@
 	nsei := 1234
 }
 Osmocom_VTY_Functions.mp_prompt_prefix := "OsmoPCU";
+StatsD_Checker.mp_enable_stats := true;
 
 [MAIN_CONTROLLER]
 
diff --git a/ttcn3-pcu-test/jenkins.sh b/ttcn3-pcu-test/jenkins.sh
index 5dedec7..5191bf5 100755
--- a/ttcn3-pcu-test/jenkins.sh
+++ b/ttcn3-pcu-test/jenkins.sh
@@ -19,6 +19,13 @@
 
 mkdir $VOL_BASE_DIR/unix
 
+# Disable stats testing until libosmocore release > 1.4.0
+if [ "$IMAGE_SUFFIX" = "latest" ]; then
+	sed -i "s/^StatsD_Checker.mp_enable_stats.*/StatsD_Checker.mp_enable_stats := false;/" $VOL_BASE_DIR/pcu-tester/PCU_Tests.cfg
+	sed -i "s/stats interval 0//" $VOL_BASE_DIR/pcu/osmo-pcu.cfg
+	sed -i "s/flush-period 1//" $VOL_BASE_DIR/pcu/osmo-pcu.cfg
+fi
+
 echo Starting container with PCU
 docker run	--rm \
 		$(docker_network_params $SUBNET 101) \
diff --git a/ttcn3-pcu-test/osmo-pcu.cfg b/ttcn3-pcu-test/osmo-pcu.cfg
index 326ad59..733cebe 100644
--- a/ttcn3-pcu-test/osmo-pcu.cfg
+++ b/ttcn3-pcu-test/osmo-pcu.cfg
@@ -11,7 +11,17 @@
  logging print file basename last
  logging print extended-timestamp 1
  logging level set-all debug
-
+!
+stats interval 0
+stats reporter statsd
+ prefix TTCN3
+ level subscriber
+ remote-ip 172.18.13.10
+ remote-port 8125
+ flush-period 1
+ mtu 1024
+ enable
+!
 line vty
  no login
  bind 172.18.13.101

-- 
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/20228
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: I2779cdb4ec7cac891aa86e3fefa739e61f867691
Gerrit-Change-Number: 20228
Gerrit-PatchSet: 1
Gerrit-Owner: daniel <dwillmann at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200921/7ad6ff04/attachment.htm>


More information about the gerrit-log mailing list