From 0e5ff8c9f9047a7af7450f36f5110e5a824bc460 Mon Sep 17 00:00:00 2001 From: Alexey Palazhchenko Date: Thu, 25 Oct 2018 18:10:39 +0300 Subject: [PATCH] A fix of labels for wiredtiger_concurrent_transactions_out_tickets Found by @akira-kurogane at https://github.com/percona/mongodb_exporter/pull/118. --- collector/wiredtiger.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/collector/wiredtiger.go b/collector/wiredtiger.go index eddd28b3..c335a642 100644 --- a/collector/wiredtiger.go +++ b/collector/wiredtiger.go @@ -335,8 +335,8 @@ type WTConcurrentTransactionsTypeStats struct { } type WTConcurrentTransactionsStats struct { - Write *WTConcurrentTransactionsTypeStats `bson:"read"` - Read *WTConcurrentTransactionsTypeStats `bson:"write"` + Read *WTConcurrentTransactionsTypeStats `bson:"read"` + Write *WTConcurrentTransactionsTypeStats `bson:"write"` } func (stats *WTConcurrentTransactionsStats) Export(ch chan<- prometheus.Metric) {