Skip to content

Commit

Permalink
🔥 fix prom monitor imports
Browse files Browse the repository at this point in the history
  • Loading branch information
petar-cvit committed May 15, 2024
1 parent 0e1f105 commit 1cd1a60
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cyclops-ctrl/internal/handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/cyclops-ui/cyclops/cyclops-ctrl/internal/cluster/k8sclient"
"github.com/cyclops-ui/cyclops/cyclops-ctrl/internal/controller"
prometheusHandler "github.com/cyclops-ui/cyclops/cyclops-ctrl/internal/prometheus"
"github.com/cyclops-ui/cyclops/cyclops-ctrl/internal/prometheus"
"github.com/cyclops-ui/cyclops/cyclops-ctrl/internal/telemetry"
templaterepo "github.com/cyclops-ui/cyclops/cyclops-ctrl/internal/template"
)
Expand All @@ -19,14 +19,14 @@ type Handler struct {
k8sClient *k8sclient.KubernetesClient

telemetryClient telemetry.Client
monitor prometheusHandler.Monitor
monitor prometheus.Monitor
}

func New(
templatesRepo *templaterepo.Repo,
kubernetesClient *k8sclient.KubernetesClient,
telemetryClient telemetry.Client,
monitor prometheusHandler.Monitor,
monitor prometheus.Monitor,
) (*Handler, error) {
return &Handler{
templatesRepo: templatesRepo,
Expand Down Expand Up @@ -81,7 +81,7 @@ func (h *Handler) Start() error {
h.router.GET("/nodes", clusterController.ListNodes)
h.router.GET("/nodes/:name", clusterController.GetNode)

h.router.GET("/metrics", prometheusHandler.PromHandler())
h.router.GET("/metrics", prometheus.PromHandler())

h.router.Use(h.options)

Expand Down

0 comments on commit 1cd1a60

Please sign in to comment.