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

[Ganglia] Deprecate this integration #1621

Merged
merged 1 commit into from
May 14, 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
7 changes: 7 additions & 0 deletions checks/ganglia.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,20 @@ class Ganglia(Check):

def __init__(self, logger):
Check.__init__(self, logger)
self.deprecation_shown = False

def check(self, agentConfig):
self.logger.debug('Ganglia status: start')
if 'ganglia_host' not in agentConfig or agentConfig['ganglia_host'] == '':
self.logger.debug('ganglia_host configuration not set, skipping ganglia')
return False

if not self.deprecation_shown:
# Just display the deprecation messsage once
self.logger.warning("The Ganglia integration is deprecated and will "
"be removed in a future version of the Datadog Agent")
self.deprecation_shown = True

try:
host = agentConfig['ganglia_host']
port = Ganglia.PORT
Expand Down