From 4d9112870c76d5c81d0e9ea87302f9bb6f636fd7 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Mon, 13 Jun 2022 16:13:58 +0200 Subject: [PATCH] configs: use proper default IP address for metrics server (#1603) * configs: use proper default IP address for metrics server Let's use the IP address assigned to each process by default when configuring the HTTP Prometheus server. Otherwise having several processes listening on 0.0.0.0 cause collisions. * configs: mme.yaml: Fix trailing whitespace --- configs/open5gs/amf.yaml.in | 2 +- configs/open5gs/mme.yaml.in | 6 +++--- configs/open5gs/smf.yaml.in | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/configs/open5gs/amf.yaml.in b/configs/open5gs/amf.yaml.in index 53b76b6c8..779440451 100644 --- a/configs/open5gs/amf.yaml.in +++ b/configs/open5gs/amf.yaml.in @@ -370,5 +370,5 @@ time: # port: 9090 # metrics: - addr: 0.0.0.0 + addr: 127.0.0.5 port: 9090 diff --git a/configs/open5gs/mme.yaml.in b/configs/open5gs/mme.yaml.in index ce689b5da..469151be3 100644 --- a/configs/open5gs/mme.yaml.in +++ b/configs/open5gs/mme.yaml.in @@ -248,7 +248,7 @@ mme: - addr: 127.0.0.2 gtpc: - addr: 127.0.0.2 - gummei: + gummei: plmn_id: mcc: 901 mnc: 70 @@ -433,5 +433,5 @@ time: # port: 9090 # metrics: - addr: 0.0.0.0 - port: 9090 \ No newline at end of file + addr: 127.0.0.2 + port: 9090 diff --git a/configs/open5gs/smf.yaml.in b/configs/open5gs/smf.yaml.in index d43639490..1448defdd 100644 --- a/configs/open5gs/smf.yaml.in +++ b/configs/open5gs/smf.yaml.in @@ -575,5 +575,5 @@ time: # port: 9090 # metrics: - addr: 0.0.0.0 + addr: 127.0.0.4 port: 9090