@@ -2648,7 +2648,7 @@ TRITONSERVER_MetricFamilyDelete(struct TRITONSERVER_MetricFamily* family);
26482648
26492649/// Get the TRITONSERVER_MetricKind of the metric family.
26502650///
2651- /// \param metric The metric family object to query.
2651+ /// \param family The metric family object to query.
26522652/// \param kind Returns the TRITONSERVER_MetricKind of metric.
26532653/// \return a TRITONSERVER_Error indicating success or failure.
26542654TRITONSERVER_DECLSPEC struct TRITONSERVER_Error *
@@ -2664,10 +2664,12 @@ TRITONSERVER_GetMetricFamilyKind(
26642664TRITONSERVER_DECLSPEC struct TRITONSERVER_Error * TRITONSERVER_MetricArgsNew (
26652665 struct TRITONSERVER_MetricArgs * * args );
26662666
2667- /// Set metric args with prometheus histogram metric parameter.
2667+ /// Set metric args with histogram metric parameter.
26682668///
26692669/// \param args The metric args object to set.
2670- /// \param buckets The array of bucket boundaries.
2670+ /// \param buckets The array of bucket boundaries for the expected range of
2671+ /// observed values.
2672+ ///
26712673/// \param buckets_count The number of bucket boundaries.
26722674/// \return a TRITONSERVER_Error indicating success or failure.
26732675TRITONSERVER_DECLSPEC struct TRITONSERVER_Error *
@@ -2732,10 +2734,9 @@ TRITONSERVER_DECLSPEC struct TRITONSERVER_Error* TRITONSERVER_MetricDelete(
27322734 struct TRITONSERVER_Metric * metric );
27332735
27342736/// Get the current value of a metric object.
2735- /// Supports metrics of kind TRITONSERVER_METRIC_KIND_COUNTER,
2736- /// TRITONSERVER_METRIC_KIND_GAUGE, TRITONSERVER_METRIC_KIND_HISTOGRAM, and
2737- /// returns TRITONSERVER_ERROR_UNSUPPORTED for unsupported
2738- /// TRITONSERVER_MetricKind.
2737+ /// Supports metrics of kind TRITONSERVER_METRIC_KIND_COUNTER
2738+ /// and TRITONSERVER_METRIC_KIND_GAUGE, and returns
2739+ /// TRITONSERVER_ERROR_UNSUPPORTED for unsupported TRITONSERVER_MetricKind.
27392740///
27402741/// \param metric The metric object to query.
27412742/// \param value Returns the current value of the metric object.
@@ -2756,9 +2757,8 @@ TRITONSERVER_DECLSPEC struct TRITONSERVER_Error* TRITONSERVER_MetricValue(
27562757TRITONSERVER_DECLSPEC struct TRITONSERVER_Error * TRITONSERVER_MetricIncrement (
27572758 struct TRITONSERVER_Metric * metric , double value );
27582759
2759- /// Set the current value of metric to value or observe the value to metric.
2760- /// Supports metrics of kind TRITONSERVER_METRIC_KIND_GAUGE and
2761- /// TRITONSERVER_METRIC_KIND_HISTOGRAM. Returns
2760+ /// Set the current value of metric to value.
2761+ /// Supports metrics of kind TRITONSERVER_METRIC_KIND_GAUGE and returns
27622762/// TRITONSERVER_ERROR_UNSUPPORTED for unsupported TRITONSERVER_MetricKind.
27632763///
27642764/// \param metric The metric object to update.
@@ -2767,6 +2767,16 @@ TRITONSERVER_DECLSPEC struct TRITONSERVER_Error* TRITONSERVER_MetricIncrement(
27672767TRITONSERVER_DECLSPEC struct TRITONSERVER_Error * TRITONSERVER_MetricSet (
27682768 struct TRITONSERVER_Metric * metric , double value );
27692769
2770+ /// Sample an observation and count it to the appropriate bucket of a metric.
2771+ /// Supports metrics of kind TRITONSERVER_METRIC_KIND_HISTOGRAM and returns
2772+ /// TRITONSERVER_ERROR_UNSUPPORTED for unsupported TRITONSERVER_MetricKind.
2773+ ///
2774+ /// \param metric The metric object to update.
2775+ /// \param value The amount for metric to sample observation.
2776+ /// \return a TRITONSERVER_Error indicating success or failure.
2777+ TRITONSERVER_DECLSPEC struct TRITONSERVER_Error * TRITONSERVER_MetricObserve (
2778+ struct TRITONSERVER_Metric * metric , double value );
2779+
27702780/// Get the TRITONSERVER_MetricKind of metric of its corresponding family.
27712781///
27722782/// \param metric The metric object to query.
0 commit comments