diff options
author | Mohammed Al Sahaf <[email protected]> | 2024-11-23 02:38:59 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2024-11-23 02:38:59 +0300 |
commit | 1d106fa14d7bc150acb1107ea7d034d669f9f80d (patch) | |
tree | 31e4e9c7f00eff4d684cfff881f723af212dbe5e | |
parent | 8c3dd3de709040d72bd98a756a044c453d7e871e (diff) | |
download | caddy-1d106fa14d7bc150acb1107ea7d034d669f9f80d.tar.gz caddy-1d106fa14d7bc150acb1107ea7d034d669f9f80d.zip |
metrics: add `go` and `process` collectors (#6704)
Signed-off-by: Mohammed Al Sahaf <[email protected]>
-rw-r--r-- | context.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/context.go b/context.go index 5965d0c94..d4d7afacf 100644 --- a/context.go +++ b/context.go @@ -110,6 +110,8 @@ func (ctx *Context) GetMetricsRegistry() *prometheus.Registry { func (ctx *Context) initMetrics() { ctx.metricsRegistry.MustRegister( collectors.NewBuildInfoCollector(), + collectors.NewProcessCollector(collectors.ProcessCollectorOpts{}), + collectors.NewGoCollector(), adminMetrics.requestCount, adminMetrics.requestErrors, globalMetrics.configSuccess, |