Skip to content

Commit

Permalink
Add new metric type to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
yinggeh committed Aug 16, 2024
1 parent 8108119 commit e361812
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1656,12 +1656,12 @@ import triton_python_backend_utils as pb_utils
class TritonPythonModel:
def initialize(self, args):
# Create a MetricFamily object to report the latency of the model
# execution. The 'kind' parameter must be either 'COUNTER' or
# 'GAUGE'.
# execution. The 'kind' parameter must be either 'COUNTER',
# 'GAUGE' or 'HISTOGRAM'.
self.metric_family = pb_utils.MetricFamily(
name="preprocess_latency_ns",
description="Cumulative time spent pre-processing requests",
kind=pb_utils.MetricFamily.COUNTER # or pb_utils.MetricFamily.GAUGE
kind=pb_utils.MetricFamily.COUNTER
)

# Create a Metric object under the MetricFamily object. The 'labels'
Expand Down

0 comments on commit e361812

Please sign in to comment.