Documentation
¶
Overview ¶
Package metrics exports Gatewise service statistics to a caller-owned Prometheus registry. It never registers with global/default registries.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(registry prometheus.Registerer, service Source) error
Register adds one service to registry. Service names must be unique within that registry. The caller owns the HTTP handler and can use promhttp.HandlerFor.
Types ¶
type Source ¶ added in v0.8.0
type Source interface{ Statistics() operation.Statistics }