Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 12, 05:45 UTC
metrics: add `go` and `process` collectors (#6704)
Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>
Mohammed Al Sahaf committed
Nov 23, 2024 at 02:38 UTC
1d106fa14d7bc150acb1107ea7d034d669f9f80d
1 file changed
+2
context.go
+2
@@ -110,6 +110,8 @@ func (ctx *Context) GetMetricsRegistry() *prometheus.Registry {
110
func (ctx *Context) initMetrics() {
111
ctx.metricsRegistry.MustRegister(
112
collectors.NewBuildInfoCollector(),
113
+ collectors.NewProcessCollector(collectors.ProcessCollectorOpts{}),
114
+ collectors.NewGoCollector(),
115
adminMetrics.requestCount,
116
adminMetrics.requestErrors,
117
globalMetrics.configSuccess,