Skip to content

Commit 67ab6f3

Browse files
SticksmanSuperQ
andauthored
Update collector/pg_stat_walreceiver.go
Co-authored-by: Ben Kochie <[email protected]> Signed-off-by: Felix Yuan <[email protected]>
1 parent 2e92887 commit 67ab6f3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

collector/pg_stat_walreceiver.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,11 +256,10 @@ func (c *PGStatWalReceiverCollector) Update(ctx context.Context, instance *insta
256256
latestEndLsnMetric,
257257
labels...)
258258

259-
latestEndTimeMetric := float64(latestEndTime.Float64)
260259
ch <- prometheus.MustNewConstMetric(
261260
statWalReceiverLatestEndTime,
262261
prometheus.CounterValue,
263-
latestEndTimeMetric,
262+
latestEndTime.Float64,
264263
labels...)
265264

266265
upstreamNodeMetric := float64(upstreamNode.Int64)

0 commit comments

Comments
 (0)