From 781fb460c767bc6b6374e733a40cede5bb3834de Mon Sep 17 00:00:00 2001 From: Vu Cong Tuan Date: Thu, 1 Jun 2017 08:08:24 +0700 Subject: [PATCH] Trivial fix typos Change-Id: I0525ee88d8796c4cf369720c7130874eba42fa10 --- monasca_agent/collector/checks/collector.py | 2 +- monasca_agent/collector/checks_d/libvirt.py | 2 +- monasca_setup/detection/plugins/libvirt.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/monasca_agent/collector/checks/collector.py b/monasca_agent/collector/checks/collector.py index 7e5f671d..9c8031b4 100644 --- a/monasca_agent/collector/checks/collector.py +++ b/monasca_agent/collector/checks/collector.py @@ -142,7 +142,7 @@ class Collector(util.Dimensions): def run_single_check(self, check): """Run a single check - returns number of measurement collected, colleciton time + returns number of measurement collected, collection time """ sub_timer = util.Timer() diff --git a/monasca_agent/collector/checks_d/libvirt.py b/monasca_agent/collector/checks_d/libvirt.py index 8a212837..5821f535 100644 --- a/monasca_agent/collector/checks_d/libvirt.py +++ b/monasca_agent/collector/checks_d/libvirt.py @@ -756,7 +756,7 @@ class LibvirtCheck(AgentCheck): if self.init_config.get('vm_network_check_enable'): self._inspect_network(insp, inst, inst_name, instance_cache, metric_cache, dims_customer, dims_operations) - # Memory utilizaion + # Memory utilization # (req. balloon driver; Linux kernel param CONFIG_VIRTIO_BALLOON) try: mem_stats = inst.memoryStats() diff --git a/monasca_setup/detection/plugins/libvirt.py b/monasca_setup/detection/plugins/libvirt.py index f2576de3..bc6aba5b 100644 --- a/monasca_setup/detection/plugins/libvirt.py +++ b/monasca_setup/detection/plugins/libvirt.py @@ -29,7 +29,7 @@ metadata = ['scale_group'] # Include scale group dimension for customer metrics. customer_metadata = ['scale_group'] # List 'ping' commands (paths and parameters) in order of preference. -# The plugin will use the first fuctional command. 127.0.0.1 will be appended. +# The plugin will use the first functional command. 127.0.0.1 will be appended. ping_options = [["/usr/bin/fping", "-n", "-c1", "-t250", "-q"], ["/sbin/fping", "-n", "-c1", "-t250", "-q"], ["/bin/ping", "-n", "-c1", "-w1", "-q"]] @@ -53,7 +53,7 @@ class Libvirt(Plugin): def _detect(self): """Set self.available True if the process and config file are detected """ - # Detect Agent's OS username by getting the group owner of confg file + # Detect Agent's OS username by getting the group owner of config file try: gid = os.stat('/etc/monasca/agent/agent.yaml').st_gid self.agent_user = grp.getgrgid(gid)[0]