-
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:
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.