MCPcopy
hub / github.com/caddyserver/caddy / AdminMetrics

Struct AdminMetrics

modules/metrics/adminmetrics.go:35–39  ·  view source on GitHub ↗

AdminMetrics is a module that serves a metrics endpoint so that any gathered metrics can be exposed for scraping. This module is not configurable, and is permanently mounted to the admin API endpoint at "/metrics". See the Metrics module for a configurable endpoint that is usable if the Admin API is

Source from the content-addressed store, hash-verified

33// See the Metrics module for a configurable endpoint that is usable if the
34// Admin API is disabled.
35type AdminMetrics struct {
36 registry *prometheus.Registry
37
38 metricsHandler http.Handler
39}
40
41// CaddyModule returns the Caddy module information.
42func (AdminMetrics) CaddyModule() caddy.ModuleInfo {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected