manesioz opened a new issue, #68504:
URL: https://github.com/apache/doris/issues/68504

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Description
   
   **Problem**: `MetricRepo.java` registers `doris_fe_query_total` three times 
under one name: an unlabeled total, a user-labeled copy 
(USER_COUNTER_QUERY_ALL), and, in cloud mode, a cluster_id/cluster_name-labeled 
copy (CloudMetrics.CLUSTER_QUERY_ALL_COUNTER). `query_err` and 
`connection_total` follow the same pattern. 
   
   The Prometheus exporter guidelines prohibit this shape explicitly: 
"my_metric{label="a"} 1, my_metric{label="b"} 6, my_metric{} 7 … Never do 
either of these." See here: 
https://prometheus.io/docs/instrumenting/writing_exporters/#labels
   
   **Proposal**: Give the breakdowns their own names, for example 
`doris_fe_query_total_by_user` and `doris_fe_cloud_cluster_query_total`. Keep 
the unlabeled total as `doris_fe_query_total`. This is a breaking change, 
however. 
   
   
   
   
   
   ### Solution
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to