You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if check metrics on localhost:9098 it looks like this
HELP test_metric test_metric summary
TYPE test_metric summary
HELP counter_total counter counter
TYPE counter_total counter
counter_total{WorkflowType="Domain",TaskList="WorkflowType",Domain="TaskList",} 50.0
HELP counter_created counter counter
TYPE counter_created gauge
counter_created{WorkflowType="Domain",TaskList="WorkflowType",Domain="TaskList",} 1.678364275361E9
tags for counter are incorrect. It looks like the problem is here
scope.tagged() put tags in immutableMap and immutable map returns keyset in order ("WorkflowType", "TaskList", "Domain")
but values() order is ["Domain","WorkflowType","TaskList"]
PrometheusReporter set incorrect tags when tags map returns keyset and values not in same order as it stored in map
e.g.
if check metrics on localhost:9098 it looks like this
HELP test_metric test_metric summary
TYPE test_metric summary
HELP counter_total counter counter
TYPE counter_total counter
counter_total{WorkflowType="Domain",TaskList="WorkflowType",Domain="TaskList",} 50.0
HELP counter_created counter counter
TYPE counter_created gauge
counter_created{WorkflowType="Domain",TaskList="WorkflowType",Domain="TaskList",} 1.678364275361E9
tags for counter are incorrect. It looks like the problem is here
tally/prometheus/src/main/java/com/uber/m3/tally/experimental/prometheus/PrometheusReporter.java
Line 144 in 4a7bba5
scope.tagged() put tags in immutableMap and immutable map returns keyset in order ("WorkflowType", "TaskList", "Domain")
but values() order is ["Domain","WorkflowType","TaskList"]
Could you please have a look? Thanks in advance.
versions:
com.uber.m3:tally-core:0.13.0
com.uber.m3:tally-prometheus:0.13.0
io.prometheus:simpleclient:0.16.0
io.prometheus:simpleclient_httpserver:0.16.0
The text was updated successfully, but these errors were encountered: