weaveworks / gitopssets-controller

Manages the GitOpsSet CRDs.
Apache License 2.0
9 stars 5 forks source link

Add performance metrics to controller #35

Closed ranatrk closed 1 year ago

ranatrk commented 1 year ago

Closes https://github.com/weaveworks/weave-gitops-enterprise/issues/2358

What changed? Record prometheus metrics (readiness,duration, and suspend)

Why was this change made? To help with debugging when there are issues

How was this change implemented? Metrics are recorded in the controller reconcile process using using https://pkg.go.dev/github.com/fluxcd/pkg/runtime/controller#Metrics

How did you validate the change? manual test , run local prometheus and query metrics Screenshot from 2023-02-26 22-03-03