m3
m3 copied to clipboard
[feat/query] Update the Prometheus-related code to utilize the new annotations package, and adjust the signatures of the query methods to support context passing.
trafficstars
This PR Update the Prometheus-related code to support UTF - 8 for metric and label names, utilize the new annotations package, and adjust the signatures of the query methods to support context passing.
What this PR does / why we need it: When a dot (.) is included in metrics or labels, it will cause the query to fail and prevent the retrieval of metrics. Fixes #
Special notes for your reviewer: No Does this PR introduce a user-facing and/or backwards incompatible change?: No
Does this PR require updating code package or user-facing documentation?: Yes.However, my English is not very good, and I need assistance with updating the documentation.