Uploaded image for project: 'Managed Service - API'
  1. Managed Service - API
  2. MGDAPI-5733

Create ServiceMonitor to federate metrics

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • None
    • None
    • 3
    • False
    • None
    • False
    • Yes
    • RHOAM Sprint 41

      WHY
      RHOAM needs to be able to federate certain metrics from the openshift-monitoring Prometheus instance as part of its monitoring solution.

      WHAT
      With OO we leveraged the additionalScrapeConfig Secret that the Prometheus CR consumes to accomplish federating metrics. We have less control over this Secret with OBO and so we will instead create a ServiceMonitor CR to accomplish this. We will also need to create a ClusterRole and ClusterRoleBinding to give the ServiceAccount that Prometheus uses permission to federate the metrics.

      We will probably use the bootstrap stage of the installation to create the ServiceMonitor.

      HOW
      Use the findings from MGDAPI-5611 as a starting point.

      TESTS
      <List of related tests>

      DONE

      • Created the ClusterRole and ClusterRoleBinding needed to federate the metrics
      • Created ServiceMonitor in redhat-rhoam-operator and confirmed that federated metrics can be queried

              rh-ee-fwaters Fiona Waters
              ckyrillo@redhat.com Carl Kyrillos
              Carl Kyrillos Carl Kyrillos
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: