Documentation
¶
Index ¶
Constants ¶
const (
// DefaultPath is the default HTTP path for the metrics endpoint.
DefaultPath = "/metrics"
)
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
NewService creates a metrics Service that exposes Prometheus metrics over HTTP. It serves from the TNET custom registry rather than the default one so that process metrics are available on all platforms.
Types ¶
type Option ¶
type Option func(*options)
Option configures the metrics service.
func AutherOption ¶
func AutherOption(auther auth.Authenticator) Option
AutherOption sets the authenticator for the metrics endpoint.
func PathOption ¶
PathOption sets the HTTP path for the metrics endpoint.