mirror of
https://github.com/foomo/keel.git
synced 2025-10-16 12:35:34 +00:00
22 lines
690 B
Go
22 lines
690 B
Go
package metrics
|
|
|
|
import (
|
|
"github.com/prometheus/client_golang/prometheus"
|
|
)
|
|
|
|
func NewHTTPRequestSizeSummaryVec(namespace string) *prometheus.SummaryVec {
|
|
return NewRequestSizeSummaryVec(namespace, "http", []string{"method", "code"})
|
|
}
|
|
|
|
func NewHTTPResponseSizeSummaryVec(namespace string) *prometheus.SummaryVec {
|
|
return NewResponseSizeSummaryVec(namespace, "http", []string{"method", "code"})
|
|
}
|
|
|
|
func NewHTTPRequestsCounterVec(namespace string) *prometheus.CounterVec {
|
|
return NewRequestsCounterVec(namespace, "http", []string{"method", "code"})
|
|
}
|
|
|
|
func NewHTTPRequestDurationHistogram(namespace string) prometheus.Histogram {
|
|
return NewRequestDurationHistogram(namespace, "http")
|
|
}
|