-
Notifications
You must be signed in to change notification settings - Fork 13
Update metricfunc to provide misbehaving subscriber data to promethues #148
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
Conversation
Signed-off-by: Marikkannu, Suresh <suresh.marikkannu@intel.com>
Signed-off-by: Marikkannu, Suresh <suresh.marikkannu@intel.com>
There was a problem hiding this 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>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
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.