(self, instance)
return process_mixer_instance
Grab the mixer scraper from the dict and return it if it exists,
        otherwise create the scraper and add it to the dict.
Grab the mixer scraper from the dict and return it if it exists,
        otherwise create the scraper and add it to the dict.
Grab the mixer scraper from the dict and return it if it exists otherwise create the scraper and add it to the dict .
def _create_process_mixer_instance(self, instance):
        """
        Grab the mixer scraper from the dict and return it if it exists,
        otherwise create the scraper and add it to the dict.
        """
        endpoint = instance.get('mixer_endpoint')

        process_mixer_instance = deepcopy(instance)
        MIXER_METRICS.update(GENERIC_METRICS)
        process_mixer_instance.update(
            {
                'namespace': MIXER_NAMESPACE,
                'prometheus_url': endpoint,
                'metrics': [MIXER_METRICS] + instance.get('metrics', []),
                # Defaults that were set when istio was based on PrometheusCheck
                'send_monotonic_counter': instance.get('send_monotonic_counter', False),
                'health_service_check': instance.get('health_service_check', False),
            }
        )
        return process_mixer_instance
def _create_process_mixer_instance ( self , instance ) : endpoint = instance . get ( 'mixer_endpoint' ) process_mixer_instance = deepcopy ( instance ) MIXER_METRICS . update ( GENERIC_METRICS ) process_mixer_instance . update ( { 'namespace' : MIXER_NAMESPACE , 'prometheus_url' : endpoint , 'metrics' : [ MIXER_METRICS ] + instance . get ( 'metrics' , [ ] ) , # Defaults that were set when istio was based on PrometheusCheck 'send_monotonic_counter' : instance . get ( 'send_monotonic_counter' , False ) , 'health_service_check' : instance . get ( 'health_service_check' , False ) , } ) return process_mixer_instance