You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Create a counter with name 'LoopCount' and dimensions, initial value
metrics.add_counter('LoopCount', 1, None, dimensions)
# Increment counter by 2
metrics.add_counter('LoopCount', 2 , None, dimensions)
# Decrement counter by 1
metrics.add_counter('LoopCount', -1, None, dimensions)
I tried to copy this example to my custom handler:
When I call API for inference I got an error in the terminal:
2024-02-28T15:23:57,011 [ERROR] W-9000-doc_model_1.0-stdout org.pytorch.serve.wlm.WorkerLifeCycle - Failed to parse metrics line: "[METRICS]Failed to update metric with name:LoopCount and dimensions: ModelName:doc_model,Level:Model with value: -1: Counter metric update value cannot be negative".
Suggest a potential alternative/fix
No response
The text was updated successfully, but these errors were encountered:
馃摎 The doc issue
The example in the section Add Counter based metrics shows how to add custom Counter metric:
I tried to copy this example to my custom handler:
When I call API for inference I got an error in the terminal:
Suggest a potential alternative/fix
No response
The text was updated successfully, but these errors were encountered: