Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[kubernetes] Remove unused function #2157

Merged
merged 1 commit into from
Dec 21, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[kubernetes] Remove unused function
Remi Hakim committed Dec 18, 2015

Verified

This commit was signed with the committer’s verified signature.
addaleax Anna Henningsen
commit a888110cb5f3e8d56c0d00708b54d6624550d559
14 changes: 0 additions & 14 deletions checks.d/kubernetes.py
Original file line number Diff line number Diff line change
@@ -3,8 +3,6 @@
"""
# stdlib
import numbers
import socket
import struct
from fnmatch import fnmatch
import re

@@ -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