Documentation
¶
Index ¶
- Variables
- func ActiveUploadDecHook(event handler.HookEvent, resp hooks.HookResponse) (hooks.HookResponse, error)
- func ActiveUploadIncHook(event handler.HookEvent, resp hooks.HookResponse) (hooks.HookResponse, error)
- func RegisterMetrics(metrics ...prometheus.Collector) error
- func TrackHTTP(handler http.Handler) http.Handler
- type ManifestMetrics
Constants ¶
This section is empty.
Variables ¶
View Source
var ActiveUploads = prometheus.NewGauge(prometheus.GaugeOpts{ Name: "dex_server_active_uploads", Help: "Current number of active uploads", }) // .metricsOpenConnections
todo this could also be a vec per datastream
View Source
var DefaultMetrics = []prometheus.Collector{ ActiveUploads, }
View Source
var HttpReqs = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "http_requests_total", Help: "How many HTTP requests processed, partitioned by status code and HTTP method.", }, []string{"code", "method"}, )
View Source
var OpenConnections = prometheus.NewGauge(prometheus.GaugeOpts{ Name: "dex_server_connections_open", Help: "Current number of server open connections.", }) // .metricsOpenConnections
Functions ¶
func ActiveUploadDecHook ¶
func ActiveUploadDecHook(event handler.HookEvent, resp hooks.HookResponse) (hooks.HookResponse, error)
func ActiveUploadIncHook ¶
func ActiveUploadIncHook(event handler.HookEvent, resp hooks.HookResponse) (hooks.HookResponse, error)
func RegisterMetrics ¶
func RegisterMetrics(metrics ...prometheus.Collector) error
Types ¶
type ManifestMetrics ¶
type ManifestMetrics struct { Keys []string Counter *prometheus.CounterVec }
func NewManifestMetrics ¶
func NewManifestMetrics(name string, help string, keys ...string) *ManifestMetrics
func (*ManifestMetrics) Hook ¶
func (mm *ManifestMetrics) Hook(event handler.HookEvent, resp hooks.HookResponse) (hooks.HookResponse, error)
Click to show internal directories.
Click to hide internal directories.