Documentation ¶
Overview ¶
Package caddyprom implements a metrics module for Caddy v2 that exports in the Prometheus text format.
The simplest use could be in a Caddyfile like:
{ order prometheus first } localhost prometheus
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct { Addr string `json:"address,omitempty"` // contains filtered or unexported fields }
Metrics -
func (Metrics) CaddyModule ¶
func (Metrics) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
Click to show internal directories.
Click to hide internal directories.