func (s *Service) BeaconCommitteeAggregators(aggregators int) {
	s.beaconCommitteeAggregators.Set(float64(aggregators))
}
BeaconCommitteeAggregators sets the number of beacon committees for which our validators are aggregating.
package prometheus
import (
	"time"
	"github.com/prometheus/client_golang/prometheus"
)
func (s *Service) setupBeaconCommitteeSubscriptionMetrics() error {
	s.beaconCommitteeSubscriptionProcessTimer =
		prometheus.NewHistogram(prometheus.HistogramOpts{
			Namespace: "vouch",
			Subsystem: "beaconcommitteesubscription_process",
			Name:      "duration_seconds",
			Help:      "The time vouch spends from starting the beacon committee subscription process to submitting the subscription request.",
			Buckets: []float64{
				0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0,
				1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2.0,
			},
		})
	if err := prometheus.Register(s.beaconCommitteeSubscriptionProcessTimer); err != nil {
		return err
	}
	s.beaconCommitteeSubscriptionProcessRequests = prometheus.NewCounterVec(prometheus.CounterOpts{
		Namespace: "vouch",
		Subsystem: "beaconcommitteesubscription_process",
		Name:      "requests_total",
		Help:      "The number of beacon committee subscription processes.",
	}, []string{"result"})
	if err := prometheus.Register(s.beaconCommitteeSubscriptionProcessRequests); err != nil {
		return err
	}
	s.beaconCommitteeSubscribers = prometheus.NewGauge(prometheus.GaugeOpts{
		Namespace: "vouch",
		Subsystem: "beaconcommitteesubscription",
		Name:      "subscribers_total",
		Help:      "The number of beacon committee subscribed.",
	})
	if err := prometheus.Register(s.beaconCommitteeSubscribers); err != nil {
		return err
	}
	s.beaconCommitteeAggregators = prometheus.NewGauge(prometheus.GaugeOpts{
		Namespace: "vouch",
		Subsystem: "beaconcommitteesubscription",
		Name:      "aggregators_total",
		Help:      "The number of beacon committee aggregated.",
	})
	return prometheus.Register(s.beaconCommitteeAggregators)
}
func (s *Service) BeaconCommitteeSubscriptionCompleted(started time.Time, result string) {
	s.beaconCommitteeSubscriptionProcessTimer.Observe(time.Since(started).Seconds())
	s.beaconCommitteeSubscriptionProcessRequests.WithLabelValues(result).Inc()
}
func (s *Service) BeaconCommitteeSubscribers(subscribers int) {
	s.beaconCommitteeSubscribers.Set(float64(subscribers))
}