Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query Regarding Custom Metrics For Python Backend #7204

Open
AniForU opened this issue May 10, 2024 · 1 comment
Open

Query Regarding Custom Metrics For Python Backend #7204

AniForU opened this issue May 10, 2024 · 1 comment
Labels
question Further information is requested

Comments

@AniForU
Copy link

AniForU commented May 10, 2024

Is your feature request related to a problem? Please describe.
We are trying to use Python Backend of Triton server. We are using Model.py and writing our logic and model usage inside it. I want to know how can we use metrics in Python backend so that it can be retrieved from deployed Triton Server.

Describe the solution you'd like
Model.py file could accompdate something like

Import triton_python_backend_utils as pb_utils
.....
execute()
internal_process_key = pb_utils.Metrics("key_for_prometheus")

Someprocess....

internal_process_key.inc()

Describe alternatives you've considered
Not yet as, could not find how this could be used

@krishung5 krishung5 added the question Further information is requested label May 10, 2024
@krishung5
Copy link
Contributor

Hi @AniForU, the custom metrics support in Python backend utilizes the in-process Triton C API under the hood, so you should be able to retrieve the custom metrics by any of the metrics endpoint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Development

No branches or pull requests

2 participants