Skip to content

Commit e361812

Browse files
committed
Add new metric type to docs
1 parent 8108119 commit e361812

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1656,12 +1656,12 @@ import triton_python_backend_utils as pb_utils
16561656
class TritonPythonModel:
16571657
def initialize(self, args):
16581658
# Create a MetricFamily object to report the latency of the model
1659-
# execution. The 'kind' parameter must be either 'COUNTER' or
1660-
# 'GAUGE'.
1659+
# execution. The 'kind' parameter must be either 'COUNTER',
1660+
# 'GAUGE' or 'HISTOGRAM'.
16611661
self.metric_family = pb_utils.MetricFamily(
16621662
name="preprocess_latency_ns",
16631663
description="Cumulative time spent pre-processing requests",
1664-
kind=pb_utils.MetricFamily.COUNTER # or pb_utils.MetricFamily.GAUGE
1664+
kind=pb_utils.MetricFamily.COUNTER
16651665
)
16661666

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

0 commit comments

Comments
 (0)