Skip to content

Commit

Permalink
fix open-falcon#42 , add doc of ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
sylzd committed Nov 6, 2018
1 parent 8c74a03 commit 578cb97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ port=3306 # 数据库端口

采集的metric信息,请参考./metrics.txt。该文件仅供参考,实际采集信息会根据MySQL版本、配置的不同而变化。

### ignore项
ignore项配置,是用来屏蔽之前在falcon中设好的报警项,会将原有的metric更改名称之后上传,使原有的报警策略不再生效。由于falcon中的屏蔽策略,只能屏蔽endpoint级别,所以在mymon中的ignore功能是帮助提高了报警屏蔽粒度,而非忽略该metric的上报。

### 同步延迟

关于同步延迟检测的metric有两个: `Seconds_Behind_Master``Heartbeats_Behind_Master`
Expand Down
2 changes: 1 addition & 1 deletion etc/myMon.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
basedir = .
# 日志目录,默认日志文件为myMon.log,旧版本有log_file项,如果同时设置了,会优先采用log_file
log_dir = .
# 配置忽略的metric项
# 配置报警忽略的metric项,依然会上报改metric,但原有的该metric项的报警策略将不会生效
ignore_file = ./falconignore
# 保存快照(process, innodb status)的目录
snapshot_dir = ./snapshot
Expand Down

0 comments on commit 578cb97

Please sign in to comment.