(self, instance)
return process_pilot_instance
Grab the pilot scraper from the dict and return it if it exists,
        otherwise create the scraper and add it to the dict.
Grab the pilot scraper from the dict and return it if it exists,
        otherwise create the scraper and add it to the dict.
Grab the pilot scraper from the dict and return it if it exists otherwise create the scraper and add it to the dict .
def _create_process_pilot_instance(self, instance):
        """
        Grab the pilot scraper from the dict and return it if it exists,
        otherwise create the scraper and add it to the dict.
        """
        endpoint = instance.get('pilot_endpoint')

        process_pilot_instance = deepcopy(instance)
        PILOT_METRICS.update(GENERIC_METRICS)
        process_pilot_instance.update(
            {
                'namespace': PILOT_NAMESPACE,
                'prometheus_url': endpoint,
                'metrics': [PILOT_METRICS] + instance.get('metrics', []),
            }
        )
        return process_pilot_instance
def _create_process_pilot_instance ( self , instance ) : endpoint = instance . get ( 'pilot_endpoint' ) process_pilot_instance = deepcopy ( instance ) PILOT_METRICS . update ( GENERIC_METRICS ) process_pilot_instance . update ( { 'namespace' : PILOT_NAMESPACE , 'prometheus_url' : endpoint , 'metrics' : [ PILOT_METRICS ] + instance . get ( 'metrics' , [ ] ) , } ) return process_pilot_instance