I’m using free5gc official compose from github trying to connect prometheus so I can monitor some container and get some metrics like AMF and UPF but when connecting the prometheus I get Get http://amf.free5gc.org:3000/metrics: dial tcp 10.100.200.16:3000: getsockopt: connection refused
I literally used the same
yaml config and added the necessary changed from the used
docker-compose yaml into the free5gc docker-compose-build.yaml from the official github repo, any help, I’m sure the issue is because there’s no endpoint /metrics provided by those components, in this case what should I do exactly?
I’m not sure which AMF and UPF metrics you need, and this repository seems to use a very old version of free5GC.
If your goal is to monitor free5GC using Prometheus, I recommend you to use helm chart to deploy them.
You can refer to this blog for guidance: free5GC Introduce Kubernetes and Deploy free5GC on Kubernetes with helm
The idea is to pass packets through the 5GC to the internet, I want to get the throughput, bandwidth and so on so I can check how things go when I use one UPF, 2,3,… UPFs and test many topologies,
Now can I monitor the containers without passing by the kub and the helm charts thing, that’s my point, since Prometheus is endpoint based monitor, how can I integrate it with the free5g compose directly.