Skip to content

Commit

Permalink
Merge pull request #2157 from DataDog/remh/cleanup
Browse files Browse the repository at this point in the history
[kubernetes] Remove unused function
  • Loading branch information
Remi Hakim committed Dec 21, 2015
2 parents 1d7f163 + a888110 commit de4e729
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions checks.d/kubernetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
"""
# stdlib
import numbers
import socket
import struct
from fnmatch import fnmatch
import re

Expand Down Expand Up @@ -53,18 +51,6 @@ def __init__(self, name, init_config, agentConfig, instances=None):
AgentCheck.__init__(self, name, init_config, agentConfig, instances)
self.kube_settings = set_kube_settings(instances[0])

def _get_default_router(self):
try:
with open('/proc/net/route') as f:
for line in f.readlines():
fields = line.strip().split()
if fields[1] == '00000000':
return socket.inet_ntoa(struct.pack('<L', int(fields[2], 16)))
except IOError, e:
self.log.error('Unable to open /proc/net/route: %s', e)

return None

def _perform_kubelet_checks(self, url):
service_check_base = NAMESPACE + '.kubelet.check'
is_ok = True
Expand Down

0 comments on commit de4e729

Please sign in to comment.