Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Prometheus ¶
type Prometheus struct { MetricsPath string // contains filtered or unexported fields }
Prometheus contains the metrics gathered by the instance and its web path.
func New ¶
func New(subsystem string) *Prometheus
New generates a new set of metrics with a certain subsystem name.
func (*Prometheus) Use ¶
func (p *Prometheus) Use(e *gin.Engine)
Use adds the middleware to a gin engine.
Click to show internal directories.
Click to hide internal directories.