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

Only collect relevant Docker metrics by default #1207

Merged
merged 2 commits into from
Nov 21, 2014
Merged

Conversation

LotharSee
Copy link
Contributor

No longer collect all the memory cgroups metrics by default. Focus on the interesting ones which will be available in default dashboards.

Add collect_all_metrics option to collect all the others.

Add collect_all_metrics option to collect all the others
@@ -210,8 +211,8 @@ def _report_containers_metrics(self, containers, instance):
stat_file = self._get_cgroup_file(cgroup["cgroup"], container['Id'], cgroup['file'])
stats = self._parse_cgroup_file(stat_file)
if stats:
for key, (dd_key, metric_type) in cgroup['metrics'].items():
if key in stats:
for key, (dd_key, metric_type, common_metric) in cgroup['metrics'].items():
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick but iteritems would be better.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Absolutely right!

@remh
Copy link
Contributor

remh commented Nov 18, 2014

Looks good beside the tiny nitpick!

@remh remh added the 3 - Done label Nov 18, 2014
@remh remh added this to the 5.1.0 milestone Nov 18, 2014
@remh
Copy link
Contributor

remh commented Nov 21, 2014

👍 💥

remh added a commit that referenced this pull request Nov 21, 2014
Only collect relevant Docker metrics by default
@remh remh merged commit 95d31c4 into master Nov 21, 2014
@remh remh deleted the docker-filter-metrics branch March 23, 2015 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants