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

Update blog on pulling metrics ACM from a remote grafana instance

XMLWordPrintable

    • Icon: Spike Spike
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • Observability
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Hide

      Provide the required acceptance criteria using this template.

      • ...
      Show
      Provide the required acceptance criteria using this template. ...
    • None

      Value Statement

      this gets asked several times and the procedure does not work anymore without some modifications:
      https://www.redhat.com/en/blog/how-your-grafana-can-fetch-metrics-from-red-hat-advanced-cluster-management-observability-observatorium-and-thanos

      Also support scope needs to be clarified, e.g. we do not support external Grafana Dashboards.

      Also the secret uses to connect is read-only

      touch /tmp/external-grafana.txt
      echo "# URL" > /tmp/external-grafana.txt
      host=$(oc -n open-cluster-management-observability get route observatorium-api -o json | jq -r '.spec.host')
      echo "https://${host}/api/metrics/v1/default" >> /tmp/external-grafana.txt
      echo >> /tmp/external-grafana.txt

      echo "# ca.crt" >> /tmp/external-grafana.txt
      crt=$(oc -n open-cluster-management-observability get secret observability-server-ca-certs -o json | jq -r '.data."ca.crt"' | base64 -d )
      echo "${crt}" >> /tmp/external-grafana.txt
      echo >> /tmp/external-grafana.txt

      echo "# client.crt" >> /tmp/external-grafana.txt
      client_crt=$(oc -n open-cluster-management-observability get secret observability-grafana-certs -o json | jq -r '.data."tls.crt"'| base64 -d)
      echo "${client_crt}" >> /tmp/external-grafana.txt
      echo >> /tmp/external-grafana.txt

      echo "# client.key" >> /tmp/external-grafana.txt
      client_key=$(oc -n open-cluster-management-observability get secret observability-grafana-certs -o json | jq -r '.data."tls.key"' | base64 -d)
      echo "${client_key}" >> /tmp/external-grafana.txt
      echo >> /tmp/external-grafana.txt

       

      plug those values into the datasource as per blog post

      Definition of Done for Engineering Story Owner (Checklist)

      • ...

      Development Complete

      • The code is complete.
      • Functionality is working.
      • Any required downstream Docker file changes are made.

      Tests Automated

      • [ ] Unit/function tests have been automated and incorporated into the
        build.
      • [ ] 100% automated unit/function test coverage for new or changed APIs.

      Secure Design

      • [ ] Security has been assessed and incorporated into your threat model.

      Multidisciplinary Teams Readiness

      Support Readiness

      • [ ] The must-gather script has been updated.

              rhn-support-cstark Christian Stark
              rhn-support-cstark Christian Stark
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: