Uploaded image for project: 'Red Hat Advanced Cluster Management'
  1. Red Hat Advanced Cluster Management
  2. ACM-2179

Enable metrics on the governance-policy-framework addon

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Blocker Blocker
    • None
    • ACM 2.7.0
    • GRC
    • 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.

              jkulikau@redhat.com Justin Kulikauskas
              mprahl Matthew Prahl
              Derek Ho Derek Ho
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: