Documentation
¶
Overview ¶
Package global is used to set up a global mediocre_caddy_plugins App, which is primarily used for global options.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
Metrics Metrics `json:"metrics"`
}
App describes all global configuration options of the top-level caddy.App provided by this module.
type MetricHistogram ¶
type MetricHistogram struct { Name string `json:"name"` Help string `json:"help"` Buckets []float64 `json:"buckets"` Labels []string `json:"labels"` }
MetricHistogram describes a histogram metric which will be registered with Caddy's prometheus registry.
func (*MetricHistogram) UnmarshalCaddyfile ¶
func (mh *MetricHistogram) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
type Metrics ¶
type Metrics struct { Histograms []MetricHistogram `json:"histograms"` // contains filtered or unexported fields }
Metrics describe all global metrics used within a running Caddy instance.
func (Metrics) HistogramByName ¶
func (m Metrics) HistogramByName(name string) (*prometheus.HistogramVec, bool)
HistogramByName returns the prometheus histogram object configured with the given name.
Source Files
¶
- app.go
- metrics.go
Click to show internal directories.
Click to hide internal directories.