update#47
Conversation
| metrics=[HPAMetricTriggerArgsArgs( | ||
| type="prometheus", # external Prometheus metric | ||
| target_value="50000000", # absolute target value (e.g. 50 req/s) | ||
| target_value="50", # absolute target value (e.g. 50 req/s) |
There was a problem hiding this comment.
💡 Quality: Inconsistent target_value comment in Python example
In the Python example (sdk/go/devzero/README.md line 1244), the comment still says # absolute target value (e.g. 50 req/s) while the TypeScript (line 1189) and Go (line 1287) examples were updated to say // absolute target value (e.g. 50 MB/s of network throughput). The Python comment should be updated to match.
Additionally, the PromQL query in all examples is sum(rate(http_requests_total[2m])) which measures HTTP request rate — not network throughput. The new comment "50 MB/s of network throughput" is misleading when paired with that query. Consider either updating the query to match the comment, or reverting the comment to something query-appropriate like "50 req/s".
Keep comments consistent across all language examples, using a description that matches the PromQL query:
target_value="50", # absolute target value (e.g. 50 req/s)
Was this helpful? React with 👍 / 👎
Code Review 👍 Approved with suggestions 0 resolved / 1 findingsSimplifies primary metric values and updates documentation examples to reflect the new naming convention. Please address the inconsistent target_value comment in the Python example. 💡 Quality: Inconsistent target_value comment in Python example📄 sdk/go/devzero/README.md:1244 📄 sdk/go/devzero/README.md:1189 📄 sdk/go/devzero/README.md:1287 In the Python example (sdk/go/devzero/README.md line 1244), the comment still says Additionally, the PromQL query in all examples is Keep comments consistent across all language examples, using a description that matches the PromQL query🤖 Prompt for agentsWas this helpful? React with 👍 / 👎 | Gitar |
update on pmetrics type !
Summary by Gitar
primaryMetricvalues fromHPA_METRIC_TYPE_MEMORYtomemoryformat in README filestargetValuedescriptionThis will update automatically on new commits.