(self, instance)
return process_citadel_instance
Grab the citadel scraper from the dict and return it if it exists,
        otherwise create the scraper and add it to the dict.
Grab the citadel scraper from the dict and return it if it exists,
        otherwise create the scraper and add it to the dict.
Grab the citadel scraper from the dict and return it if it exists otherwise create the scraper and add it to the dict .
def _create_process_citadel_instance(self, instance):
        """
        Grab the citadel scraper from the dict and return it if it exists,
        otherwise create the scraper and add it to the dict.
        """
        endpoint = instance.get('citadel_endpoint')

        process_citadel_instance = deepcopy(instance)
        CITADEL_METRICS.update(GENERIC_METRICS)
        process_citadel_instance.update(
            {
                'namespace': CITADEL_NAMESPACE,
                'prometheus_url': endpoint,
                'metrics': [CITADEL_METRICS] + instance.get('metrics', []),
            }
        )
        return process_citadel_instance
def _create_process_citadel_instance ( self , instance ) : endpoint = instance . get ( 'citadel_endpoint' ) process_citadel_instance = deepcopy ( instance ) CITADEL_METRICS . update ( GENERIC_METRICS ) process_citadel_instance . update ( { 'namespace' : CITADEL_NAMESPACE , 'prometheus_url' : endpoint , 'metrics' : [ CITADEL_METRICS ] + instance . get ( 'metrics' , [ ] ) , } ) return process_citadel_instance