Skip to content

Commit 16984c6

Browse files
committed
Remove duplicated metrics
1 parent 2b075ae commit 16984c6

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

stader/guardian/collector/operator-collector.go

-8
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ type OperatorCollector struct {
4343
LiquidationStatus *prometheus.Desc
4444
ClaimVaultBalance *prometheus.Desc
4545

46-
SDUtilizationPosition *prometheus.Desc
47-
4846
SDSelfBond *prometheus.Desc
4947

5048
// The beacon client
@@ -143,10 +141,6 @@ func NewOperatorCollector(
143141
prometheus.BuildFQName(namespace, OperatorSub, LiquidationStatus), "", nil, nil),
144142
ClaimVaultBalance: prometheus.NewDesc(
145143
prometheus.BuildFQName(namespace, OperatorSub, ClaimVaultBalance), "", nil, nil),
146-
SDUtilizationPosition: prometheus.NewDesc(prometheus.BuildFQName(namespace, OperatorSub, "sd_utility_position"),
147-
"The current balance of the SD utility pool",
148-
nil, nil,
149-
),
150144
SDSelfBond: prometheus.NewDesc(prometheus.BuildFQName(namespace, OperatorSub, "sd_self_bond"),
151145
"The current balance of the SD utility pool",
152146
nil, nil,
@@ -190,7 +184,6 @@ func (collector *OperatorCollector) Describe(channel chan<- *prometheus.Desc) {
190184
channel <- collector.TotalSDSelfBond
191185
channel <- collector.LiquidationStatus
192186
channel <- collector.ClaimVaultBalance
193-
channel <- collector.SDUtilizationPosition
194187
channel <- collector.SDSelfBond
195188
}
196189

@@ -228,7 +221,6 @@ func (collector *OperatorCollector) Collect(channel chan<- prometheus.Metric) {
228221
channel <- prometheus.MustNewConstMetric(collector.TotalSDSelfBond, prometheus.GaugeValue, state.StaderNetworkDetails.OperatorSDSelfBond)
229222
channel <- prometheus.MustNewConstMetric(collector.LiquidationStatus, prometheus.GaugeValue, state.StaderNetworkDetails.LiquidationStatus)
230223
channel <- prometheus.MustNewConstMetric(collector.ClaimVaultBalance, prometheus.GaugeValue, state.StaderNetworkDetails.ClaimVaultBalance)
231-
channel <- prometheus.MustNewConstMetric(collector.SDUtilizationPosition, prometheus.GaugeValue, state.StaderNetworkDetails.OperatorSDUtilizationPosition)
232224
channel <- prometheus.MustNewConstMetric(collector.SDSelfBond, prometheus.GaugeValue, state.StaderNetworkDetails.OperatorSDSelfBond)
233225
}
234226

0 commit comments

Comments
 (0)