m3 icon indicating copy to clipboard operation
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.

Open xufeng0832 opened this issue 9 months ago • 1 comments
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.

xufeng0832 avatar Jan 24 '25 04:01 xufeng0832

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jan 24 '25 04:01 CLAassistant