Skip to content

Commit

Permalink
Counter -> Gauge
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelattwood committed Oct 28, 2024
1 parent 240763f commit 1594d5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion surveyor/collector_statz.go
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,7 @@ func (sc *StatzCollector) Collect(ch chan<- prometheus.Metric) {
jsRaftGroupLabelValues := []string{sm.Server.ID, serverName(&sm.Server), sm.Server.Cluster}
// FIXME: add labels needed or remove...

metrics.newCounterMetric(sc.descs.JetstreamAPIPending, float64(sm.Stats.JetStream.Meta.Pending), jsRaftGroupLabelValues)
metrics.newGaugeMetric(sc.descs.JetstreamAPIPending, float64(sm.Stats.JetStream.Meta.Pending), jsRaftGroupLabelValues)
metrics.newGaugeMetric(sc.descs.JetstreamClusterRaftGroupSize, float64(sm.Stats.JetStream.Meta.Size), jsRaftGroupLabelValues)

// Could provide false positive if two server have the same server_name in the same or different clusters in the super-cluster...
Expand Down

0 comments on commit 1594d5d

Please sign in to comment.