Skip to content

Commit

Permalink
Small changes - 5
Browse files Browse the repository at this point in the history
  • Loading branch information
aditya1702 committed Sep 15, 2023
1 parent 3d63938 commit 180aaa7
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions services/horizon/internal/txsub/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ type System struct {
// submissions to stellar-core
SubmissionDuration prometheus.Summary

// BufferedSubmissionGauge tracks the count of submissions buffered
// behind this system's SubmissionQueue
BufferedSubmissionsGauge prometheus.Gauge

// OpenSubmissionsGauge tracks the count of "open" submissions (i.e.
// submissions whose transactions haven't been confirmed successful or failed
OpenSubmissionsGauge prometheus.Gauge
Expand Down Expand Up @@ -79,7 +75,6 @@ type System struct {
// RegisterMetrics registers the prometheus metrics
func (sys *System) RegisterMetrics(registry *prometheus.Registry) {
registry.MustRegister(sys.Metrics.SubmissionDuration)
registry.MustRegister(sys.Metrics.BufferedSubmissionsGauge)
registry.MustRegister(sys.Metrics.OpenSubmissionsGauge)
registry.MustRegister(sys.Metrics.FailedSubmissionsCounter)
registry.MustRegister(sys.Metrics.SuccessfulSubmissionsCounter)
Expand Down Expand Up @@ -369,9 +364,6 @@ func (sys *System) Init() {
sys.Metrics.OpenSubmissionsGauge = prometheus.NewGauge(prometheus.GaugeOpts{
Namespace: "horizon", Subsystem: "txsub", Name: "open",
})
sys.Metrics.BufferedSubmissionsGauge = prometheus.NewGauge(prometheus.GaugeOpts{
Namespace: "horizon", Subsystem: "txsub", Name: "buffered",
})
sys.Metrics.V0TransactionsCounter = prometheus.NewCounter(prometheus.CounterOpts{
Namespace: "horizon", Subsystem: "txsub", Name: "v0",
})
Expand Down

0 comments on commit 180aaa7

Please sign in to comment.