diff --git a/images/custom-error-pages/main.go b/images/custom-error-pages/main.go index 7e3f683b18..8f4e6b267d 100644 --- a/images/custom-error-pages/main.go +++ b/images/custom-error-pages/main.go @@ -27,6 +27,7 @@ import ( "strings" "time" + "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promhttp" ) @@ -63,6 +64,11 @@ const ( ErrFilesPathVar = "ERROR_FILES_PATH" ) +func init() { + prometheus.MustRegister(requestCount) + prometheus.MustRegister(requestDuration) +} + func main() { errFilesPath := "/www" if os.Getenv(ErrFilesPathVar) != "" {