Skip to content

Commit c221d24

Browse files
Allow customizable metrics port (#642)
Co-authored-by: Rashed Abdel-Tawab <rashed@linux.com>
1 parent 3f8f241 commit c221d24

19 files changed

Lines changed: 35 additions & 34 deletions

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ SCP_IP=172.22.0.35
129129

130130
# METRICS
131131
METRICS_IP=172.22.0.36
132+
METRICS_BIND_PORT=9090
132133

133134
# SRSRAN GNB
134135
SRS_GNB_IP=172.22.0.37

4g-external-ims-deploy.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,9 +336,9 @@ services:
336336
- /etc/timezone:/etc/timezone:ro
337337
- /etc/localtime:/etc/localtime:ro
338338
expose:
339-
- "9090/tcp"
339+
- "${METRICS_BIND_PORT}/tcp"
340340
ports:
341-
- "9090:9090/tcp"
341+
- "${METRICS_BIND_PORT}:${METRICS_BIND_PORT}/tcp"
342342
networks:
343343
default:
344344
ipv4_address: ${METRICS_IP}

4g-volte-deploy.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,9 +440,9 @@ services:
440440
- /etc/timezone:/etc/timezone:ro
441441
- /etc/localtime:/etc/localtime:ro
442442
expose:
443-
- "9090/tcp"
443+
- "${METRICS_BIND_PORT}/tcp"
444444
ports:
445-
- "9090:9090/tcp"
445+
- "${METRICS_BIND_PORT}:${METRICS_BIND_PORT}/tcp"
446446
networks:
447447
default:
448448
ipv4_address: ${METRICS_IP}

4g-volte-ocs-deploy.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,9 +464,9 @@ services:
464464
- /etc/timezone:/etc/timezone:ro
465465
- /etc/localtime:/etc/localtime:ro
466466
expose:
467-
- "9090/tcp"
467+
- "${METRICS_BIND_PORT}/tcp"
468468
ports:
469-
- "9090:9090/tcp"
469+
- "${METRICS_BIND_PORT}:${METRICS_BIND_PORT}/tcp"
470470
networks:
471471
default:
472472
ipv4_address: ${METRICS_IP}

4g-volte-opensips-ims-deploy.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,9 +440,9 @@ services:
440440
- /etc/timezone:/etc/timezone:ro
441441
- /etc/localtime:/etc/localtime:ro
442442
expose:
443-
- "9090/tcp"
443+
- "${METRICS_BIND_PORT}/tcp"
444444
ports:
445-
- "9090:9090/tcp"
445+
- "${METRICS_BIND_PORT}:${METRICS_BIND_PORT}/tcp"
446446
networks:
447447
default:
448448
ipv4_address: ${METRICS_IP}

4g-volte-vowifi-deploy.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,9 +479,9 @@ services:
479479
- /etc/timezone:/etc/timezone:ro
480480
- /etc/localtime:/etc/localtime:ro
481481
expose:
482-
- "9090/tcp"
482+
- "${METRICS_BIND_PORT}/tcp"
483483
ports:
484-
- "9090:9090/tcp"
484+
- "${METRICS_BIND_PORT}:${METRICS_BIND_PORT}/tcp"
485485
networks:
486486
default:
487487
ipv4_address: ${METRICS_IP}

custom_deployments/open5gs_hss_cx/4g-external-ims-deploy.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,9 @@ services:
290290
- /etc/timezone:/etc/timezone:ro
291291
- /etc/localtime:/etc/localtime:ro
292292
expose:
293-
- "9090/tcp"
293+
- "${METRICS_BIND_PORT}/tcp"
294294
ports:
295-
- "9090:9090/tcp"
295+
- "${METRICS_BIND_PORT}:${METRICS_BIND_PORT}/tcp"
296296
networks:
297297
default:
298298
ipv4_address: ${METRICS_IP}

custom_deployments/open5gs_hss_cx/4g-volte-deploy.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,9 +418,9 @@ services:
418418
- /etc/timezone:/etc/timezone:ro
419419
- /etc/localtime:/etc/localtime:ro
420420
expose:
421-
- "9090/tcp"
421+
- "${METRICS_BIND_PORT}/tcp"
422422
ports:
423-
- "9090:9090/tcp"
423+
- "${METRICS_BIND_PORT}:${METRICS_BIND_PORT}/tcp"
424424
networks:
425425
default:
426426
ipv4_address: ${METRICS_IP}

custom_deployments/open5gs_hss_cx/4g-volte-opensips-ims-deploy.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,9 +416,9 @@ services:
416416
- /etc/timezone:/etc/timezone:ro
417417
- /etc/localtime:/etc/localtime:ro
418418
expose:
419-
- "9090/tcp"
419+
- "${METRICS_BIND_PORT}/tcp"
420420
ports:
421-
- "9090:9090/tcp"
421+
- "${METRICS_BIND_PORT}:${METRICS_BIND_PORT}/tcp"
422422
networks:
423423
default:
424424
ipv4_address: ${METRICS_IP}

custom_deployments/slicing/sa-deploy.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,9 @@ services:
357357
- /etc/timezone:/etc/timezone:ro
358358
- /etc/localtime:/etc/localtime:ro
359359
expose:
360-
- "9090/tcp"
360+
- "${METRICS_BIND_PORT}/tcp"
361361
ports:
362-
- "9090:9090/tcp"
362+
- "${METRICS_BIND_PORT}:${METRICS_BIND_PORT}/tcp"
363363
networks:
364364
default:
365365
ipv4_address: ${METRICS_IP}

0 commit comments

Comments
 (0)