-
Task
-
Resolution: Done
-
Blocker
-
None
-
ACM 2.7.0
-
None
-
ACM Sprint 24
-
No
Metrics are currently disabled on the governance-policy-framework addon:
https://github.com/open-cluster-management-io/governance-policy-framework-addon/blob/582eeba84d80fd609ad1a37c0497487a58774dab/main.go#L165
We should enable the metrics on both controller managers so that we can expose the reconcile error rates so that Service Delivery and customers can detect if policy definition or policy status syncing actions are failing. These metrics are provided by default by controller-runtime.
Acceptance Criteria:
- Set the metrics bind addresses to listen on localhost for both controller managers (different ports are needed).
- Configure the Policy Addon Controller to expose these metrics into Prometheus like was done for config-policy-controller. This PR added it for the config-policy-controller, but don't directly copy it from this PR because some changes were made for hosted mode.