(self, endpoint, **kwargs)
Polls the data from prometheus and pushes them as gauges
        `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
Polls the data from prometheus and pushes them as gauges
        `endpoint` is the metrics endpoint to use to poll metrics from Prometheus
Polls the data from prometheus and pushes them as gauges endpoint is the metrics endpoint to use to poll metrics from Prometheus
def process(self, endpoint, **kwargs):
        """
        Polls the data from prometheus and pushes them as gauges
        `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
        """
        instance = kwargs.get('instance')
        if instance:
            kwargs['custom_tags'] = instance.get('tags', [])
        else:
            instance = {}

        for metric in self.scrape_metrics(endpoint, instance=instance):
            self.process_metric(metric, **kwargs)
def process ( self , endpoint , * * kwargs ) : instance = kwargs . get ( 'instance' ) if instance : kwargs [ 'custom_tags' ] = instance . get ( 'tags' , [ ] ) else : instance = { } for metric in self . scrape_metrics ( endpoint , instance = instance ) : self . process_metric ( metric , * * kwargs )