NewGoCollector returns a collector that exports metrics about the current Go process using debug.GCStats (base metrics) and runtime/metrics (both in MemStats style and new ones).
(opts ...func(o *internal.GoCollectorOptions))
| 162 | // NewGoCollector returns a collector that exports metrics about the current Go |
| 163 | // process using debug.GCStats (base metrics) and runtime/metrics (both in MemStats style and new ones). |
| 164 | func NewGoCollector(opts ...func(o *internal.GoCollectorOptions)) prometheus.Collector { |
| 165 | //nolint:staticcheck // Ignore SA1019 until v2. |
| 166 | return prometheus.NewGoCollector(opts...) |
| 167 | } |