Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-26598

Duplicate HELP text appear by Get the Open Metrics for Artifactory

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Insights
    • Labels:
      None
    • Environment:

      On-premise

    • Location:
      External

      Description

      Description:
      The Get the Open Metrics for Artifactory API points to https://prometheus.io/docs/instrumenting/exposition_formats/#text-based-format and it says Only one HELP line may exist for any given metric name in Comments, help text, and type information but duplicate HELP text appear.
       
      Steps to reproduce:
      1. Get two artifacts with no cache from two remote repositories at the same time as below

      $ docker pull docker-jfrog-platform
      $ npm install electron

      2. Wait a few sec and run Get the Open Metrics for Artifactory
      3. Appear duplicate HELP text as below

      $ curl -s -u admin:password -X GET "http://localhost/artifactory/api/v1/metrics" -H "text/plain" | grep jfrt_http_connections_available_total
      # HELP jfrt_http_connections_available_total Available Connections
      # UPDATED jfrt_http_connections_available_total 1639040517374
      # TYPE jfrt_http_connections_available_total counter
      jfrt_http_connections_available_total{max="50",pool="docker-remote"} 4 1639040517376
      # HELP jfrt_http_connections_available_total Available Connections
      # UPDATED jfrt_http_connections_available_total 1639040517374
      # TYPE jfrt_http_connections_available_total counter
      jfrt_http_connections_available_total{max="50",pool="npm-remote"} 12 1639040517376
      $
      

      Expected results:
      Only one HELP text should appear because it is by design.
       
      Actual results:
      Multiple same HELP text appears.

        Attachments

          Activity

              People

              Assignee:
              Unassigned
              Reporter:
              iwashitah Hirofumi Iwashita
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Sync Status

                  Connection: RTFACT Sync
                  RTMID-26608 -
                  SYNCHRONIZED
                  • Last Sync Date: