Documentation ¶
Index ¶
Constants ¶
View Source
const (
// NameSpace is the namespace for the Prometheus metrics
NameSpace = "idmsvc"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct { // HTTPRequestDuration is a histogram that measures the duration of the HTTP requests HTTPRequestDuration *prometheus.HistogramVec // HTTPRequestHeaderSize is a histogram that measures the size of the HTTP request headers. HTTPRequestHeaderSize *prometheus.HistogramVec // HTTPRequestBodySize is a histogram that measures the size of the HTTP request bodys. HTTPRequestBodySize *prometheus.HistogramVec // contains filtered or unexported fields }
Metrics holds all the Prometheus metrics for the application
func NewMetrics ¶
func NewMetrics(reg *prometheus.Registry) *Metrics
NewMetrics creates a new Metrics instance
func (Metrics) Registry ¶
func (m Metrics) Registry() *prometheus.Registry
Click to show internal directories.
Click to hide internal directories.