def get_instance_key(self, instance):
     return AgentIntegrationInstance(self.name or 'openmetrics',
                                     self.cluster_name)
 def get_instance_key(self, instance):
     return AgentIntegrationInstance("kubelet", self.cluster_name)
 def get_instance_key(self, instance):
     return AgentIntegrationInstance("agent-integration", "sample")
def test_check_instance_key():
    check = KubeletCheck('kubelet', None, {}, [{}])
    assert check.get_instance_key({}) == AgentIntegrationInstance('kubelet', 'stubbed-cluster-name')
Ejemplo n.º 5
0
def test_check_instance_key():
    check = OpenMetricsCheck('openmetrics', None, {}, [instance])
    assert check.get_instance_key(instance) == AgentIntegrationInstance(
        'openmetrics', 'stubbed-cluster-name')
def test_check_instance_key(instance):
    check = KubernetesState(CHECK_NAME, {}, {}, [instance])
    assert check.get_instance_key(instance) == AgentIntegrationInstance(
        CHECK_NAME, 'stubbed-cluster-name')
 def get_instance_key(self, instance):
     return AgentIntegrationInstance(self.name or 'kubernetes_state', self.cluster_name)