Skip to content

Commit

Permalink
set limit on all children checks to 0 (unlimited)
Browse files Browse the repository at this point in the history
  • Loading branch information
xvello committed Aug 31, 2018
1 parent f5a2da3 commit fd0a0d4
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions gitlab/datadog_checks/gitlab/gitlab.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class GitlabCheck(PrometheusCheck):
EVENT_TYPE = SOURCE_TYPE_NAME = 'gitlab'
DEFAULT_CONNECT_TIMEOUT = 5
DEFAULT_RECEIVE_TIMEOUT = 15
DEFAULT_METRIC_LIMIT = 0

PROMETHEUS_SERVICE_CHECK_NAME = 'gitlab.prometheus_endpoint_up'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class GitlabRunnerCheck(PrometheusCheck):

DEFAULT_CONNECT_TIMEOUT = 5
DEFAULT_RECEIVE_TIMEOUT = 15
DEFAULT_METRIC_LIMIT = 0

def __init__(self, name, init_config, agentConfig, instances=None):
super(GitlabRunnerCheck, self).__init__(name, init_config, agentConfig, instances)
Expand Down
1 change: 1 addition & 0 deletions istio/datadog_checks/istio/istio.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
class Istio(PrometheusCheck):
MIXER_NAMESPACE = 'istio.mixer'
MESH_NAMESPACE = 'istio.mesh'
DEFAULT_METRIC_LIMIT = 0

def __init__(self, name, init_config, agentConfig, instances=None):
super(Istio, self).__init__(name, init_config, agentConfig, instances)
Expand Down
2 changes: 2 additions & 0 deletions kube_dns/datadog_checks/kube_dns/kube_dns.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ class KubeDNSCheck(PrometheusCheck):
"""
Collect kube-dns metrics from Prometheus
"""
DEFAULT_METRIC_LIMIT = 0

def __init__(self, name, init_config, agentConfig, instances=None):
super(KubeDNSCheck, self).__init__(name, init_config, agentConfig, instances)
self.NAMESPACE = 'kubedns'
Expand Down
1 change: 1 addition & 0 deletions kube_proxy/datadog_checks/kube_proxy/kube_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from datadog_checks.checks.prometheus import GenericPrometheusCheck

class KubeProxyCheck(GenericPrometheusCheck):
DEFAULT_METRIC_LIMIT = 0

def __init__(self, name, init_config, agentConfig, instances=None):
super(KubeProxyCheck, self).__init__(
Expand Down
3 changes: 1 addition & 2 deletions kubelet/datadog_checks/kubelet/kubelet.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ class KubeletCheck(AgentCheck, CadvisorScraper):
"""
Collect metrics from Kubelet.
"""

DEFAULT_METRIC_LIMIT = 6000
DEFAULT_METRIC_LIMIT = 0

def __init__(self, name, init_config, agentConfig, instances=None):
super(KubeletCheck, self).__init__(name, init_config, agentConfig, instances)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class KubernetesState(PrometheusCheck):
Collect kube-state-metrics metrics in the Prometheus format
See https://github.com/kubernetes/kube-state-metrics
"""
DEFAULT_METRIC_LIMIT = 20000
DEFAULT_METRIC_LIMIT = 0

def __init__(self, name, init_config, agentConfig, instances=None):
super(KubernetesState, self).__init__(name, init_config, agentConfig, instances)
Expand Down
2 changes: 2 additions & 0 deletions linkerd/datadog_checks/linkerd/linkerd.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ class LinkerdCheck(GenericPrometheusCheck):
"""
Collect linkerd metrics from Prometheus
"""
DEFAULT_METRIC_LIMIT = 0

def __init__(self, name, init_config, agentConfig, instances=None):
labels_mapper = {
'rt' : 'linkerd_router',
Expand Down

0 comments on commit fd0a0d4

Please sign in to comment.