Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ActiveGitLabRequests = promauto.NewGauge(prometheus.GaugeOpts{
Name: "badge_api_gitlab_active_requests",
Help: "The number of active requests to GitLab",
})
View Source
var CheckTime = promauto.NewHistogram(prometheus.HistogramOpts{ Name: "badge_api_check_time_ms", Help: "The time it takes to run a check", Buckets: ResponseTimeBuckets, })
View Source
var ResponseTime = promauto.NewHistogram(prometheus.HistogramOpts{ Name: "badge_api_response_time_ms", Help: "The response time of the API", Buckets: ResponseTimeBuckets, })
View Source
var ResponseTimeBuckets = []float64{500, 1000, 2000, 5000, 10000, 20000, 50000, 100000}
View Source
var ScanAmount = promauto.NewCounter(prometheus.CounterOpts{
Name: "badge_api_scan_amount",
Help: "The total number of scans",
})
Functions ¶
This section is empty.
Types ¶
This section is empty.
Source Files
¶
- prom.go
Click to show internal directories.
Click to hide internal directories.