Uploaded image for project: 'OpenShift Monitoring'
  1. OpenShift Monitoring
  2. MON-2833

Generate curl command returning telemetry metrics for OCP 4.11

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • None
    • None
    • False
    • None
    • False
    • NEW
    • NEW
    • MON Sprint 228

      rhn-support-bburt needs to document the curl command that would query the Prometheus service and return the exact list of metrics forwarded to Red Hat telemetry.

      https://github.com/openshift/openshift-docs/pull/51504 is the actual PR but the list of metrics isn't 100% accurate.

      The task is to start a live 4.11 cluster and run the following command which would return the correct query parameters to be passed to the curl command.

      oc get cm telemetry-config -n openshift-monitoring -o go-template='{{ index .data "metrics.yaml" }}' | gojsontoyaml -yamltojson  | jq -cr '.matches | map("--data-urlencode '"'"'match[]=" + . + "'"'"'") | join(" \\\n")'
      

       

       

              spasquie@redhat.com Simon Pasquier
              spasquie@redhat.com Simon Pasquier
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: