Migration to kubernetes + vault-agent
This commit is contained in:
@@ -2,10 +2,11 @@
|
||||
package prometheus
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
"github.com/prometheus/client_golang/prometheus/collectors"
|
||||
"github.com/prometheus/client_golang/prometheus/promhttp"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// Metrics structure for storing counter
|
||||
@@ -48,13 +49,11 @@ func initPrometheusRegistry() {
|
||||
// IncrementClientCounterVec increments the counter with method label provided.
|
||||
func IncrementClientCounterVec(m string) {
|
||||
HTTPCounter.ClientHTTPReqs.WithLabelValues(m).Inc()
|
||||
return
|
||||
}
|
||||
|
||||
// IncrementBackendCounterVec increments the counter with method label provided.
|
||||
func IncrementBackendCounterVec(m string) {
|
||||
HTTPCounter.BackendHTTPReqs.WithLabelValues(m).Inc()
|
||||
return
|
||||
}
|
||||
|
||||
// InitializeHTTPReqCounter inits the httpReqs counter that will be exported.
|
||||
|
||||
Reference in New Issue
Block a user