summaryrefslogtreecommitdiff
path: root/internal/server
diff options
context:
space:
mode:
Diffstat (limited to 'internal/server')
-rw-r--r--internal/server/metrics/metrics.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/server/metrics/metrics.go b/internal/server/metrics/metrics.go
index 6eaf62c..691c190 100644
--- a/internal/server/metrics/metrics.go
+++ b/internal/server/metrics/metrics.go
@@ -23,6 +23,12 @@ import (
const namespace = "eko"
+var BuildInfo = promauto.NewGaugeVec(prometheus.GaugeOpts{
+ Namespace: namespace,
+ Name: "build_info",
+ Help: "Build information of the binary",
+}, []string{"version", "commit", "build_date"})
+
var RequestsProcessed = promauto.NewCounterVec(prometheus.CounterOpts{
Namespace: namespace,
Name: "requests_processed_total",