[ https://issues.apache.org/jira/browse/HADOOP-18263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17542466#comment-17542466 ]
zhengchenyu commented on HADOOP-18263: -------------------------------------- PrometheusMetricsSink is introduced by HADOOP-16398, and tag numopenconnectionsperuser is ignore. First way, we can add config to ignore some tag. Second way, we can remove some metric which is inconstant and return type is String, or add Metric Type to handle this special situation. But I worry some other sink(For example: FileSink) use it. > Prometheus metrics tag changed unexpectedly. > -------------------------------------------- > > Key: HADOOP-18263 > URL: https://issues.apache.org/jira/browse/HADOOP-18263 > Project: Hadoop Common > Issue Type: Improvement > Components: metrics > Affects Versions: 3.2.1, 3.3.3 > Reporter: zhengchenyu > Priority: Major > Attachments: 截屏2022-05-26 下午8.15.50.png > > > Prom web print metrics like below > {code:java} > fs_namesystem_blocks_total{context="dfs",enabledecpolicies="RS-6-3-1024k",hastate="active",totalsynctimes="10 > 43 ",hostname="xxx"} 3674006 {code} > getTotalSyncTimes return String, so totalsynctimes will change to tag. > It is difficult to show in grafana. We may get wrong panel, though only one > metric is set. > !截屏2022-05-26 下午8.15.50.png|width=562,height=236! -- This message was sent by Atlassian Jira (v8.20.7#820007) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org