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
| 33 | // See the Metrics module for a configurable endpoint that is usable if the |
| 34 | // Admin API is disabled. |
| 35 | type AdminMetrics struct { |
| 36 | registry *prometheus.Registry |
| 37 | |
| 38 | metricsHandler http.Handler |
| 39 | } |
| 40 | |
| 41 | // CaddyModule returns the Caddy module information. |
| 42 | func (AdminMetrics) CaddyModule() caddy.ModuleInfo { |
nothing calls this directly
no outgoing calls
no test coverage detected