Documentation ¶
Index ¶
- func NewLogger() (*zap.Logger, error)
- func SetAddress(addr string) func(*Exporter) error
- func SetEndpoint(rawurl string) func(*Exporter) error
- func SetFastcgi(rawurl string) func(*Exporter) error
- func SetLogger(l *zap.Logger) func(*Exporter) error
- func SetMetricsEndpoint(path string) func(*Exporter) error
- type Exporter
- type OptionsFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetAddress ¶
SetAddress creates a function that will set the listening address. Generally only used when create a new Exporter.
func SetEndpoint ¶
SetEndpoint creates a function that will set the URL endpoint to contact php-fpm. Generally only used when create a new Exporter.
func SetFastcgi ¶ added in v0.4.0
SetFastcgi creates a function that will set the fastcgi URL endpoint to contact php-fpm. If this is set, then fastcgi is used rather than HTTP. Generally only used when create a new Exporter.
func SetLogger ¶
SetLogger creates a function that will set the logger. Generally only used when create a new Exporter.
func SetMetricsEndpoint ¶ added in v0.6.0
SetMetricsEndpoint sets the path under which to expose metrics. Generally only used when create a new Exporter.
Types ¶
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
Exporter handles serving the metrics
type OptionsFunc ¶
OptionsFunc is a function passed to new for setting options on a new Exporter.