pisceslj opened a new issue, #1362: URL: https://github.com/apache/fluss/issues/1362
### Search before asking - [x] I searched in the [issues](https://github.com/alibaba/fluss/issues) and found nothing similar. ### Fluss version 0.7.0 (latest release) ### Please describe the bug 🐞 When enable prometheus metrics reporter, there is a redundant underscore in some metric names, such as in the scope `tabletserver_table_`. eg. HELP fluss_tabletserver_table__totalPrefixLookupRequestsPerSecond totalPrefixLookupRequestsPerSecond (scope: **tabletserver_table_**) TYPE fluss_tabletserver_table__totalPrefixLookupRequestsPerSecond gauge fluss_tabletserver_table__totalPrefixLookupRequestsPerSecond{database="test",cluster_id="fluss",partition="",host="xx_xxx_xxx_x",tablet_type="kv",server_id="2145",table="test",} 0.0 HELP fluss_tabletserver_table__remoteLogCopyErrorPerSecond remoteLogCopyErrorPerSecond (scope: **tabletserver_table_**) TYPE fluss_tabletserver_table__remoteLogCopyErrorPerSecond gauge fluss_tabletserver_table__remoteLogCopyErrorPerSecond{database="test",cluster_id="fluss",partition="",host="xx_xxx_xxx_x",tablet_type="cdc_log",server_id="2145",table="test",} 0.0 HELP fluss_tabletserver_table__failedProduceLogRequestsPerSecond failedProduceLogRequestsPerSecond (scope: **tabletserver_table_**) TYPE fluss_tabletserver_table__failedProduceLogRequestsPerSecond gauge fluss_tabletserver_table__failedProduceLogRequestsPerSecond{database="test",cluster_id="fluss",partition="",host="xx_xxx_xxx_x",tablet_type="log",server_id="2145",table="test",} 0.0 ### Solution Optimize the createLogicalScope method by adding empty groupName checks to avoid unnecessary delimiter concatenation. ### Are you willing to submit a PR? - [x] I'm willing to submit a PR! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
