Files
vctp2/server/handler/metrics.go
Nathan Coad ea68331208
All checks were successful
continuous-integration/drone/push Build is passing
add prometheus instrumentation
2026-01-15 11:43:29 +11:00

18 lines
392 B
Go

package handler
import (
"net/http"
"vctp/internal/metrics"
)
// Metrics exposes Prometheus metrics.
// @Summary Prometheus metrics
// @Description Exposes Prometheus metrics for vctp.
// @Tags metrics
// @Produce plain
// @Success 200 "Prometheus metrics"
// @Router /metrics [get]
func (h *Handler) Metrics(w http.ResponseWriter, r *http.Request) {
metrics.Handler().ServeHTTP(w, r)
}