Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Prometheus ¶
func Prometheus(config PrometheusConfiguration) gin.HandlerFunc
Types ¶
type PrometheusConfiguration ¶
type PrometheusConfiguration struct { Collectors *[]prometheus.Collector // User defined Collectors Gatherers *[]prometheus.Gatherer // User defined Gatherers Job string // Job Name Address string // Address of the Prometheus Push Gateway BasicAuthUser string // Http Basic Auth User BasicAuthPassword string // Http Basic Auth Password AfterRequest bool // Push metrics before request BeforeRequest bool // Push metrics after request }
Click to show internal directories.
Click to hide internal directories.