Documentation
¶
Overview ¶
Package metrics provides the metrics for the application.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Prometheus ¶ added in v0.3.3
func Prometheus() string
Prometheus returns metrics formatted in Prometheus exposition format.
Types ¶
type RequestCount ¶
RequestCount contains the request count.
type RequestCountSnapshot ¶
type RequestCountSnapshot struct {
Allowed uint64 `json:"allowed"`
Denied uint64 `json:"denied"`
Invalid uint64 `json:"invalid"`
}
RequestCountSnapshot contains the snapshot of the request count.
Click to show internal directories.
Click to hide internal directories.