8000 Merge pull request #57 from njohns-grovo/patch-1 · samdroid-apps/client_python@1499349 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1499349

Browse files
committed
Merge pull request prometheus#57 from njohns-grovo/patch-1
Update help text to match client_golang
2 parents de4003d + 807b78a commit 1499349

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

prometheus_client/process_collector.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ def collect(self):
6262
with open(os.path.join(pid, 'stat')) as stat:
6363
parts = (stat.read().split(')')[-1].split())
6464
vmem = core.GaugeMetricFamily(self._prefix + 'virtual_memory_bytes',
65-
'Virtual memory size in bytes', value=float(parts[20]))
66-
rss = core.GaugeMetricFamily(self._prefix + 'resident_memory_bytes', 'Resident memory size in bytes', value=float(parts[21]) * _PAGESIZE)
65+
'Virtual memory size in bytes.', value=float(parts[20]))
66+
rss = core.GaugeMetricFamily(self._prefix + 'resident_memory_bytes', 'Resident memory size in bytes.', value=float(parts[21]) * _PAGESIZE)
6767
start_time_secs = float(parts[19]) / self._ticks
6868
start_time = core.GaugeMetricFamily(self._prefix + 'start_time_seconds',
6969
'Start time of the process since unix epoch in seconds.', value=start_time_secs + self._btime)

0 commit comments

Comments
 (0)
0