Migration to kubernetes + vault-agent

This commit is contained in:
2025-01-13 17:00:23 +01:00
parent 4219a7d001
commit 60ab4ff110
13 changed files with 197 additions and 90 deletions

View File

@@ -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.