Skip to content

Commit

Permalink
RedstoneTxSyncer: fix monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
asiaziola committed Jan 18, 2024
1 parent d44f008 commit 9e92043
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/monitoring/redstone_tx_syncer/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ func (self *Collector) Collect(ch chan<- prometheus.Metric) {
ch <- prometheus.MustNewConstMetric(self.StoreSaveLastStateFailure, prometheus.CounterValue, float64(self.monitor.Report.RedstoneTxSyncer.Errors.StoreSaveLastStateFailure.Load()))

// State
ch <- prometheus.MustNewConstMetric(self.BlockDownloaderCurrentHeight, prometheus.CounterValue, float64(self.monitor.Report.RedstoneTxSyncer.State.BlockDownloaderCurrentHeight.Load()))
ch <- prometheus.MustNewConstMetric(self.BlockDownloaderCurrentHeight, prometheus.GaugeValue, float64(self.monitor.Report.RedstoneTxSyncer.State.BlockDownloaderCurrentHeight.Load()))
ch <- prometheus.MustNewConstMetric(self.SyncerTxsProcessed, prometheus.CounterValue, float64(self.monitor.Report.RedstoneTxSyncer.State.SyncerTxsProcessed.Load()))
ch <- prometheus.MustNewConstMetric(self.SyncerBlocksProcessed, prometheus.CounterValue, float64(self.monitor.Report.RedstoneTxSyncer.State.SyncerBlocksProcessed.Load()))
ch <- prometheus.MustNewConstMetric(self.SyncerInteractionsToWarpy, prometheus.CounterValue, float64(self.monitor.Report.RedstoneTxSyncer.State.SyncerInteractionsToWarpy.Load()))
ch <- prometheus.MustNewConstMetric(self.StoreLastSyncedBlockHeight, prometheus.CounterValue, float64(self.monitor.Report.RedstoneTxSyncer.State.StoreLastSyncedBlockHeight.Load()))
ch <- prometheus.MustNewConstMetric(self.StoreLastSyncedBlockHeight, prometheus.GaugeValue, float64(self.monitor.Report.RedstoneTxSyncer.State.StoreLastSyncedBlockHeight.Load()))
}

0 comments on commit 9e92043

Please sign in to comment.