Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
NewHandler returns a new http.Handler that exposes Prometheus metrics registed in r in the OpenMetrics format.
Types ¶
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
Metrics encapsulates Prometheus metrics of an attack.
func NewMetrics ¶
func NewMetrics() *Metrics
NewMetrics returns a new Metrics instance that must be registered in a Prometheus registry with Register.
func (*Metrics) Register ¶
func (pm *Metrics) Register(r prometheus.Registerer) error
Register registers all Prometheus metrics in r.
Click to show internal directories.
Click to hide internal directories.