Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ SCP_IP=172.22.0.35

# METRICS
METRICS_IP=172.22.0.36
METRICS_BIND_PORT=9090

# SRSRAN GNB
SRS_GNB_IP=172.22.0.37
Expand Down
4 changes: 2 additions & 2 deletions 4g-external-ims-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,9 @@ services:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
expose:
- "9090/tcp"
- "${METRICS_BIND_PORT}/tcp"
ports:
- "9090:9090/tcp"
- "${METRICS_BIND_PORT}:${METRICS_BIND_PORT}/tcp"
networks:
default:
ipv4_address: ${METRICS_IP}
Expand Down
4 changes: 2 additions & 2 deletions 4g-volte-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -440,9 +440,9 @@ services:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
expose:
- "9090/tcp"
- "${METRICS_BIND_PORT}/tcp"
ports:
- "9090:9090/tcp"
- "${METRICS_BIND_PORT}:${METRICS_BIND_PORT}/tcp"
networks:
default:
ipv4_address: ${METRICS_IP}
Expand Down
4 changes: 2 additions & 2 deletions 4g-volte-ocs-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -464,9 +464,9 @@ services:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
expose:
- "9090/tcp"
- "${METRICS_BIND_PORT}/tcp"
ports:
- "9090:9090/tcp"
- "${METRICS_BIND_PORT}:${METRICS_BIND_PORT}/tcp"
networks:
default:
ipv4_address: ${METRICS_IP}
Expand Down
4 changes: 2 additions & 2 deletions 4g-volte-opensips-ims-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -440,9 +440,9 @@ services:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
expose:
- "9090/tcp"
- "${METRICS_BIND_PORT}/tcp"
ports:
- "9090:9090/tcp"
- "${METRICS_BIND_PORT}:${METRICS_BIND_PORT}/tcp"
networks:
default:
ipv4_address: ${METRICS_IP}
Expand Down
4 changes: 2 additions & 2 deletions 4g-volte-vowifi-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -479,9 +479,9 @@ services:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
expose:
- "9090/tcp"
- "${METRICS_BIND_PORT}/tcp"
ports:
- "9090:9090/tcp"
- "${METRICS_BIND_PORT}:${METRICS_BIND_PORT}/tcp"
networks:
default:
ipv4_address: ${METRICS_IP}
Expand Down
4 changes: 2 additions & 2 deletions custom_deployments/open5gs_hss_cx/4g-external-ims-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,9 @@ services:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
expose:
- "9090/tcp"
- "${METRICS_BIND_PORT}/tcp"
ports:
- "9090:9090/tcp"
- "${METRICS_BIND_PORT}:${METRICS_BIND_PORT}/tcp"
networks:
default:
ipv4_address: ${METRICS_IP}
Expand Down
4 changes: 2 additions & 2 deletions custom_deployments/open5gs_hss_cx/4g-volte-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -418,9 +418,9 @@ services:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
expose:
- "9090/tcp"
- "${METRICS_BIND_PORT}/tcp"
ports:
- "9090:9090/tcp"
- "${METRICS_BIND_PORT}:${METRICS_BIND_PORT}/tcp"
networks:
default:
ipv4_address: ${METRICS_IP}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -416,9 +416,9 @@ services:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
expose:
- "9090/tcp"
- "${METRICS_BIND_PORT}/tcp"
ports:
- "9090:9090/tcp"
- "${METRICS_BIND_PORT}:${METRICS_BIND_PORT}/tcp"
networks:
default:
ipv4_address: ${METRICS_IP}
Expand Down
4 changes: 2 additions & 2 deletions custom_deployments/slicing/sa-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -357,9 +357,9 @@ services:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
expose:
- "9090/tcp"
- "${METRICS_BIND_PORT}/tcp"
ports:
- "9090:9090/tcp"
- "${METRICS_BIND_PORT}:${METRICS_BIND_PORT}/tcp"
networks:
default:
ipv4_address: ${METRICS_IP}
Expand Down
4 changes: 2 additions & 2 deletions custom_deployments/with_eupf/sa-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,9 @@ services:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
expose:
- "9090/tcp"
- "${METRICS_BIND_PORT}/tcp"
ports:
- "9090:9090/tcp"
- "${METRICS_BIND_PORT}:${METRICS_BIND_PORT}/tcp"
networks:
default:
ipv4_address: ${METRICS_IP}
Expand Down
4 changes: 2 additions & 2 deletions custom_deployments/with_eupf/sa-vonr-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,9 @@ services:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
expose:
- "9090/tcp"
- "${METRICS_BIND_PORT}/tcp"
ports:
- "9090:9090/tcp"
- "${METRICS_BIND_PORT}:${METRICS_BIND_PORT}/tcp"
networks:
default:
ipv4_address: ${METRICS_IP}
Expand Down
4 changes: 2 additions & 2 deletions deploy-all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -663,9 +663,9 @@ services:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
expose:
- "9090/tcp"
- "${METRICS_BIND_PORT}/tcp"
ports:
- "9090:9090/tcp"
- "${METRICS_BIND_PORT}:${METRICS_BIND_PORT}/tcp"
networks:
default:
ipv4_address: ${METRICS_IP}
Expand Down
2 changes: 1 addition & 1 deletion grafana/datasources/prometheus_open5gs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ datasources:
- name: Open5Gs
type: prometheus
access: proxy
url: http://${METRICS_IP}:9090
url: http://${METRICS_IP}:${METRICS_BIND_PORT}
disableDeletion: false
editable: true
2 changes: 1 addition & 1 deletion metrics/metrics_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ sed -i 's|UPF_IP|'$UPF_IP'|g' /config/prometheus.yml
sed -i 's|HSS_IP|'$HSS_IP'|g' /config/prometheus.yml
sed -i 's|PCRF_IP|'$PCRF_IP'|g' /config/prometheus.yml

exec ./prometheus --config.file=/config/prometheus.yml $@
exec ./prometheus --config.file=/config/prometheus.yml --web.listen-address=0.0.0.0:$METRICS_BIND_PORT $@
4 changes: 2 additions & 2 deletions sa-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,9 @@ services:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
expose:
- "9090/tcp"
- "${METRICS_BIND_PORT}/tcp"
ports:
- "9090:9090/tcp"
- "${METRICS_BIND_PORT}:${METRICS_BIND_PORT}/tcp"
networks:
default:
ipv4_address: ${METRICS_IP}
Expand Down
4 changes: 2 additions & 2 deletions sa-vonr-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,9 @@ services:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
expose:
- "9090/tcp"
- "${METRICS_BIND_PORT}/tcp"
ports:
- "9090:9090/tcp"
- "${METRICS_BIND_PORT}:${METRICS_BIND_PORT}/tcp"
networks:
default:
ipv4_address: ${METRICS_IP}
Expand Down
4 changes: 2 additions & 2 deletions sa-vonr-ibcf-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,9 @@ services:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
expose:
- "9090/tcp"
- "${METRICS_BIND_PORT}/tcp"
ports:
- "9090:9090/tcp"
- "${METRICS_BIND_PORT}:${METRICS_BIND_PORT}/tcp"
networks:
default:
ipv4_address: ${METRICS_IP}
Expand Down
4 changes: 2 additions & 2 deletions sa-vonr-opensips-ims-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,9 @@ services:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
expose:
- "9090/tcp"
- "${METRICS_BIND_PORT}/tcp"
ports:
- "9090:9090/tcp"
- "${METRICS_BIND_PORT}:${METRICS_BIND_PORT}/tcp"
networks:
default:
ipv4_address: ${METRICS_IP}
Expand Down
Loading