mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-26 05:33:49 +03:00
metrics: add go
and process
collectors (#6704)
Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>
This commit is contained in:
parent
8c3dd3de70
commit
1d106fa14d
1 changed files with 2 additions and 0 deletions
|
@ -110,6 +110,8 @@ func (ctx *Context) GetMetricsRegistry() *prometheus.Registry {
|
||||||
func (ctx *Context) initMetrics() {
|
func (ctx *Context) initMetrics() {
|
||||||
ctx.metricsRegistry.MustRegister(
|
ctx.metricsRegistry.MustRegister(
|
||||||
collectors.NewBuildInfoCollector(),
|
collectors.NewBuildInfoCollector(),
|
||||||
|
collectors.NewProcessCollector(collectors.ProcessCollectorOpts{}),
|
||||||
|
collectors.NewGoCollector(),
|
||||||
adminMetrics.requestCount,
|
adminMetrics.requestCount,
|
||||||
adminMetrics.requestErrors,
|
adminMetrics.requestErrors,
|
||||||
globalMetrics.configSuccess,
|
globalMetrics.configSuccess,
|
||||||
|
|
Loading…
Reference in a new issue