From f61dbeadeda7e4b6336b49de8753a301c0d80b6f Mon Sep 17 00:00:00 2001 From: beorn7 Date: Fri, 14 Jun 2019 12:31:33 +0200 Subject: [PATCH] Update doc comment of NewProcessCollector - Now also works on MS Windows. - The hints for updating from older versions is obsolete by now. Signed-off-by: beorn7 --- prometheus/process_collector.go | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/prometheus/process_collector.go b/prometheus/process_collector.go index 5d01c31..9b80979 100644 --- a/prometheus/process_collector.go +++ b/prometheus/process_collector.go @@ -57,20 +57,9 @@ type ProcessCollectorOpts struct { // collector for the current process with an empty namespace string and no error // reporting. // -// Currently, the collector depends on a Linux-style proc filesystem and -// therefore only exports metrics for Linux. -// -// Note: An older version of this function had the following signature: -// -// NewProcessCollector(pid int, namespace string) Collector -// -// Most commonly, it was called as -// -// NewProcessCollector(os.Getpid(), "") -// -// The following call of the current version is equivalent to the above: -// -// NewProcessCollector(ProcessCollectorOpts{}) +// The collector only works on operating systems with a Linux-style proc +// filesystem and on Microsoft Windows. On other operating systems, it will not +// collect any metrics. func NewProcessCollector(opts ProcessCollectorOpts) Collector { ns := "" if len(opts.Namespace) > 0 {