File tree Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -57,20 +57,9 @@ type ProcessCollectorOpts struct {
57
57
// collector for the current process with an empty namespace string and no error
58
58
// reporting.
59
59
//
60
- // Currently, the collector depends on a Linux-style proc filesystem and
61
- // therefore only exports metrics for Linux.
62
- //
63
- // Note: An older version of this function had the following signature:
64
- //
65
- // NewProcessCollector(pid int, namespace string) Collector
66
- //
67
- // Most commonly, it was called as
68
- //
69
- // NewProcessCollector(os.Getpid(), "")
70
- //
71
- // The following call of the current version is equivalent to the above:
72
- //
73
- // NewProcessCollector(ProcessCollectorOpts{})
60
+ // The collector only works on operating systems with a Linux-style proc
61
+ // filesystem and on Microsoft Windows. On other operating systems, it will not
62
+ // collect any metrics.
74
63
func NewProcessCollector (opts ProcessCollectorOpts ) Collector {
75
64
ns := ""
76
65
if len (opts .Namespace ) > 0 {
You can’t perform that action at this time.
0 commit comments