Uploaded image for project: 'Red Hat Internal Developer Platform'
  1. Red Hat Internal Developer Platform
  2. RHIDP-3458

Backstage Specific Metrics no longer appear in /metrics endpoint

Prepare for Y ReleasePrepare for Z ReleaseRemove QuarterXMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.3
    • 1.3
    • Core platform, Telemetry
    • None
    • 5
    • False
    • Hide

      None

      Show
      None
    • False
    • Hide
      Before this update, {product-short} stopped displaying some metrics such as catalog metrics in the `__<RHDH_URL>__/metrics` endpoint.

      With this update, {product-short} displays expected metrics in the /metrics endpoint.
      Show
      Before this update, {product-short} stopped displaying some metrics such as catalog metrics in the `__<RHDH_URL>__/metrics` endpoint. With this update, {product-short} displays expected metrics in the /metrics endpoint.
    • Bug Fix
    • Done
    • RHDH Core Team 3261

      Description of problem:

      When querying the `{BACKEND_URL}/metrics` endpoint, the backstage specific metrics such as catalog metrics no longer appear in versions of RHDH running running backstage 1.27.7+.

      Tested with the `quay.io/rhdh/rhdh-hub-rhel9:1.3-46` image and was able to replicate this issue

      Metrics appear properly with the `quay.io/rhdh/rhdh-hub-rhel9:1.2-132` image as well as the latest RHDH 1.2.1 image: https://catalog.redhat.com/software/containers/rhdh/rhdh-hub-rhel9/645bd4c15c00598369c31aba?container-tabs=gti&image=669fedac64fada07d4071297 

      Prerequisites (if any, like setup, operators/versions):

      Steps to Reproduce

      1. Load an RHDH image using backstage 1.27.x+ such as `quay.io/rhdh/rhdh-hub-rhel9:1.3-46` (use either Helm Chart or Operator)
      2. Query the `/metrics` endpoint
      3. Observe no catalog metrics

      Actual results:

      No Backstage Specific Metrics:

      metrics-output-for-1.3-46.txt

      Expected results:

      Backstage specific metrics such as in the following output example:

      metrics-output-for-1.2-132.txt

      Reproducibility (Always/Intermittent/Only Once):

      Always

      Build Details:

      RHDH Version: 1.3.0
      Backstage Version: 1.27.7
      Upstream: https://github.com/janus-idp/backstage-showcase/tree/main @ 6c6fb537
      Midstream: https://gitlab.cee.redhat.com/rhidp/rhdh/-/commits/rhdh-1-rhel-9 @ bf8b7b16
      Build Time: 2024-07-30T13:56:28Z

      Additional info (Such as Logs, Screenshots, etc):

      • When the metrics do appear, there also came with a deprecation warning: DEPRECATED, use OpenTelemetry metrics instead
      • Works on builds that use backstage v1.26.5
      • This issue can also be replicated locally on the https://github.com/janus-idp/backstage-showcase project.

            rh-ee-frkong Frank Kong (Inactive)
            rh-ee-frkong Frank Kong (Inactive)
            RHIDP - Core Platform
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: