Comments (3)
Hello Marcin,
Currently in our charts we support metrics for the AMF, SMF, UPF and PCF. If you take the AMF chart as an example, you can see in the values.yaml the argument containerPorts.metrics
as you said. In addition, in the same values.yaml, there is another field metrics.enabled
, which by default it is set to false
.
https://github.com/Gradiant/openverso-charts/blob/fe676f2a30606c2ce51525897f89f625d299af1a/charts/open5gs-amf/values.yaml#L492-L493
Then, in the AMF config yaml (resources/config/amf.yaml
), you can see the following sections:
https://github.com/Gradiant/openverso-charts/blob/fe676f2a30606c2ce51525897f89f625d299af1a/charts/open5gs-amf/resources/config/amf.yaml#L22-L26
Thus, you must set to true
the metrics.enabled
field in the values.yaml file in order to enable this feature. Also, in that same section, there are fields available to configure the metrics scraping with both Prometheus and VictoriaMetrics. In your case, assuming you are using the PrometheusOperator, you will have to enable the ServiceMonitor as well, setting metrics.serviceMonitor.enabled
to true
:
https://github.com/Gradiant/openverso-charts/blob/fe676f2a30606c2ce51525897f89f625d299af1a/charts/open5gs-amf/values.yaml#L494-L501
Hope this helps you to make it work!
from 5g-charts.
Hi,
Yes, we are independent from Open5GS, we integrate multiple opensource frameworks and libraries to build an open 5G laboratory in our infra.
Just for clarification, as @mmarquez999 said, the ServiceMonitor
resouce will only work if you have prometheus-operator installed in your kubernetes cluster. The prometheus-operator is watching for this kind of resources to configure its targets into prometheus server, if not you have to manually configure that.
I have to agree with you, that is a pretty smart engineering, but it's not down to us, but the open-source projects we leverage on, such as prometheus-operator.
Regards!
from 5g-charts.
Such a trivial issue - i thought that the metrics would be enabled by default, didn't notice that the default was set to "false"! Thanks for pointing me in the right direction
So if i want to install all NFs, with metrics enabled for the 4 NFs you mentioned, i need to install this chart https://artifacthub.io/packages/helm/gradiant-openverso/open5gs and then set the metrics values to true for child charts for NFs (amf, upf, smf, pcf) - got it.
And then the service monitor will point prometheus towards the individual pods, which i will be able to see in prometheus UI by going to status -> targets.
Gotta say, that's some pretty smart engineering, I'll try it out right now and come back here if i mess something up.
The official documentation for this is pretty lackluster (https://open5gs.org/open5gs/docs/tutorial/04-metrics-prometheus/) - but i suppose you guys are independent from Open5GS, right?
from 5g-charts.
Related Issues (20)
- NFs retrying to register to NRF (Open5GS 2.6.4) HOT 2
- Is there any network limitations on the Open5GS? HOT 1
- SCTP does not establish connections between pods on different nodes. HOT 1
- Open5gs -CrashLoopBackOff after first installation HOT 2
- ingressClassName not used in webui ingress template HOT 3
- Forwarding traffic between AMF/UPF and internet HOT 1
- Get various hostnames with smf-upf-pfcp values config HOT 7
- What is the password for the root of the container Open5gs HOT 1
- Set static ips for each network function via values.yaml HOT 1
- Openverso-charts new release HOT 3
- AMF Crashes - open5gs-2.1.0.tgz HOT 3
- UPF Pod has multiple interfaces, but Multus is not being used? - Info Discussion HOT 11
- UDR sends 404 [imsi-999700000000001] Cannot find SUPI in DB (../src/udr/nudr-handler.c:68) even if subscriber is configured HOT 2
- MME cannot reach to HSS for 4G call HOT 2
- [Bug]: Ueransim Values not available and helm not working properly HOT 4
- PacketRusher Helm with several UEs and GNB parameters HOT 4
- [Bug]: UPF-GTPU Interface exposed as LoadBalancer not working HOT 2
- [Bug]: Bug Report and Feature Request: Variable for NRF PLMN ID Configuration HOT 3
- How to create 100 UE's in open5gs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 5g-charts.