From e8a20749e3b807e15fc4b7378df790ded031b7bf Mon Sep 17 00:00:00 2001 From: Aris Boutselis Date: Sun, 7 May 2023 22:50:04 +0300 Subject: [PATCH] feat: register all the custom prom metrics (#67) Signed-off-by: Aris Boutselis Co-authored-by: Aris Boutselis --- controllers/k8sgpt_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/k8sgpt_controller.go b/controllers/k8sgpt_controller.go index afe089b4..7b68f09e 100644 --- a/controllers/k8sgpt_controller.go +++ b/controllers/k8sgpt_controller.go @@ -186,7 +186,7 @@ func (r *K8sGPTReconciler) SetupWithManager(mgr ctrl.Manager) error { For(&corev1alpha1.K8sGPT{}). Complete(r) - metrics.Registry.MustRegister(k8sgptReconcileErrorCount) + metrics.Registry.MustRegister(k8sgptReconcileErrorCount, k8sgptNumberOfResults, k8sgptNumberOfResultsByType) return c }