Skip to content

Commit

Permalink
Merge pull request #2414 from DataDog/remh/fix_memory_leak
Browse files Browse the repository at this point in the history
[core] Make sure to flush service metadata
  • Loading branch information
Remi Hakim committed Apr 14, 2016
2 parents 8358ed4 + a90668a commit 4367af8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions checks/collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,8 @@ def run(self, checksd=None, start_event=True, configs_reloaded=False):
log.debug("\n Agent developer mode stats: \n {0}".format(
Collector._stats_for_display(agent_stats))
)
# Flush metadata for the Agent Metrics check. Otherwise they'll just accumulate and leak.
self._agent_metrics.get_service_metadata()

# Let's send our payload
emitter_statuses = payload.emit(log, self.agentConfig, self.emitters,
Expand Down

0 comments on commit 4367af8

Please sign in to comment.