cyclops icon indicating copy to clipboard operation
cyclops copied to clipboard

πŸš€feat(cyclops-ctrl): adds prometheus metrics to reconciler

Open naineel1209 opened this issue 1 year ago β€’ 2 comments

closes #598

πŸ“‘ Description

  • added required reconciler metrics to the Prometheus monitor
  • currently added metrics are
type Monitor struct {
	ModulesDeployed  prometheus.Gauge
	CacheHits        prometheus.Gauge
	CacheMisses      prometheus.Gauge
	CacheKeysAdded   prometheus.Gauge
	CacheCostAdded   prometheus.Gauge
	CacheKeysEvicted prometheus.Gauge
	CacheCostEvicted prometheus.Gauge

	// Reconciler Metrics
	ReconcilerDuration   prometheus.Histogram
	NoOfReconciliations   prometheus.Counter
	FailedReconciliations prometheus.Counter
}
  • added methods to update the reconciler metrics
  • added increment for no_of_reconciliations for every attempted reconciliation
  • added increment for failed_reconciliations for every failed reconciliation
  • added deferred function call to observe the amount of time spent in reconciliation

βœ… Checks

  • [βœ…] I have tested my code (provide screenshots or screen recordings of a working solution)
  • [βœ…] I have performed a self-review of my code

β„Ή Additional context

naineel1209 avatar Oct 04 '24 17:10 naineel1209

@quest-bot loot #598

naineel1209 avatar Oct 04 '24 17:10 naineel1209

Quest PR submitted! image Quest PR submitted!

@naineel1209, you are attempting to solve the issue and loot this Quest. Will you be successful?


Questions? Check out the docs.

quest-bot[bot] avatar Oct 04 '24 17:10 quest-bot[bot]

🧚 @naineel1209 congratulations for completing Quest https://github.com/cyclops-ui/cyclops/issues/598

πŸ’° A reward has been credited to you.

To claim your reward follow the instructions here.

Questions? Check out the docs.

quest-bot[bot] avatar Oct 10 '24 11:10 quest-bot[bot]