Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: expose metrics for prometheus to scrape #102

Merged
merged 1 commit into from
Apr 29, 2024

Conversation

gruyaume
Copy link
Contributor

Description

Here we expose a metrics endpoint for Prometheus to scrape the network function. Right now, we are only exposing the default Go metrics, allowing users to know whether the service is running or not in addition to valuable information (ex. memory usage, num. of goroutines, etc).

Screenshot

For example, we can now have a dashboard that tells us the status of the network function:

image

Implementation

We take the same approach to metrics as is done in the AMF, we create a metrics/telemetry.go file and we instantiate the server during the service startup.

Notes

If approved, we will make similar PR's in every network function.

Future Considerations

With this in place, it will be straightforward to add bespoke metrics to the network function.

@gab-arrobo gab-arrobo merged commit 79cafc9 into omec-project:master Apr 29, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants