model_analyzer/record/metrics_manager.py
def _get_triton_metrics_gpus(self):
        """
        Uses prometheus to request a list of GPU UUIDs corresponding to the GPUs
        visible to Triton Inference Server
        Parameters
        ----------
        config : namespace
            The arguments passed into the CLI
        """

        triton_prom_str = str(requests.get(
            self._config.triton_metrics_url).content,
                              encoding='ascii')
        metrics = text_string_to_metric_families(triton_prom_str)

        triton_gpus = []
        for metric in metrics:
            if metric.name == 'nv_gpu_utilization':
                for sample in metric.samples:
                    triton_gpus.append(sample.labels['gpu_uuid'])

        return triton_gpus

        Uses prometheus to request a list of GPU UUIDs corresponding to the GPUs
        visible to Triton Inference Server
        Parameters
        ----------
        config : namespace
            The arguments passed into the CLI
        
Uses prometheus to request a list of GPU UUIDs corresponding to the GPUs
visible to Triton Inference Server
Parameters

config : namespace
The arguments passed into the CLI
Uses prometheus to request a list of GPU UUIDs corresponding to the GPUs visible to Triton Inference Server Parameters config : namespace The arguments passed into the CLI
def _get_triton_metrics_gpus(self):
        triton_prom_str = str(requests.get(
            self._config.triton_metrics_url).content,
                              encoding='ascii')
        metrics = text_string_to_metric_families(triton_prom_str)
        triton_gpus = []
        for metric in metrics:
            if metric.name == 'nv_gpu_utilization':
                for sample in metric.samples:
                    triton_gpus.append(sample.labels['gpu_uuid'])
        return triton_gpus
def _get_triton_metrics_gpus ( self ) : triton_prom_str = str ( requests . get ( self . _config . triton_metrics_url ) . content , encoding = 'ascii' ) metrics = text_string_to_metric_families ( triton_prom_str ) triton_gpus = [ ] for metric in metrics : if metric . name == 'nv_gpu_utilization' : for sample in metric . samples : triton_gpus . append ( sample . labels [ 'gpu_uuid' ] ) return triton_gpus
Uses prometheus to request a list of GPU UUIDs corresponding to the GPUs
visible to Triton Inference Server
Parameters
Uses prometheus to request a list of GPU UUIDs corresponding to the GPUs visible to Triton Inference Server Parameters
"""
        Uses prometheus to request a list of GPU UUIDs corresponding to the GPUs
        visible to Triton Inference Server
        Parameters
        ----------
        config : namespace
            The arguments passed into the CLI
        """
self