Skip to content

Commit

Permalink
fix(metrics): Expose dgraph_num_backups_failed_total metric view. (#7900
Browse files Browse the repository at this point in the history
)

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.

(cherry picked from commit 59fd122)
  • Loading branch information
danielmai authored and ahsanbarkati committed Jun 17, 2021
1 parent 8376031 commit 087ac0c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions x/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 087ac0c

Please sign in to comment.