From 807b78a87103d318c6f3e9e8cb9c0859b43908d7 Mon Sep 17 00:00:00 2001 From: Nicholas J Date: Fri, 9 Oct 2015 13:34:01 -0400 Subject: [PATCH] Update help text to match client_golang Good Afternoon! This change is to start standardizing the help text between client libraries. Equivalent in [client_golang](https://github.com/prometheus/client_golang/blob/fcd2986466589bcf7a411ec3b52d85a8df9dcc8b/prometheus/process_collector.go#L69) Related to: https://github.com/prometheus/client_golang/issues/171 Take care, Nicholas --- prometheus_client/process_collector.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prometheus_client/process_collector.py b/prometheus_client/process_collector.py index 5c906c91..56aa6561 100644 --- a/prometheus_client/process_collector.py +++ b/prometheus_client/process_collector.py @@ -62,8 +62,8 @@ def collect(self): with open(os.path.join(pid, 'stat')) as stat: parts = (stat.read().split(')')[-1].split()) vmem = core.GaugeMetricFamily(self._prefix + 'virtual_memory_bytes', - 'Virtual memory size in bytes', value=float(parts[20])) - rss = core.GaugeMetricFamily(self._prefix + 'resident_memory_bytes', 'Resident memory size in bytes', value=float(parts[21]) * _PAGESIZE) + 'Virtual memory size in bytes.', value=float(parts[20])) + rss = core.GaugeMetricFamily(self._prefix + 'resident_memory_bytes', 'Resident memory size in bytes.', value=float(parts[21]) * _PAGESIZE) start_time_secs = float(parts[19]) / self._ticks start_time = core.GaugeMetricFamily(self._prefix + 'start_time_seconds', 'Start time of the process since unix epoch in seconds.', value=start_time_secs + self._btime)