def process(self, scraper_config, metric_transformers=None):
    '\n        Polls the data from Prometheus and submits them as Datadog metrics.\n        `endpoint` is the metrics endpoint to use to poll metrics from Prometheus\n\n        Note that if the instance has a `tags` attribute, it will be pushed\n        automatically as additional custom tags and added to the metrics\n        '
    transformers = scraper_config['_default_metric_transformers'].copy()
    if metric_transformers:
        transformers.update(metric_transformers)
    for metric in self.scrape_metrics(scraper_config):
        self.process_metric(metric, scraper_config, metric_transformers=transformers)
    scraper_config['_successfully_executed'] = True
Polls the data from Prometheus and submits them as Datadog metrics.
`endpoint` is the metrics endpoint to use to poll metrics from Prometheus

Note that if the instance has a `tags` attribute, it will be pushed
automatically as additional custom tags and added to the metrics
def process(self, scraper_config, metric_transformers=None):
    '\n        Polls the data from Prometheus and submits them as Datadog metrics.\n        `endpoint` is the metrics endpoint to use to poll metrics from Prometheus\n\n        Note that if the instance has a `tags` attribute, it will be pushed\n        automatically as additional custom tags and added to the metrics\n        '
    transformers = scraper_config['_default_metric_transformers'].copy()
    if metric_transformers:
        transformers.update(metric_transformers)
    for metric in self.scrape_metrics(scraper_config):
        self.process_metric(metric, scraper_config, metric_transformers=transformers)
    scraper_config['_successfully_executed'] = True