Skip to content

Commit

Permalink
[core] Make sure to flush service metadata
Browse files Browse the repository at this point in the history
Otherwise they will just leak. No need to store them or send them in the agent payload though (they are empty).
  • Loading branch information
Remi Hakim committed Apr 12, 2016
1 parent 0c2afcd commit a90668a
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 a90668a

Please sign in to comment.