Skip to content

Commit

Permalink
enhancement: add raft monitor
Browse files Browse the repository at this point in the history
Signed-off-by: awzhgw <guowl18702995996@gmail.com>
  • Loading branch information
awzhgw committed Aug 16, 2019
1 parent 74b9f1b commit 9e2fce4
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 1 deletion.
2 changes: 1 addition & 1 deletion util/exporter/alarm.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ type Alarm struct {
}

func Warning(detail string) (a *Alarm) {
ump.Alarm(fmt.Sprintf("%v_%v_warning", clustername, modulename), detail)
if !enabled {
ump.Alarm(fmt.Sprintf("%v_%v_warning", clustername, modulename), detail)
return
}
a = AlarmPool.Get().(*Alarm)
Expand Down
61 changes: 61 additions & 0 deletions vendor/github.com/tiglabs/raft/raft.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9e2fce4

Please sign in to comment.