open5gs: Enable libmetrics prometheus implementation

metrics support using Prometheus has been recently added to open5gs
(28e40a0f1b9048768958344e213c69994be671f5). However, it is still not
enabled by default. Let's enable it and update open5gs config files to
make use of it.

Change-Id: I6ec827d66241e20d631f3a851457921718c168a0
This commit is contained in:
Pau Espin 2022-06-08 13:49:41 +02:00
parent 029594f3b2
commit e7a5379e29
3 changed files with 30 additions and 0 deletions

View File

@ -7,6 +7,7 @@ RUN apt-get update && \
apt-get upgrade -y && \
DEBIAN_FRONTEND=noninteractive \
apt-get install -y --no-install-recommends \
cmake \
vim \
sudo \
iproute2 \
@ -53,4 +54,5 @@ RUN cd $GITHUB_REPO && \
--localstatedir=/var \
--libdir=lib/x86_64-linux-gnu \
--libexecdir=lib/x86_64-linux-gnu && \
meson configure -Dmetrics_impl=prometheus build && \
ninja -C build install

View File

@ -533,3 +533,17 @@ pool:
# handover:
# duration: 500
time:
#
# metrics:
#
# <Metrics Server>
#
# o Metrics Server(http://<any address>:9090)
# metrics:
# addr: 0.0.0.0
# port: 9090
#
metrics:
addr: 172.18.3.201
port: 9090

View File

@ -521,3 +521,17 @@ pool:
# handover:
# duration: 500
time:
#
# metrics:
#
# <Metrics Server>
#
# o Metrics Server(http://<any address>:9090)
# metrics:
# addr: 0.0.0.0
# port: 9090
#
metrics:
addr: 172.18.18.4
port: 9090