(self)
Retrieve stats from kubelet.
Retrieve stats from kubelet.
Retrieve stats from kubelet .
def _retrieve_stats(self):
        """
        Retrieve stats from kubelet.
        """
        try:
            stats_response = self.perform_kubelet_query(self.stats_url)
            stats_response.raise_for_status()
            return stats_response.json()
        except Exception as e:
            self.log.warning('GET on kubelet s `/stats/summary` failed: %s', e)
            return {}
def _retrieve_stats ( self ) : try : stats_response = self . perform_kubelet_query ( self . stats_url ) stats_response . raise_for_status ( ) return stats_response . json ( ) except Exception as e : self . log . warning ( 'GET on kubelet s `/stats/summary` failed: %s' , e ) return { }