From 0d3d8a8168d98129034b4fd962040d9a15dab0d8 Mon Sep 17 00:00:00 2001 From: Daniel Mai Date: Tue, 15 Jun 2021 09:23:34 -0700 Subject: [PATCH] fix(metrics): Expose dgraph_num_backups_failed metric view. We've been tracking this metric but didn't actually expose it in the metrics view, so Prometheus metrics in /metrics never showed it. This change updates sets the view properly so it shows up in /metrics. --- x/metrics.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/x/metrics.go b/x/metrics.go index 36dbe9c633e..152b0cebd6c 100644 --- a/x/metrics.go +++ b/x/metrics.go @@ -222,6 +222,13 @@ var ( Aggregation: view.Count(), TagKeys: nil, }, + { + Name: NumBackupsFailed.Name(), + Measure: NumBackupsFailed, + Description: NumBackupsFailed.Description(), + Aggregation: view.Count(), + TagKeys: nil, + }, { Name: TxnCommits.Name(), Measure: TxnCommits,