Skip to content

Conversation

sureshmarikkannu
Copy link
Contributor

metricfunc will collect misbehaving subscribers from UPF (only if closed_loop functionality enabled, by default its disabled) and remove the subscriber from the network automatically. However these removed subscribers data will not be available for prometheus. As part of this PR we update the metricfunc to provide the details to prometheus.

Signed-off-by: Marikkannu, Suresh <suresh.marikkannu@intel.com>
Signed-off-by: Marikkannu, Suresh <suresh.marikkannu@intel.com>
@gab-arrobo gab-arrobo requested a review from Copilot May 13, 2025 05:18
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the metricfunc module to provide misbehaving subscriber data to Prometheus. It introduces a new Prometheus metric for violator subscribers, registers it, and adds functions for pushing and deleting violator subscriber data, with the controller updated accordingly to report state transitions.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
internal/promclient/promclient.go Introduces a new metric (violSub) and associated functions for metric updates.
controller/controller.go Integrates the new Prometheus calls handling subscriber state changes.

Signed-off-by: Marikkannu, Suresh <suresh.marikkannu@intel.com>
Signed-off-by: Marikkannu, Suresh <suresh.marikkannu@intel.com>
Signed-off-by: Marikkannu, Suresh <suresh.marikkannu@intel.com>
Copy link
Contributor

@gab-arrobo gab-arrobo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@gab-arrobo gab-arrobo merged commit 250b80d into omec-project:main May 14, 2025
9 checks passed
@sureshmarikkannu sureshmarikkannu deleted the add_upf branch May 14, 2025 04:36
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