8000 Update help text to match client_golang · jinty/client_python@807b78a · GitHub
[go: up one dir, main page]

Skip to content

Commit 807b78a

Browse files
committed
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: prometheus/client_golang#171 Take care, Nicholas
1 parent de4003d commit 807b78a

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