Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrometheusOption ¶
type PrometheusOption func(*prometheusServer)
PrometheusOption defines a functional option type for the Prometheus webserver config.
func PrometheusPath ¶
func PrometheusPath(path string) PrometheusOption
PrometheusPath is a functional option for setting the Prometheus webserver metrics path. Defaults to "/metrics".
func PrometheusPort ¶
func PrometheusPort(port int) PrometheusOption
PrometheusPort is a functional option for setting the Prometheus webserver listening port. Default to 9990.
type Server ¶
func NewPrometheusServer ¶
func NewPrometheusServer(opts ...PrometheusOption) Server
NewPrometheusServer returns a metrics.Server that, when run, exposes an endpoint with Prometheus-specific metrics.
Click to show internal directories.
Click to hide internal directories.