Skip to content

Commit 2e92887

Browse files
committed
Remove extra label
Signed-off-by: Felix Yuan <[email protected]>
1 parent 771fd4c commit 2e92887

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

collector/pg_stat_walreceiver.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,7 @@ func NewPGStatWalReceiverCollector(config collectorConfig) (Collector, error) {
3737
}
3838

3939
var (
40-
labelCats = []string{"upstream_host", "slot_name", "status"}
41-
statWalReceiverStatus = prometheus.NewDesc(
42-
prometheus.BuildFQName(namespace, statWalReceiverSubsystem, "status"),
43-
"Activity status of the WAL receiver process",
44-
labelCats,
45-
prometheus.Labels{},
46-
)
40+
labelCats = []string{"upstream_host", "slot_name", "status"}
4741
statWalReceiverReceiveStartLsn = prometheus.NewDesc(
4842
prometheus.BuildFQName(namespace, statWalReceiverSubsystem, "receive_start_lsn"),
4943
"First write-ahead log location used when WAL receiver is started represented as a decimal",

0 commit comments

Comments
 (0)