Added build info metrics to server

This commit is contained in:
2025-08-04 01:07:25 +03:00
parent 6c8eb66e75
commit 2a6562b93c
2 changed files with 14 additions and 0 deletions

View File

@@ -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",